Function Entry: VLAX-ADD-CMD
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VLAX-ADD-CMD
Name
vlax-add-cmd
Class
Visual LISP command-registration function
Syntax
(vlax-add-cmd global-name function-name [cmd-flags])
Autodesk documents the fuller syntax as:
(vlax-add-cmd global-name func-sym [local-name cmd-flags])
Arguments and Values
global-name— string naming the global command.func-sym— symbol naming a no-argument AutoLISP function.local-name— optional string naming the local command alias; defaults toglobal-name.cmd-flags— optional integer command flag word.
Description
Adds commands to the AutoCAD built-in command set.
Return Values
String naming the global command if successful.
Side Effects
Registers new commands in the host command system.
Compatibility
Part of the host integration layer rather than portable core language semantics.
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-add-cmd (AutoLISP/ActiveX)](https://help.autodesk.com/cloudhelp/2022/ENU/AutoCAD-AutoLISP-Reference/files/GUID-42392DA4-4A2B-4D34-AA7B-A5ACAF727E54.htm)
Notes
- Autodesk documents modal and transparent command flags, plus additional flags such as pickset use.
- Autodesk documents that commands are assigned to command groups automatically.
- Autodesk documents that the function should not be used to expose functions that create reactor objects or serve as reactor callbacks.
Compatibility
Supported on Windows, macOS, and Web in current Autodesk documentation.