cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Error Specifying a Feature in a Relation

Mostafa_Arafat
4-Participant

Error Specifying a Feature in a Relation

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

4 REPLIES 4

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.

 

If you write a relation in the feature’s parent model (part or assembly) or in another feature, you must use one of the following formats to reference that feature:
XYZ = parameter_name:fid_N
or
XYZ = parameter_name:fid_feature_name
========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

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".

tbraxton
22-Sapphire I
(To:KenFarley)

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.

 

tbraxton_0-1732125897176.png

 

There are multiple structures in which parameters can be defined in a part model.

tbraxton_1-1732126283659.png

 

 

========================================
Involute Development, LLC
Consulting Engineers
Specialists in Creo Parametric

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,

Catalina
PTC Community Moderator
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags