×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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.

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

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.

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

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
http://www.psi-cad.com

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

(OP)
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 .

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

Hi

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.

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources