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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

start asm template relations

thlavinka
7-Bedrock

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.
ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4

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

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.

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

IT WORKS...

THANKS A LOT

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags