About macros

AutoCAD Map 3D ActiveX

Macros

An AutoCAD Map VBA macro is a program that interacts with AutoCAD Map through the Automation API. The VBA macro may include operations on projects, drawings, drawing sets, queries, and object data. VBA macros are stored in .dwg or .dvp format. You create macros in modules, the windows in the Visual Basic Editor for entering VBA code.

From AutoCAD Map, you can create macros or access macros in all active drawings and projects, or just in certain ones. Click Tools > Macros > Macro. Click VBA Manager to load, unload, save, create, embed, and extract VBA projects. For more information, click Help in the Macros dialog box.

What else do you want to do?

Get started with VBA

Use modules

Create a simple macro

Save macros

Work with projects

Use the Object Browser

Insert files into modules

Find Help on Microsoft VB and VBA

Find Help on AutoCAD APIs

You can also use the browse buttons to navigate this topic group.