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

CAD tip CAD tip # 1949:

Question CAD 
 %  platform  category 
Q - question

How to make universal/global macros - for any language version of AutoCAD?

A - answer 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.

ACADLT
100% *  CAD 
8.2.2002    6534×  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 11664:Which AutoCAD commands do exist also in the commandline (non-dialog) dashed version?
Tip 11580:Excel: convert Unicode texts to \U+ codes for AutoCAD
Tip 11542:How to reset the top browser node name back to the file name?
Tip 11244:Labels with incrementing numbers - assembly with numbered labels for laser cutting.
Tip 11211:Mass change of units in the whole Inventor assembly.


Back   All CAD Tips All CAD tips&tricks

How to replace one block with another one? « | » How to set an enhanced user interface of Windows XP for dialogs inside Inventor?

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:
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.
TOPlist