CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 1532 

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
ACAD
100% *  CAD 
14.5.2012    1883x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 8553:Import SketchUp files into AutoCAD (SKP-DWG).
Tip 7599:List of new AutoCAD commands from Subscription Advantage Packs.
Tip 7203:An automatic legal disclaimer for eTransmit.
Tip 6724:Automatically generated picture-legend of drawing blocks.
Tip 6134:Be careful when naming your AutoCAD action macros.


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   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D 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.
TOPlist