ACADProject in VBA Editor
ACADProject in VBA Editor
(OP)
When I load a dvb file it creates a new Project in the VBA Editor and the project name ends up being something like this:
ACADProject(C:\Path name to DVB file)
Initially I had a ACADProject(Global1) but it seems to be gone. The reason I am describing this is because I am having a problem I think is related. I tried to create a custom toolbar button that would load a Macro that I have in my Project Module. I cannot get it to work. When I look at the Macro in my Macro List, it is listed with a path back to the project DVB. That is how I list the macro in my button properties but it does not work. I also tried to just list the macro name but that does not work either. Any suggestions or comments?
ACADProject(C:\Path name to DVB file)
Initially I had a ACADProject(Global1) but it seems to be gone. The reason I am describing this is because I am having a problem I think is related. I tried to create a custom toolbar button that would load a Macro that I have in my Project Module. I cannot get it to work. When I look at the Macro in my Macro List, it is listed with a path back to the project DVB. That is how I list the macro in my button properties but it does not work. I also tried to just list the macro name but that does not work either. Any suggestions or comments?





RE: ACADProject in VBA Editor
Or you can create a acad.lsp file and have AutoCAD load your project on startup. You need the following lines in the .lsp file:
(defun S::STARTUP()
(command "_VBALOAD" "gloabl2.dvb")
)
but your global2.dvb needs to be in the AutoCAD main directory to work.
RE: ACADProject in VBA Editor
^C^C-VBARUN PROJECTNAME.DVB!PROJECTNAME
If you don't have a module in your project add one and put the following in it.
Public Sub BlockInsert()
FRMPROJECTNAME.Show
End Sub