Message 1 of 16
Convert system variable name to text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello boys how are you.
I wanted to ask you, how can I convert the name of a system variable to text?
I have tried various options and none of them work for me.
(vl-prin1-to-string UCSNAME)
(vl-princ-to-string UCSNAME)
(strcat "\"" UCSNAME "\"")
I just want to write the name of the system variable and it returns me:
"UCSNAME"
Thank you very much in what you can help me.
AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)