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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Error Specifying a Feature in a Relation

Mostafa_Arafat
5-Regular Member

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

6 REPLIES 6

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

Thank you guys for trying to help.

But something wrong with all types of equations in my relations.

Please see attached photos to try to configure the source of the issue with me.

Thank you again for your efforts.

Screenshot 2024-11-24 113834.png

Screenshot 2024-11-24 114212.png

Screenshot 2024-11-24 115614.png

I think the issue is that in your relations, you are trying to use part Dimensions like you would use feature parameters.

 

In your last example, PAR_TEST2 is a dimension that is from feature FEATURE_TEST

To assign this dimension a value through relations, you don't tell the system from which feature it comes.

For your example, you simply write:

 

PAR_TEST2 = 1.234

 

or if you have a part parameter AAA, then you could assign its value to a dimension:

AAA = 1.234
PAR_TEST2 = AAA

(the value of a parameter that belongs to a feature has be recalled using the special :FID_xxx syntax as described in this thread)

Announcements
NEW Creo+ Topics: Real-time Collaboration

Top Tags