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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Restricted parameter and relation

PierDile
1-Newbie

Restricted parameter and relation

I have a parameter (string) controlled by an external file ( using restricted_val_definition option ).

No problem if I change the parameter value directly using the drop-down menu in the parameter panel.

But if I change the value in "Relation panel" for special conditions

IF ...

parameter_name =="value"

ENDIF

ProE doesn't change the parameter and an error comes up !

The name "value" is typed correctly .

Same problem with other types of Parameters (number ,...)

I tried with WF5 and Creo1.

Any idea ?

Thanks a lot

Pier


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 ACCEPTED SOLUTION

Accepted Solutions

Thank you !!

You're right

It works with single equal sign.

Bye

Pier


View solution in original post

3 REPLIES 3

Pier,

use single equal sign to assign the value to the parameter

IF ...

parameter_name ="value"

ENDIF

Martin Hanak


Martin Hanák
SylvainA.
4-Participant
(To:PierDile)

Martin is right.

Two equal signs (==) means comparison.

Single equal sign (=) means assignment.

Example:

IF d1==20

d2=10

ENDIF

Thank you !!

You're right

It works with single equal sign.

Bye

Pier


Top Tags