Showing results for 
Search instead for 
Do you mean 

Expression Values

Hello, could anyone knows how can I put the values from the expressions list or family parts into the finish program with the post processor? Also I would like to put for example the drawing number and the revision.


Expresion1 = 10"

Drawing = A1199_C


Thank you!


Re: Expression Values

something like this


if { [catch {set dia [MOM_ask_ess_exp_value Diameter]}]} {
     MOM_output_literal "No expression Diameter"
} else {
    MOM_output_literal $dia

Re: Expression Values


the MOM_ask_ess_exp_value used to throw an error if the expression was not found. (per the example posted by agrivas)

At some point (I encountered it in NX7.5) it returns the string "No such variable defined in Expression" (I'm not sure if that string is localized or not)



Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled

Re: Expression Values

@Ken_A I checked this code with NX9.0.3 & NX10.0.2 , exception was thrown with no expression defined

I remember the "No Expression" case but cant remember when it started and it looks like it has changed back.

Learn online

Solution Information