Returns a running instance of an application object, or creates a new instance if the application is not currently running
Supported Platforms: AutoCAD for Windows only; not available in AutoCAD LT for Windows, or on Mac OS and Web
Signature
(vlax-get-or-create-object prog-id)
- prog-id
-
Type: String
Programmatic identifier of the desired ActiveX object. The format of prog-id is
<Vendor>.<Component>.<Version>
For example:
Excel.Application.16
Return Values
Type: VLA-object
An object.
Examples
(vlax-get-or-create-object "Excel.Application") #<VLA-OBJECT _Application 0017bb5c>