CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 6912 

CAD tip CAD tip # 8627:

Question CAD 
 %  platform  category 
Q - question

Is it an AutoCAD command or variable?

A - answer 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
100% *  CAD 
14.5.2012    3875×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11502:How to detect DWG files created as an export from Autodesk Revit?
Tip 10918:How to avoid (disable) automatic restart after Windows Update?
Tip 10702:How to find which AutoCAD version was used to save a particular DWG drawing?
Tip 10469:How to install a new color book to your AutoCAD?
Tip 10231:How to draw spiral in AutoCAD LT?

Back   All CAD Tips All CAD tips&tricks

How to create red-cyan anaglyph from AutoCAD, Inventor or Revit? « | » Supported formats of scanned data (point clouds) in Inventor 2013.

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.