Function Entry: GETCNAME
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: GETCNAME
Name
getcname
Class
Function
Syntax
(getcname cname)
Arguments and Values
cname: string; a localized command name, or an underscored English command name. Up to 64 characters.
Description
Converts between localized and English command names. Without an underscore, returns the underscored English command name. With an underscore, returns the localized command name. Useful for writing language-agnostic AutoLISP routines.
Return Values
A string, or nil if cname is invalid.
Side Effects
None.
Examples
In French AutoCAD:
(getcname "ETIRER")returns `"STRETCH"`.- `(getcname "STRETCH")
returns"ETIRER"`.
Availability
- AutoCAD 2026: documented.
- BricsCAD V26: presumed compatible (BricsCAD also localises command names).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [getcname (AutoLISP 2026)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-1DCDFFA6-0372-479D-B00F-D165EC5B8A2C.htm)
- Status: documented (Phase 3 body fill).