Setting up Default VBA/Macro Location

Setting up Default VBA/Macro Location

floccipier
Advocate Advocate
921 Views
2 Replies
Message 1 of 3

Setting up Default VBA/Macro Location

floccipier
Advocate
Advocate

Hi,
I am suing ACad2022 Mechanical and I was wondering if there is way to have default (application) project that is loaded and accessible no matter if a drawing file is opened or not? Like in Autodesk Inventor there is default folder and in it there is default project that is always loaded and available. 
Best regards,

Flo

0 Likes
922 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor

You can store code in a dvb file rather than in a dwg. See the VBAMAN command. You can create an AcadStartup macro in a file called acad.dvb. Put acad.dvb in the search path. However, most code other than AcadStartup is not accessible to run when there are no documents loaded. It's called zero document state. There are other ways to load any dvb. The one I use is to create a cuix for your commands and then create a mnl file that gets loaded with the menu. Its a lisp file and you can use lisp to load your dvb. The mnl loads when your menu loads, which is at startup.

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

floccipier
Advocate
Advocate

Thanks, I will check and update you. 

0 Likes