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.
Source Notes
- [vlax-make-variant (AutoLISP/ActiveX)](https://help.autodesk.com/cloudhelp/2024/CHS/AutoCAD-MAC-AutoLISP-Reference/files/GUID-A1B964E3-89B4-4655-9E37-B24401450CDA.htm)
- [About Working with Variants (AutoLISP/ActiveX)](https://help.autodesk.com/cloudhelp/2026/PLK/AutoCAD-AutoLISP/files/GUID-5AEC3752-6612-4289-89CC-6F9EA6228155.htm)
Notes
- If
typeis omitted, Autodesk documents a default mapping from the supplied AutoLISP value to a variant type. - In particular, an integer defaults to
vlax-vbLong, notvlax-vbInteger.
Compatibility
Available only on Windows; not available on macOS or Web.