CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 2829

CAD tip CAD tip # 6134:

Question CAD 
 %  platform  category 
Q - question

Be careful when naming your AutoCAD action macros.

A - answer Action macros you record with the ACTRECORD command can be assigned any name you choose except for the names of AutoCAD internal commands. Macros are then stored to the individual files myMACRONAME.ACTM in the default folder c:\Documents and Settings\username\Application Data\Autodesk\AutoCAD 2009\R17.2\enu\Support\Actions.

AutoCAD scans this folder after you launch a session and loads any ACTM macros it finds here. You cannot name your macro after an internal command name and AutoCAD even refuses to load an ACTM file which was renamed manually.

But be careful - this protection applies only to the names of AutoCAD commands, not to any external (user-defined) commands you may have defined in your LISP applications (defun c:CMDNAME), other add-on programming tool or even a PGP command alias. You can effectively map out (disable, hide, overlay) your existing commands when you inadverently assign a "wrong" name to your action macro. Your commands, menus, scripts and LISP utilities may suddenly and magically cease to work!

Command/macros can be also overlaid in the opposite way - if you name an action macro the same as an AutoCAD localized command name (it allows you to do this), such macro will run the original command, not the recorded actions.

100% *  CAD 
14.5.2008    14066×  

See also:
Tip 12120:Double-click to edit raster images in DWG drawings.
Tip 10768:What is the red dot icon next to AutoCAD cursor?
Tip 10137:Changed behavior of the Edit text command in AutoCAD 2015.
Tip 7503:Autodesk 3ds Max keyboard shortcuts.
Tip 6990:The action recorder macro changes my drawing view.

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   

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.