start asm template relations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
start asm template relations
Hello,
I have following relation in start asm template:
/*CONTROLLING CALIPERS RAL2004
if NAME=="CONTROLLING CALIPER"
RAL="2004"
endif
then I have a parameter CUSTOMER
i would like to add another reralion(s) like this:
if CUSTOMER is "JD" and NAME != "CONTROLLING CALIPER"
RAL="5018"
if CUSTOMER is "VL" and NAME != "CONTROLLING CALIPER"
RAL="5008"
else
RAL="5012"
can anybody help to make it work?
Thanx in advance
T.
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Tomas,
simply replace your relation with my. It must work correctly.
if NAME=="CONTROLLING CALIPER"
/* NAME is equal to "CONTROLLING CALIPER"
RAL="2004"
else
/* NAME is not equal to "CONTROLLING CALIPER"
if CUSTOMER=="JD"
RAL="5018"
else
if CUSTOMER=="VL"
RAL="5008"
else
RAL="5012"
endif
endif
endif
MH
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
use following relations:
if NAME=="CONTROLLING CALIPER"
RAL="2004"
else
if CUSTOMER=="JD"
RAL="5018"
else
if CUSTOMER=="VL"
RAL="5008"
else
RAL="5012"
endif
endif
endif
MH
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Martin,
Thanks for your quick answer.
There is a problem with CONTROLLING CALIPER - if the parameter NAME is CONTROLLING CALIPER the RAL must be 2004 no matter which the CUSTOMER is.
T.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Tomas,
simply replace your relation with my. It must work correctly.
if NAME=="CONTROLLING CALIPER"
/* NAME is equal to "CONTROLLING CALIPER"
RAL="2004"
else
/* NAME is not equal to "CONTROLLING CALIPER"
if CUSTOMER=="JD"
RAL="5018"
else
if CUSTOMER=="VL"
RAL="5008"
else
RAL="5012"
endif
endif
endif
MH
Martin Hanák
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
IT WORKS...
THANKS A LOT
