How to list all module and sub routine in ACADProject

How to list all module and sub routine in ACADProject

tim11_manhhieu
Advocate Advocate
334 Views
2 Replies
Message 1 of 3

How to list all module and sub routine in ACADProject

tim11_manhhieu
Advocate
Advocate

My idea is to create a userform, and display sub routine and modules on it.

I want to run a sub routine in module by clicking on it.

I just need to know how to list them. I can create userform.

Because I have many modules, calling the toolbar is not very good.

 

0 Likes
Accepted solutions (1)
335 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor
Accepted solution

I would recommend against this method. You should learn to use the AutoCAD interface, specifically the CUI and ribbon. At AUGI I have a post that describes a good way to organize your code to make it easier to use your VBA in the ribbon. You can also use tool palettes if you don’t like the ribbon. 

 

But if you must create your own user interface, you can query loaded projects by using the VBE api. You must reference “Microsoft Visual Basic for Applications Extensibility 5.3”. 

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

Message 3 of 3

tim11_manhhieu
Advocate
Advocate

thank you for detailed response.

0 Likes