Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

trying to get a pre action for a button to work.

Status
Not open for further replies.

aluminum2

Aerospace
Apr 27, 2010
218
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.
 
Replies continue below

Recommended for you

Try editing the 'action' line to read:

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.
 
I suggest to place your programm in a path without blank like:

C:\ugii\standard\ugnx8\UG_customization\APPLICATION\material.vb

I hope this help


Regards
Didier Psaltopoulos
 
Getting rid of the $ sign and spaces got it going, but now I am having a different problem.

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 .
 
It writes a material property as an attribute. I want it to run after the material from the library is selected so that it updates the attribute. I don't want to display the code because I did not write it. I tested it and it does work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor