Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stock size variable to output block form in post processor

Status
Not open for further replies.

pracslipkerm

Mechanical
Dec 17, 2008
58
Hey everyone,
I am trying to get NX 6 to output the stock size to the post processor. Does anyone know what variable to use? At the moment the post has a hard coded number set so it's always the same. I need the correct size stock to be able to run simulation on machine controller. Is there somewhere I can get a list of variables that NX6 outputs to the post processor?
Thanks in Advance


------
Cheers
Steve Griffiths :)
 
Replies continue below

Recommended for you

You can get a list of the variables from post builder.


You have a couple of options - both require some customizing in the post.

One option would be to create a UDE to input the blank size manualy and have that output to the post.

The other option is to use the EXACT SAME expressions to define the block (blank) size and then have the post extract the expressions.



 
I would be happy to create a UDE to input it. But how do I go about getting the post to extract the block size expression?
Thanks in Advance
Cheers

------
Cheers
Steve Griffiths :)
 
Create a block and use the expressions blank_x, blank_y, blank_z to create a block for your blank.

In your post add this custom command where you want the output. You may want to modify this to do some checking. I just threw this together but it does work

global out_var_bx
global out_var_by
global out_var_z

set out_var_bx "[MOM_ask_ess_exp_value blank_x]"
set out_var_bx [format "%3.4f" [expr $out_var_bx]]
MOM_output_literal "(BLANK X = $out_var_bx)"

set out_var_by "[MOM_ask_ess_exp_value blank_y]"
set out_var_by [format "%3.4f" [expr $out_var_by]]
MOM_output_literal "(BLANK Y = $out_var_by)"

set out_var_bz "[MOM_ask_ess_exp_value blank_z]"
set out_var_bz [format "%3.4f" [expr $out_var_bz]]
MOM_output_literal "(BLANK Z = $out_var_bz)"


See the attached files






John Joyce
Tata Technologies
1675 Larimer St.
Denver, CO

NX3,4,5,6 Solid Works, Pro/e, Solid Edge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor