Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Expression Values

Experimenter
Experimenter

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.

ej:

Expresion1 = 10"

Drawing = A1199_C

 

Thank you!

3 REPLIES

Re: Expression Values

Phenom
Phenom

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

Esteemed Contributor
Esteemed Contributor

NOTE:

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

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

Phenom
Phenom

@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