SimplifiedLogic / creoson

OpenSource Automation using JSON Transactions for PTC's CREO Parametric
http://www.creoson.com
MIT License
81 stars 23 forks source link

Request new function: dimension : rename #40

Closed dmtr99 closed 4 years ago

dmtr99 commented 4 years ago

I use the [dimension : set] a lot and it is very powerfull to quickly change you models. Most of the times I rename the dimension to have a meaningfull name like "d_length" or "d_x_pos" in multiple parts, so afterwards, it is easy to use the dimension set function to set the dimensions to a different value.

It happens a lot that I copy parts, and want to rename the same dimension in multiple parts.

Is it possible to add a [dimension : rename] function to rename a dimension of a part or component.

Less important: would this also work on drawings (placed dimensions) for dimensions manually placed on a drawing (drawing dimensions)?

davidhbigelow commented 4 years ago

This issue has been a pain in the past... in previous versions of Creo (Wildfire - Pro/E) symbolic dimension names were not reusable. This appears to STILL be a problem - bug in Creo (as of Creo 4)

Symbolic Dimensions are a bit risky -- they may work fine for a specific feature - and be able to be renamed and update any relations that may refer to them... Which is good.

The problem comes when someone deletes the feature that contains the Symbolic Dimension - and creates a new feature -- and tries to apply the same symbolic name into that new feature.

It will work. - regenerate no problem. BUT ... try to use that new reference (which is the same symbolic name as the previous feature/dimension) -- and the relations will not verify.

[image: 2020-02-08 at 9.52 AM.png]

So this was originally one of our main reasons NOT to use Symbolic Dimensions -- they used to be non-reusable references -- but the problem showed up faster than it does in Creo 4 (which I am testing with). Today, you can change the symbolic name, and it seems to take, UNTIL you try to reuse the Symbolic Name in another feature.

Our best advice for Symbolic Names, is -NOT- to use them if you can.... Instead defer to using a relation to manage the relationship between data/values an the target dimensions:

d5 = width

or (after a new feature replacing the previous) - adjust the relation to pass the data to the new dimension controlling the feature you are interested.

d75 = width

Relations are MUCH more stable and enable you to wire the data flow to one or multiple features/dimensions vs one (1) symbolic reference in the design.

I would recommend you look at that as your primary approach moving forward.

If you are looking to to mass updates on relations - file : get/set_relations is quite handy.

Hope this helps.

Dave

On Sat, Feb 8, 2020 at 12:33 AM dmtr99 notifications@github.com wrote:

I use the [dimension : set] a lot and it is very powerfull to quickly change you models. Most of the times I rename the dimension to have a meaningfull name like "d_length" or "d_x_pos" in multiple parts, so afterwards, it is easy to use the dimension set function to set the dimensions to a different value.

It happens a lot that I copy parts, and want to rename the same dimension in multiple parts.

Is it possible to add a [dimension : rename] function to rename a dimension of a part or component.

Less important: would this also work on drawings (placed dimensions) for dimensions manually placed on a drawing (drawing dimensions)?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SimplifiedLogic/creoson/issues/40?email_source=notifications&email_token=AAMSRJIYXGGA6E2XECUTFP3RBY72XA5CNFSM4KRYMTSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IL7BLTA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSRJPTVIDH5HZOWY4ZPQDRBY72XANCNFSM4KRYMTSA .

-- David Bigelow, President Simplified Logic, Inc https://www.simplifiedlogic.com | SimilarParts.ai C: 317-431-5454