Function Entry: INITCOMMANDVERSION
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: INITCOMMANDVERSION
Name
initcommandversion
Class
Function
Syntax
(initcommandversion [version])
Arguments and Values
version(optional): integer specifying the command version to use. When omitted, the next supported command runs at its latest version.
Description
Forces the next AutoCAD command to run with the specified version. Only commands that have been updated to support versioning honour this call. Manual interactive use defaults to the latest version (typically 2); LISP / scripting contexts default to version 1, so initcommandversion 2 is often used to invoke modern dialog-driven behaviour from a script, and initcommandversion 1 is used to force command-prompt-only behaviour.
Return Values
Always returns T.
Side Effects
Latches the version selector for the next command issued via command or command-s.
Examples
- Running the FILLET command after
(initcommandversion 1)shows the legacy prompt set. - The COLOR command, normally dialog-driven from a script, can be forced to prompt at the command line by
(initcommandversion 1)followed by the COLOR command.
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible.
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [initcommandversion (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-6176FC98-DC5D-433E-8D76-F481BE68D46A.htm)
- Status: documented (Phase 3 body fill).