AutoCAD Mechanical
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
starting vba macro with ACADM starting
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi
I'm looking to a way to start a specific macro written in VBA when ACADM is started.
I have added in folder "C:\Program Files\Autodesk\ACADM 2010\Acadm" a file named acad.lsp that contains this lines :
;startup for application ACADM, installed xxxxxxx(princ (load "gen/acadm.lsp" "\nError: acadm.lsp not loaded!"));(if acadmappend (setq s::startup (acadmappend s::startup)))
;@udros initialization(princ (load "gen/au_startup.lsp" "\nError: au_startup.lsp could not be loaded!"))
and a file named au_startup.lsp in subfolder gen that contains this lines :
(defun S:
TARTUP()
;Add the correct path to AcadInterface.dvb here
(setq auHome6 (getenv "AU_HOME_6"))
(setq auHome6 (strcat auHome6 "\\CAD\\Async\\AutoCad\\AcadInterface.dvb"))
(vl-vbaload auHome6)
(vl-vbarun "Layer3_MainProcesses.AcadStartup")
)
