Stock size variable to output block form in post processor
Stock size variable to output block form in post processor
(OP)
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
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





RE: Stock size variable to output block form in post processor
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.
RE: Stock size variable to output block form in post processor
Thanks in Advance
Cheers
------
Cheers
Steve Griffiths
RE: Stock size variable to output block form in post processor
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
www.myigetit.com
NX3,4,5,6 Solid Works, Pro/e, Solid Edge