Skip to main content
Jun 8, 2020 6:35 PM UTC
Solved

Using Feature ID in Relations

Hello,

 

I want to use features ID's to create a note Parameter in a framework part.

 

Example:

IF EXISTS('FID_1744')
   TESTNOTE = 'TESTING123'
ENDIF

 

Is there a way to use feature id like this?

pausobAnswer
Jun 10, 2020 5:45 AM UTC

are you asking whether you can use relations to do something depending on whether a particular feature exists?

If so, I think you might have to use Pro/PROGRAM methods.

2 replies

Jun 9, 2020 2:53 PM UTC

Syntax looks wrong.  Normally you have an embedded parameter in a feature, like if you save a measurement as a feature.  So, you need BOTH the parameter (i.e. LENGTH) AND the FID.  Also, the ' symbol looks out of place.  Maybe for programming you need them, but in relations I've never seen them.  I'm not an expert in programming in Creo though.

pausobAnswer
Jun 10, 2020 5:45 AM UTC

are you asking whether you can use relations to do something depending on whether a particular feature exists?

If so, I think you might have to use Pro/PROGRAM methods.