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 # 1949:

Question

CAD 
 %  platform  category 
A
When preparing globalized macros and programs you should use so called "underscore convention" for all command and option names - e.g. _ERASE _ALL or even _-LAYER _Col _Red 0 or (SSGET "_X").

In LISP applications always use non-localized command- and option names prefixed by underscore - like in (command "_pline" p1 p2 p3 p4 "_cl"). This applies also to e.g. XP (_x_p) option in zoom, color names, etc. Be carefull with error handlers testing Function cancelled string value, with standard linetype names, or when undefining/redefining internal commands.

Properly globalized macros can be used universally in any language version of AutoCAD.

ACADACLT
100% *CAD
8.2.2002   9881×  
   
this tip shared by ARKANCE experts applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 15006:How to use .DXEX files in AutoCAD 2025 and earlier versions?
Tip 14975:iLogic Codeblocks - visual programming in Inventor 2027
Tip 14641:Automatic naming of Inventor drawing sheets according to the first model (iLogic).
Tip 14611:Contribution of individual features to the total mass of an Inventor part (iLogic).
Tip 14542:How to easily add a transparency toggle in AutoCAD?


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