Skip to main content
1-Visitor
April 26, 2016
Solved

start asm template relations

  • April 26, 2016
  • 1 reply
  • 2787 views

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.
Best answer by MartinHanak

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

1 reply

24-Ruby III
April 26, 2016

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

thlavinka1-VisitorAuthor
1-Visitor
April 26, 2016

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.

24-Ruby III
April 26, 2016

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