Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

'Right-click and drag' popup menu in Modelling 1

Status
Not open for further replies.

JHTH

Mechanical
Nov 1, 2010
83
Re: thread561-232656

Can JohnRBaker, or anyone else for that matter, help me? John's post, if I am reading it correctly, seems to suggest that the right-click-and-drag popup menu (see attached screenshot) can be edited but I can't seem to figure out how.

I've started the Customize screen but I can't locate the popup menu to drag a new button onto. Is it possible to edit this?

Thanks,

JH
 
Replies continue below

Recommended for you

Yes, it is possible, but the only way I know is to create a MEN file and place it in the Startup folder.

This is what I created as the MEN file ...

VERSION 120

EDIT UG_GATEWAY_VIEW_POPUP

! Additional Options

MODIFY
BUTTON UG_VIEW_POPUP_RESTORE_ORIGINAL
POPUP_LOCATION 1
BUTTON UG_VIEW_POPUP_ORIENT_TFRTRI
BITMAP view_tfr_tri.bmp
POPUP_LOCATION 4
BUTTON UG_VIEW_POPUP_REFRESH
POPUP_LOCATION 5
BUTTON UG_VIEW_POPUP_STATIC_WIREFRAME
POPUP_LOCATION 8
END_OF_MODIFY

NX 6.0.5.3
Windows XP32
 
Thanks, I'll give this MEN approach a go, looks pretty straightforward.

Cheers,

JH
 
Morning, all,

I've successfully changed the popup menu using the approach you suggested but I can't get it to use the command I want. I'm trying to put the True Shading toggle (I'm in NX7) into position 8, so I've added the following lines into the .men file (the bitmap is just to have an image in there, I'll find the proper one later):

BUTTON UG_VIEW_POPUP_TRUE_SHADING_TOGGLE
LABEL True Shad&ing
BITMAP hidden_line_normal.bmp
POPUP_LABEL True Shad&ing
POPUP_LOCATION 8
ACTIONS STANDARD

When I get into NX, the space is empty (though it has the image present if I put an incorrect function name in the BUTTON line) and going through Information > Custom Menu Bar > Custom Item report shows the following:

The following standard menu items have one or more custom actions:

Toggle UG_VIEW_POPUP_TRUE_SHADING_TOGGLE True Shading
Actions:
<wrong button type>

Any ideas what I'm missing?

Thanks,

JH
 
It worked for me. Here is what I put in my edited pop-up menu file:

TOGGLE_BUTTON UG_VIEW_POPUP_TRUE_SHADING_TOGGLE
LABEL True Shad&ing
MESSAGE Displays views with True Shading visualization characteristics.
BITMAP true_shade
POPUP_LABEL True Shad&ing
POPUP_MESSAGE Displays views with True Shading visualization characteristics.
POPUP_LOCATION 8
ACTIONS STANDARD


And it works just fine.

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.
 
Ok, I'm at a loss to work out what's going on now... let me explain.

John, I copied and pasted the lines that you posted above into the edit_ug_view_popup.men under our NX7_Custom\Menuscript\startup directory and restarted NX. The button was not present and nothing showed up under the Custom Item Report.

If I remove TOGGLE_ from the beginning and run NX, the button is still invisible and I get the same 'wrong button type' error in the Custom Item Report as I posted before. If I remove _TOGGLE from the end of the first line, the button is again invisible and the Custom Item Report tells me, understandably, that the action is not registered. If, however, I remove both TOGGLE_ and _TOGGLE, the button does appear but clicking it pops up an error message about the action not being registered.

We use this file to create one other button, which I can move from position 4 to position 8 with no problem, so editing it can produce a successful change but it just refuses to accept the True Shading button, for some reason.

I've attached the file that I'm editing, can you see what it is that I'm missing? I know this was information overload, but I figured better to have too much than only giving half the story and leaving you guessing the rest.

Thanks ever so much for your time!

JH

Jon Hackett
Mechanical Engineer and de facto CAD Manager
Taylor Hobson Ltd. (www.taylor-hobson.com)
 
 http://files.engineering.com/getfile.aspx?folder=24a12359-973b-43c0-af0a-fdbee720de54&file=edit_ug_view_popup.men
Hi JH,

It seems that the character & is in wrong place

find below my test:

BUTTON UG_VIEW_POPUP_STATIC_WIREFRAME
LABEL &Static Wireframe
BITMAP hidden_line_normal.bmp
POPUP_LABEL &Static Wireframe
POPUP_LOCATION 4
ACTIONS STANDARD

TOGGLE_BUTTON UG_VIEW_POPUP_TRUE_SHADING_TOGGLE
LABEL &True Shading
BITMAP true_shade.bmp
POPUP_LABEL &True Shading
POPUP_LOCATION 8
ACTIONS STANDARD


Regards
Didier Psaltopoulos
 
My advice would be start out by making a copy of the COMPLETE 'ug_view_popup.men' (and leaving it the same name) and placing it in the 'application' folder. Now make your edits to this file. This is how I do it and it works fine for me.

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.
 
If you have a "spaceball" you may want to consider assigning commands to buttons that you have available for that.
 
Morning, all,

I meant to reply a while ago to say that I've tried word for word what John and others have suggested (and thank you again for your efforts, they are appreciated!) but NX is still steadfastly refusing to cooperate. The spaceball suggestion is, however, a good idea and I'll suggest it to the user in question.

Cheers,

Jon

Jon Hackett
Mechanical Engineer and de facto CAD Manager
Taylor Hobson Ltd. (
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor