CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT | CAD ESHOP - CZ | SK | EN | DE
Over 1.077.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.
Place your Ad on CADforum.cz

CAD tip CAD tip # 10647:

Question

CAD 
 %  platform  category 
A
As you probably know, in AutoCAD (extended by installing the VBA Enabler), you can insert and execute VBA macros inside DWG files.

But with the freeware application CADstudio AutoExec you can also use DWG drawings to store AutoLISP (resp. VisualLISP) macros, including .lsp, .fas, .vlx files. With the enabler module AutoExec.vlx loaded, you can then automatically load and execute macros stored in opened DWG files also on other computers. You can use it to define new commands related to the specific DWG file or to drawings based on a specific DWT template. Please note that the LISP file is just loaded by default. If you also want to run a specific function/command automatically, add it into the Exec field.

The AUTOEXEC command displays a list of macros available in the current drawing ("*" indicates my own macros). The Load function can read in another macro (a LSP/VLX file).

You can limit macro loading to those macros, which were stored (signed) by the same user.

More on AutoExec
ACAD
100% *CAD
14.12.2015    13429×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 14215:IF statement in AutoCAD text fields and attributes.
Tip 14200:How can I use multiple title blocks in an Inventor drawing?
Tip 13920:Saving your Inventor model in the presentation color scheme, thumbnails with a white background (iLogic).
Tip 13529:How to redefine the behavior of a standard AutoCAD command?
Tip 13211:Automatic numbering/renaming of multi-volume bodies in a part.


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
  



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


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