CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 8627:

Question

CAD 
 %  platform  category 
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
100% *CAD
14.5.2012   9369×  
   
this tip shared by ARKANCE experts applies to: AutoCAD ·

See also:
Tip 14957:Controlling Navisworks from the runstring.
Tip 14782:Command line in Autodesk Fusion.
Tip 14384:Wrong encoding of XLS/CSV/TXT files exported from CAD. Wrong characters on command line.
Tip 14260:How to extract attributes with tag names containing accents?
Tip 13920:Saving your Inventor model in the presentation color scheme, thumbnails with a white background (iLogic).


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
  





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