Query and Command Functions
 
 
 

The following table provides summary descriptions of the AutoLISP query and command functions.

Query and command functions

Function

Description

( acad_colordlgcolornum [flag])

Displays the standard AutoCAD Color Selection dialog box

( acad_helpdlghelpfile topic)

Invokes the Help facility (obsolete)

( command [arguments] ...)

Executes an AutoCAD command

( getcfgcfgname)

Retrieves application data from the AppData section of the acad*.cfg file

( getcnamecname)

Retrieves the localized or English name of an AutoCAD command

( getenv "variable-name")

Returns the string value assigned to an environment variable

( getvar varname)

Retrieves the value of an AutoCAD system variable

( help[helpfile [topic

[command]]])

Invokes the Help facility

( setcfgcfgname cfgval)

Writes application data to the AppData section of the acad*.cfg file

( setenv "varname""value")

Sets an environment variable to a specified value

( setfunhelp "c:fname"

["helpfile" ["topic" ["command"]]])

Registers a user-defined command with the Help facility so the appropriate help file and topic are called when the user requests help on that command

( setvarvarname value)

Sets an AutoCAD system variable to a specified value

( ver)

Returns a string that contains the current AutoLISP version number

( vl-cmdf [arguments] ...)

Executes an AutoCAD command after evaluating arguments

( vlax-add-cmdglobal-name

func-sym [local-name cmd-flags])

Adds commands to a group

NoteVLISP extension: requires vl-load-com

( vlax-remove-cmdglobal-name)

Removes a single command or command group

NoteVLISP extension: requires vl-load-com