trying to get a pre action for a button to work.
trying to get a pre action for a button to work.
(OP)
I have a .men file
! Add custom menu items or customizations
! Revised: 20 Feb 2004
! Note: Actions lines are 132 chars max.
!
VERSION 120
EDIT UG_GATEWAY_MAIN_MENUBAR
MODIFY
BUTTON UG_FILE_SAVE_AS
ACTIONS/pre $C:\Program Files\Siemens\NX 8.0\UG_customization\APPLICATION\material.vb
END_OF_MODIFY
everytime I press the file saveas button I get the error " None of the actions specified for this button were registered"
I was wondering if there was something else I had to do to get it working. I would later want to add this for the tools>materials>assign materials button, but figured I would try the savas button to test out the file.
! Add custom menu items or customizations
! Revised: 20 Feb 2004
! Note: Actions lines are 132 chars max.
!
VERSION 120
EDIT UG_GATEWAY_MAIN_MENUBAR
MODIFY
BUTTON UG_FILE_SAVE_AS
ACTIONS/pre $C:\Program Files\Siemens\NX 8.0\UG_customization\APPLICATION\material.vb
END_OF_MODIFY
everytime I press the file saveas button I get the error " None of the actions specified for this button were registered"
I was wondering if there was something else I had to do to get it working. I would later want to add this for the tools>materials>assign materials button, but figured I would try the savas button to test out the file.





RE: trying to get a pre action for a button to work.
ACTIONS/PRE C:\Program Files\Siemens\NX 8.0\UG_customization\APPLICATION\material.vb
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: trying to get a pre action for a button to work.
C:\ugii\standard\ugnx8\UG_customization\APPLICATION\material.vb
I hope this help
Regards
Didier Psaltopoulos
http://www.psi-cad.com
RE: trying to get a pre action for a button to work.
I set the program on a different button
BUTTON UG_MATERIAL_ASSIGN
ACTIONS/post C:\UG_customization\APPLICATION\material.vb
When I run the action as post, the material library doesn't appear, but the journal runs. I looked at the log as saw this line
Cannot obtain authoring license from server - error =
NX License Error: License server system does not support this feature. [ -18 ]
I have the following licences
Components [29]:
3d_to_2d_flattener
assemblies
drafting
dxf_to_ug
dxfdwg
features_modeling
gateway
grip_execute
iges
nx_freeform_1
nx_nastran_export
nx_sheet_metal
nx_spsd_stress
nx_spsd_vibration
pcf_package_file
pstudio_cons
pv_ugdatagenerator
sla_3d_systems
solid_modeling
step_ap203
step_ap214
ug_collaborate
ug_kf_checker
ug_kf_execute
ug_nas_des
ug_smart_models
ug_to_dxf
ug_web_express
ugopen_menuscript
It would seem like the last license would be the one.
ALso if I cant use ug customization, then can I use the ug_main.men file located in UGII\menus .
RE: trying to get a pre action for a button to work.
Could you explain the purpose of material.vb and send the source ?
Regards
Didier Psaltopoulos
http://www.psi-cad.com
RE: trying to get a pre action for a button to work.