CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 8017

CAD tip CAD tip # 10647:

   
Question CAD 
 %  platform  category 
Q - question

How to store macros inside DWG drawings?

A - answer 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    13157×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 13529:How to redefine the behavior of a standard AutoCAD command?
Tip 13211:Automatic numbering/renaming of multi-volume bodies in a part.
Tip 13197:How to transfer a model or sketch parameter to iProperties?
Tip 12743:A change in iLogic processing of Excel tables since Inventor 2021.
Tip 12392:Export unfolds of sheetmetal parts to DXF - parameters for iLogic and VBA


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   



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit 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.
TOPlist