VBA controls in layout

VBA controls in layout

Anonymous
Not applicable
1,133 Views
2 Replies
Message 1 of 3

VBA controls in layout

Anonymous
Not applicable

Is possible to create VBA controls in paperspace or modelspace to run macros ?

 

I would like to add some buttons to a layout, to enable/disable some layers, and avoid making multiple layouts to show different layers.

0 Likes
1,134 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor

No, you would use CUI elements to run vba macros. e.g. toolbars, menus, palette, or ribbon. You can also use lisp to make a command that can be typed at the command line.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 3

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> I would like to add some buttons to a layout, to enable/disable some layers,

What would happen on a system which does not have the VBA-Enabler installed when they open this drawing/layout? 😉

 

>> avoid making multiple layouts to show different layers

Try layerstates.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes