Skip to main content
12-Amethyst
February 25, 2021
Question

Conditional Statement in Drawing Format

  • February 25, 2021
  • 2 replies
  • 1355 views

Hello,

 

I need to add an entry into my drawing format that reads RELEASED if my drawing state is released and NOT RELEASED if the state is anything other than released.

 

I know I can use the &PDMRL parameter to report the current state, but how do I combine this with an IF statement to display RELEASED or NOT RELEASED?

 

Thanks,

Matt

2 replies

21-Topaz I
February 25, 2021

We did this with a relation in a drawing repeat region although in practice there were some issues with it. It wasn't obvious for example to the user what session ID was being used (if there were more than one model in the drawing). Another issue was the parameter value isn't updated until an upload so whatever value is in your start part is what shows up initially (maybe obvious).

 

Ultimately we moved away from it and we now just use the windchill parameter as is.

17-Peridot
March 19, 2021

You can use the Drawing Program option to achieve this directly in the Drawing.