vlax-get-or-create-object (AutoLISP/ActiveX)

Returns a running instance of an application object, or creates a new instance if the application is not currently running

Supported Platforms: Windows only

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>