PDA

View Full Version : Automaticaly load the dvb file



jason907238
2005-02-09, 05: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.

Thanks,
Jason

Mike.Perry
2005-02-09, 05:14 PM
Hi

Take a look at using the Acad.dvb file.

Have a good one, Mike

richard.binning
2005-02-09, 09: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))


RLB