Restricted parameter and relation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Solved! Go to Solution.
- Labels:
-
General
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Pier,
use single equal sign to assign the value to the parameter
IF ...
parameter_name ="value"
ENDIF
Martin Hanak
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Martin is right.
Two equal signs (==) means comparison.
Single equal sign (=) means assignment.
Example:
IF d1==20
d2=10
ENDIF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you !!
You're right
It works with single equal sign.
Bye
Pier