Forces the next command to run with the specified version.
(initcommandversion [version])
This function makes it possible to force a specific behavior for a supported command regardless of how it is being run. This only affects commands that have been updated to support a command version. In such commands, a test for an initialized command version replaces the legacy test for whether the command is being run from LISP or a script. When a supported command is being run manually, the default version is 2 (or the latest version). When a command is being run from automation, the default version is 1.
Arguments
This argument specifies the version of the command to be used. If this argument is not present, the next use (and next use only) of a supported command will initialize to the latest version.
Return Values
T
Examples
Initializing a specific command version may affect each supported command differently. For example, here is the FILLET command with and without an initialized version:
Command: FILLET
Current settings: Mode = TRIM, Radius = 0.0000
Select first object or [Undo/Polyline/Radius/Trim/Multiple]: *Cancel*
Command: (INITCOMMANDVERSION 1)
Command: FILLET
Current settings: Mode = TRIM, Radius = 0.0000
Select first object or [uNdo/Polyline/Radius/Trim/mUltiple]: *Cancel*
Another typical example is the COLOR command. Run normally, COLOR displays the Select Color dialog; but by running (initcommandversion 1) before the COLOR command, it is forced to prompt from color from the command line.