pracslipkerm
Mechanical
- Dec 17, 2008
- 58
I have been able to use info in thread561-249010
to output expression value in the post.
Now I am trying to use a UDE (User Defined Event) to input the variables and use these in the post.
I can't seem to be able to pull the values into the post, anyone know what I am doing wrong???
I have a custom command that I call in Program Start Sequence.
UDE Parameters are AED_Min_X etc... in EVENT Block_Form with POST_EVENT "Blk_Form"
Does anyone know how to get the UDE values to work???
Thanks in advance
Cheers
Steve Griffiths
If you want to make apple pie from scratch, first you must create the universe!
to output expression value in the post.
Now I am trying to use a UDE (User Defined Event) to input the variables and use these in the post.
I can't seem to be able to pull the values into the post, anyone know what I am doing wrong???
I have a custom command that I call in Program Start Sequence.
Code:
global AED_Mn_X
global AED_Mn_Y
global AED_Mn_Z
global AED_Mx_X
global AED_Mx_Y
global AED_Mx_Z
global AED_Format
set AED_Format "%#4.1f"
#Set variables to expression values
[MOM_ask_ess_exp_value AED_Min_X]]}
set AED_Mn_X [format $AED_Format [MOM_ask_ess_exp_value AED_Min_X]]
set AED_Mn_Y [format $AED_Format [MOM_ask_ess_exp_value AED_Min_Y]]
set AED_Mn_Z [format $AED_Format [MOM_ask_ess_exp_value AED_Min_Z]]
set AED_Mx_X [format $AED_Format [MOM_ask_ess_exp_value AED_Max_X]]
set AED_Mx_Y [format $AED_Format [MOM_ask_ess_exp_value AED_Max_Y]]
set AED_Mx_Z [format $AED_Format [MOM_ask_ess_exp_value AED_Max_Z]]
##Pull values from UDE - doesn't work???
# set AED_Mn_X [format $AED_Format [MOM_AED_Min_X]]
# set AED_Mn_Y [format $AED_Format [MOM_AED_Min_Y]]
# set AED_Mn_Z [format $AED_Format [MOM_AED_Min_Z]]
# set AED_Mx_X [format $AED_Format [MOM_AED_Max_X]]
# set AED_Mx_Y [format $AED_Format [MOM_AED_Max_Y]]
# set AED_Mx_Z [format $AED_Format [MOM_AED_Max_Z]]
#Output Stock Sizes
MOM_output_literal "BLK FORM 0.1 Z X${AED_Mn_X} Y${AED_Mn_Y} Z${AED_Mn_Z}"
MOM_output_literal "BLK FORM 0.2 X${AED_Mx_X} Y${AED_Mx_Y} Z${AED_Mx_Z}"
Does anyone know how to get the UDE values to work???
Thanks in advance
Cheers
Steve Griffiths
If you want to make apple pie from scratch, first you must create the universe!