Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

chrisYPL9Z
en respuesta a: brian_p1

You would just have

;<PVAR:CALL_SUB_PROGRAM>

and it will post what ever is written in that post var.

For safety factor I would add an or function with the available probing cycles so if somebody mistypes the post will give a message.

<IF>[or(eq(<PVAR:CALL_SUB_PROGRAM>,""), eq(<PVAR:CALL_SUB_PROGRAM>,"PROBE_TOP"))]<THEN>

;<PVAR:CALL_SUB_PROGRAM>

<ELSE>

<MESSAGE: INVALID SUB PROGRAM>

<ENDIF>

You can add more sub programs to the if statement as needed.

 

-Chris