Find your acad.lsp file.
It will be in one of the support folders ending with support listed in the Support File Search Path of the Files tab in Autocad's Options dialogue. Or you can do a file search and confirm the location against the paths listed in autocads options dialogue.
If an acad.lsp file does not exist create one in notepad, and save it to a support path location.
Once you have your acad.lsp file, add this. Don't worry about the vba.lsp file, this will load and run your dvb on autocad start up. Every time autocad is started it looks for and loads the first acad.lsp file it finds (then acaddoc.lsp). Be aware, putting this in the acad.lsp file, may cause the macro to run before there is a document loaded. If that is the case, put it in the acaddoc.lsp file, which loads every time a document is created or opened.
(if
(findfile
" c:/Documents and Settings/user455/Desktop/test.dvb"
)
(progn
(vl-load-com)
(vl-vbarun "c:/Documents and Settings/user455/Desktop/test.dvb!Module1.AcadStartup")
)
(princ)
)
This does not create a command that you can run from autocad, as the previously defined vba.lsp file does, it just loads and runs the dvb file and macro.
If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.
Andrew Puller
Maitland, NSW, Australia
Windows 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023