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!

NX11 - Drop Down code

Status
Not open for further replies.

Kenja824

Automotive
Nov 5, 2014
949
Adding a drop down to a TBR file is simple enough. What I was wondering is if it is possible to add a drop down menu inside of another drop down menu?

Basically what I have is three different drop down buttons. These bring in parasolids.

Square Tbu'g Drop down will have a list of different size square tubing.
Round tubing will have a list of round tubing parasolids.
Steel Angles will have a dropdown list of several different sized steel angles.

My boss would like to know if we can create a drop down button called "Structural Shapes" that first has a drop down list of...
Square Tubing
Round Tubing
Steel Angles

Whichever one you select would then expand to a second list of the different sizes we have of that item.

Is this possible?
 
Replies continue below

Recommended for you

Got it. Basically it was as simple as writing the dropdown inside the other dropdown. lol

Example....

BEGIN_DROPDOWN Shapes
DROPDOWN_STYLE AS_POPUP_MENU
COLUMN_DROPDOWN 1
BITMAP path to image\xxxxx.bmp



BEGIN_DROPDOWN SQUARE TUB'G
DROPDOWN_STYLE AS_POPUP_MENU
COLUMN_DROPDOWN 1

BUTTON 3X3X325
LABEL 3" X 3" X 5/16" WT
STYLE Icon and Text
BITMAP path to image\xxxxx.bmp
ACTION path to vb file\xxxxx.vb

BUTTON 4X4X325
LABEL 4" X 4" X 5/16" WT
STYLE Icon and Text
BITMAP path to image\xxxxx.bmp
ACTION path to vb file\xxxxx.vb
END_DROPDOWN



BEGIN_DROPDOWN Round TUB'G
DROPDOWN_STYLE AS_POPUP_MENU
COLUMN_DROPDOWN 1

BUTTON DIA3X325
LABEL 3" DIA X 5/16" WT
STYLE Icon and Text
BITMAP path to image\xxxxx.bmp
ACTION path to vb file\xxxxx.vb

BUTTON DIA4X325
LABEL 4" DIA X 5/16" WT
STYLE Icon and Text
BITMAP path to image\xxxxx.bmp
ACTION path to vb file\xxxxx.vb
END_DROPDOWN


END_DROPDOWN

I just never even considered the simplicity of it. lol

What I would still like to know however, is can one make it so the upper levels of the button are not selectable to run the VB code? Only selecting the lowest level will run the journal?
 
you have not considered using the reuse library ?

Regards,
Tomas

 
I had mentioned using the Reuse Library with one Rectangular Tube, one Round Tube, and one Steel Angle and each would have a few parameters to change. That was shot down. He wants a button and just dead bodies.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor