Function Entry: VLAX-CREATE-OBJECT

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VLAX-CREATE-OBJECT

Name

vlax-create-object

Class

Visual LISP automation constructor

Syntax

(vlax-create-object prog-id)

Arguments and Values

  • prog-id — string naming an automation class.

The documented format is:

<Vendor>.<Component>.<Version>

For example, AutoCAD.AcCmColor.25.

Description

Creates a new instance of an application automation object.

Return Values

Returns a VLA-object on success.

Exceptional Situations

Signals an AutoLISP-visible error if automation support is unavailable or object creation fails.

Notes

  • Autodesk documents this as available only in AutoCAD for Windows, not in AutoCAD LT for Windows, nor on macOS or Web.
  • This differs from vlax-get-object, which retrieves an already-running object.
  • If the target application registers itself as a single-instance object, repeated calls may still yield only one instance.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.