Function Entry: VL-CMDF

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

Function Entry: VL-CMDF

Name

vl-cmdf

Class

Visual LISP Command Function

Syntax

(vl-cmdf [argument ...])

Arguments and Values

  • argument — strings, reals, integers, lists/points, or entity names, as required by the target command prompt sequence.

Description

Executes an AutoCAD command.

Return Values

Always returns T.

Side Effects

Invokes command processing.

Compatibility

Part of the Visual LISP command layer and related to command and command-s.

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

  • Autodesk documents that vl-cmdf evaluates all arguments before command execution begins.
  • Autodesk contrasts this with command, which may partially execute before an argument-evaluation error is detected.
  • Autodesk documents that an empty string is equivalent to pressing Enter, and a no-argument call is equivalent to pressing Esc for most commands.

clautolisp

vl-cmdf is an ordinary subr sharing command's token normalization and host routing (its arguments are evaluated by the ordinary calling convention — exactly the documented evaluate-first contrast with command). It returns T on success. When the active backend has no command channel (the bare NullHost) it returns nil instead of surfacing :host-not-supported — the T / nil success contract; other failures surface as runtime errors. See the command entry's clautolisp section for the token rules.

Compatibility

Supported on Windows, macOS, and Web in current Autodesk documentation.