TheSwamp
Code Red => VB(A) => Topic started by: BRad on June 28, 2013, 01:53:45 PM
-
Is there a sysvar that can be queried to determine if the VBA enable is running in the session? Will it always run if installed, or can it be "demand" enabled and\or disabled?
-
If installed, then running - kinda. The whole thing doesn't get in memory until some vba command initializes it (vbaman, vbaload, vbarun)
You can search for file AcVba.arx in installation path of AutoCAD for it's presence that indicates it is loaded.
ex. C:\Program Files\Autodesk\AutoCAD 2012\acvba.arx
-
If you need to do it programmatically, you can use the FINDFILE (http://docs.autodesk.com/ACD/2013/ENU/index.html?url=files/GUID-D671F67D-F92B-41FF-B9FA-A48EF52CF607.htm,topicNumber=d30e614283) function.