Author Topic: DEMANDLOAD system variable not allowing VBA..  (Read 1945 times)

0 Members and 1 Guest are viewing this topic.

hardwired

  • Guest
DEMANDLOAD system variable not allowing VBA..
« on: January 30, 2009, 06:11:59 AM »
Hi,



We had a recent issue with a third-party application loading a drawing that had its own objects in it, and was slowing down my colleagues pc and he had to use 2008 not 2009 instead. We tried the DEMANDLOAD system variable and that worked a treat for the drawing, but its not allowing our VBA programs to work - its says unknown command on any vba command he tried, which obviously worked previously - we set DEMANDLOAD to 0, and the other settings have the same affect as before we used the DEMANLOAD variable, so i dunno how to get round this..



Any ideas?

Chuck Gabriel

  • Guest
Re: DEMANDLOAD system variable not allowing VBA..
« Reply #1 on: January 30, 2009, 07:47:03 AM »
There is a demand-loaded program called acadvba.arx (maybe a different name in your version of AutoCAD) that has to be loaded before VBA will work.  There are a couple of ways you can get it loaded automatically even with demandload turned off.

You can create an acad.rx file somewhere on your library path (or edit it if it already exists), and add a line to the file that contains the path and file name to your acadvba.arx.

Alternatively, you can add something like the following to your acad.lsp:

(arxload "acadvba.arx")

I hope it works out for you.