vlax-get-or-create-object

AutoCad AutoLISP Functions

 
vlax-get-or-create-object
 
 
 

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

(vlax-get-or-create-object prog-id)

Arguments

prog-id

A string containing the programmatic identifier of the desired ActiveX object. The format of prog-id is

<Vendor>.<Component>.<Version>

For example:

AutoCAD.Drawing.15

Return Values

The object.

Examples

_$ (vlax-get-or-create-object
"Excel.Application")
#<VLA-OBJECT _Application 0017bb5c>