Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

NX 6 Automation

Status
Not open for further replies.

camelsoft

Computer
Dec 14, 2009
7
I want to learn if it is possible to have a new applicaton button and assign its action a previous defined button action. I want to use file->export->stl . When i look at the ug_main.men file,
BUTTON UG_FILE_EXPORT_RAPID_PROTOTYPE
LABEL ST&L...
MESSAGE Exports selected solid and sheet bodies into an STL (Stereo Lithography) file.
SYNONYMS SLA
HELP RPI_parameters
ACTIONS STANDARD

It has Standard action and a HELP parameter. so where is the definition of the action of this button? If there is no way to use that functionality of a previous button, how can i do that automation using NXOpen C api.
In addition , this button do not support journals.
 
Replies continue below

Recommended for you

Version?

From at least NX-5 onward you can drag and drop buttons and menu items to practically anywhere you like just using the Customize dialogs. This is where you click in the grey space surrounding the icons with MB3 and the list of menubars pops up whereby you can navigate to the very bottom and pick Customize to enter the dialog. After than the Commands Tab has the Menu Bar near the top and you can find File then Export in teh left hand box, and then look for STL in the right hand box, which you can then drop and drag wherever you'd like onto any existing menu bar or indeed to the top line of menus. Sure you'd probably have to change the icons yourself if you insist on having something fancier than out of the box, but realistically this method is probably simpler and more maintainable than coding your own menus.

Save it in a role when you're done.

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum
 
thanks for interest hudson888. This does not exactly what i want, because i want to do some changes on the functionality like choosing the save path etc. and it does not added to my menu files.
 
Okay I just thought that maybe I could save you some trouble.

You can do it with something like a User Command or Added menu though allowing you to create your own customisations still without necessarily having to code them but to point at the odd macro or journal. They're under the same Customize dialog area that I described earlier but in the left hand box you need to look nearer the bottom of the listed items.

Best Regards

Hudson

www.jamb.com.au

Nil Desperandum illegitimi non carborundum
 
Hudson is right, before you start to hack menu/toolbar files, your best bet is to look at what can be accomplished using the Customize tools and then saving your changes in a Role. You have complete control over the placement, appearance, action and even what the tool-tip will say using Customize and there is very little risk of 'breaking' a .men or a .tbr file, which if done manually could effect more than just the items that you're attempting to edit or replace.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor