getcname

AutoCad AutoLISP Functions

 
getcname
 
 
 

Retrieves the localized or English name of an AutoCAD command

(getcname cname) 

Arguments

cname

The localized or underscored English command name; must be 64 characters or less in length.

Return Values

If cname is not preceded by an underscore (assumed to be the localized command name), getcname returns the underscored English command name. If cname is preceded by an underscore, getcname returns the localized command name. This function returns nil if cname is not a valid command name.

Examples

In a French version of AutoCAD, the following is true.

(getcname "ETIRER")returns  "_STRETCH" 
(getcname "_STRETCH")returns  "ETIRER"