Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
I'm trying to assign a value for a new parameter called "AAA" using feature Name not feature ID.
This code works well
AAA = b:8
But this code doesn't work with me
AAA = b:fid_EXTRUDE
errorInvalid symbol 'b:FID_EXTRUDE' found.
knowing that:
1- the feature which is called "EXTRUDE" has ID=8
2- I'm working inside the part relations
3- I'm using Creo Parametric 8.0.8.0
I suspect that the issue is the feature name "EXTRUDE" is not unique. Try naming this feature with a unique name and follow the syntax shown here to use it in a relation.
How is a parameter related to a feature? As far as I know a parameter name is global in the context of a part or assembly. You can't have two parameters with the same name in one model.
Is this a method I don't know of for obtaining values from components in an assembly, where you use the name of the component instead of a session ID? Or could this be some multibody stuff?
When I've used this type of thing, it's been to extract a value from a measurement feature, like "AREA:FID_MxAREA".
If I understand what you are asking it relates to model parameters versus feature parameters. See this example of the same parameter name used in a part model. "PAR_TEST1" is defined as a feature parameter for two different extrude features in a model. They are two unique and independent parameters available for use in the model as they are defined in the context of features and not the part. You can see there are two parameters with the same name in the part and they are independent.
This is possible if you create feature parameters using the same parameter name. In this example below A is not equal to B even though the same parameter name is used twice in the model.
There are multiple structures in which parameters can be defined in a part model.
Hi @ma_10745526 ,
I wanted to see if you got the help you needed.
If so, please mark the appropriate reply as the Accepted Solution or please feel free to detail in a reply what has helped you and mark it as the Accepted Solution. It will help other members who may have the same question.
Please note that industry experts also review the replies and may eventually accept one of them as solution on your behalf.
Of course, if you have more to share on your issue, please pursue the conversation.
Thanks,