TheSwamp

Code Red => VB(A) => Topic started by: BRad on June 28, 2013, 01:53:45 PM

Title: VBA Enabler
Post 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?
Title: Re: VBA Enabler
Post by: CADDOG on July 23, 2013, 03:44:03 PM
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
Title: Re: VBA Enabler
Post by: Matt__W on July 23, 2013, 03:48:44 PM
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.