CAD FORUM - TIPS & TRICKS | UTILITIES | DISCUSSION | BLOCKS | SUPPORT | HELP & ASSISTANCE
Over 1.124.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 8627:
Question
A
Many AutoCAD professionals don't distinguish between commands and variables. Most time they don't need to. In both cases, just type the name in the command line and follow the prompts.
But there are cases where commands and variables differ in their behaviour. E.g. most command names are localized in localized versions of AutoCAD, variable names are not. System variables are to be called differently when used in LISP macros.
There are at least two methods how to tell if the specific function name is a command or a variable:
- Try to use it SETVAR - only variables will pass
- Try to use it in (getcname "_MYCOMMAND") - only commands will pass
ACAD
14.5.2012
9369×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

What is the ARKANCE Community?