vlax-remove-cmd

AutoCad AutoLISP Functions

 
vlax-remove-cmd
 
 
 

Removes a single command or a command group

(vlax-remove-cmd global-name)

Removes a single command or the whole command group for the current AutoCAD session.

Arguments

global-name

Either a string naming the command, or T. If global-name is T, the whole command group VLC-AppName (for example, VLC-VLIDE) is deleted.

Return Values

T, if successful; otherwise nil (for example, the command is not defined).

Examples

Remove a command defined with vlax-add-cmd:

_$ (vlax-remove-cmd "hello-autocad")
T

Repeat the vlax-remove-cmd:

_$ (vlax-remove-cmd "hello-autocad")
nil

This time vlax-remove-cmd returns nil, because the specified command does not exist anymore.

See Also