CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6236

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    7832×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 13920:Saving your Inventor model in the presentation color scheme (iLogic).
Tip 11835:Shared Views to your DWG drawings - easy collaboration with collegues and clients.
Tip 11830:How to influence linetype scale or color for hidden edges in documentation views?
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?


Back   All CAD Tips



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:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist