View Full Version : Automaticaly load the dvb file
2005-02-09, 04:01 PM
How can I automatically load a dvb file when either ACAD is opened or when a drawing is opened?
I want to execute procedures like "AcadDocument_EndCommand" with out having the user load the macro.
2005-02-09, 04:14 PM
Take a look at using the Acad.dvb file.
Have a good one, Mike
2005-02-09, 08:16 PM
You will want to follow Mikes advice to ensure that your file is loaded and executed automatically. What version of AutoCAD are you running? You may or may not have to ensure that acadvba.arx is loaded.
Here is what I do:
I moved this loading function to the "startup" group programmatically inside the acad.lsp file. This has the added benefit of not firing until the AutoCAD environment is fully initialized. (Much better for LDT)
Also, I simply have to ensure that all users have a particular folder listed first in their support file search path, rather than trying to sneaker set every users "Startup suite" settings.
(defun-q RLBSTARTUP ( )
(vl-vbarun "f:standards hc_standard.dvb!Module1.BeginStandards")
(setq S::STARTUP (append S::STARTUP RLBSTARTUP))
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.