Function Entry: VLAX-MAKE-VARIANT

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

Function Entry: VLAX-MAKE-VARIANT

Name

vlax-make-variant

Class

Visual LISP automation utility

Syntax

(vlax-make-variant value [type])

Arguments and Values

  • value — integer, real, string, VLA-object, safearray, T, nil, or existing variant.
  • type — optional integer type constant.

Description

Creates a variant data type.

Return Values

Variant object.

Side Effects

None.

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.

Notes

  • If type is omitted, Autodesk documents a default mapping from the supplied AutoLISP value to a variant type.
  • In particular, an integer defaults to vlax-vbLong, not vlax-vbInteger.

Compatibility

Available only on Windows; not available on macOS or Web.