How to Create a Custom Dropdown Menu in AutoCAD Like AutoCAD’s Layer Selection?

How to Create a Custom Dropdown Menu in AutoCAD Like AutoCAD’s Layer Selection?

jan_buchholzCJ5DJ
Explorer Explorer
360 Views
6 Replies
Message 1 of 7

How to Create a Custom Dropdown Menu in AutoCAD Like AutoCAD’s Layer Selection?

jan_buchholzCJ5DJ
Explorer
Explorer

I'm looking to create a custom dropdown menu similar to the Layer dropdown in AutoCAD—where the dropdown displays a name and includes several interactive buttons to the left. I’d like to integrate this directly into a custom ribbon, rather than creating a separate palette.

 

Is there a way to replicate the behavior and appearance of the Layer dropdown menu within a ribbon (.cuix, etc.), or would I need to use WinForms to achieve this?

0 Likes
Accepted solutions (1)
361 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

Drop down lists with certain functions can be customized in a dialog box and then populated using lisp. But not sure if this can be replicated inside the ribbon


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 7

Simon_Weel
Advisor
Advisor

Those are special elements - not something you can create yourself?

0 Likes
Message 4 of 7

pendean
Community Legend
Community Legend
Accepted solution

@jan_buchholzCJ5DJ That's not open to end users. Sorry.

 

But there are other limited-ability "pulldown" menus and toolbar buttons if you only want to access built-in tools in CUI command.

Message 5 of 7

jan_buchholzCJ5DJ
Explorer
Explorer

Thanks for the clarification! I was hoping there was a hidden option in CUI to create something more integrated, so that’s a bit disappointing. Opening a new palette or dialog box just to achieve the planned dropdown functionality feels like overkill, but good to know the limitations. Thanks again!

0 Likes
Message 6 of 7

cadffm
Consultant
Consultant

Hi,

similar is a FLYOUT (for a static list of entries)

 

(Your Screenshot is cutted tight, is from QAT? TOOLBAR? or part of an Panel in tab of the ribbon?)

 

Sebastian

0 Likes
Message 7 of 7

jan_buchholzCJ5DJ
Explorer
Explorer

Thanks for the reply. The layer dropdown in my screenshot is in both the QAT and the Layer tab of the Start Ribbon. Since I need dynamic functionality (non-fixed number of elements, interactive buttons), a flyout won’t work, unfortunately.

0 Likes