
1
Click Manage tab
➤
Macros panel
➤
Macro Manager to open the Macros Manager.
2
Create modules based on application-level or document-level design. See
on
page 1426.
3
Define macros for the module with your implementation code using the Revit VSTA IDE. See
on page 1427.
4
Build the module and its macros. See
Building Macros in the Revit VSTA IDE
on page 1432.
5
Run the macros in the Macro Manager to observe the results. See
on page 1433.
Creating Modules
To create macros, perform the following steps.
NOTE
If the application or current document already contains modules, macros must be enabled in the Macro
Security settings. See
on page 1434.
1
Click Manage tab
➤
Macros panel
➤
Macro Manager to open the Macros Manager.
2
Select the Application tab (for application-level macros) or a Project tab (for document-level
macros).
3
In the Create section of the Macro Manager dialog, click Module.
The Create a New Module dialog opens.
4
Enter the following information:
■
Enter a name in the Module name field.
■
Select either C# or VB.NET in the Language field.
■
Optionally, add a brief description of the module in the Description field.
Creating an Application-level module in
C#
5
Click OK.
The new module is created and listed in the Macros Manager. One or more macros may now
be added.
1426 | Chapter 26 Creating Macros with Revit VSTA
Summary of Contents for 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010
Page 1: ...Revit Architecture 2010 User s Guide March 2009 ...
Page 4: ......
Page 42: ...xlii ...
Page 84: ...42 ...
Page 126: ...84 ...
Page 166: ...124 ...
Page 229: ...Schedule Field Formatting Calculating Totals Specifying Schedule Properties 187 ...
Page 230: ...Schedule with Grid Lines Schedule with Grid Lines and an Outline 188 Chapter 5 Project Views ...
Page 304: ...262 ...
Page 427: ...Defining the first scale vector Defining the second scale vector Resizing Graphically 385 ...
Page 454: ...Before painting applying material to stairs 412 Chapter 8 Editing Elements ...
Page 456: ...414 ...
Page 486: ...444 ...
Page 674: ...632 ...
Page 809: ...Curtain wall Curtain Grid Curtain Walls Curtain Grids and Mullions 767 ...
Page 994: ...952 ...
Page 1016: ...974 ...
Page 1204: ...1162 ...
Page 1290: ...1248 ...
Page 1318: ...1276 ...
Page 1372: ...1330 ...
Page 1382: ...1340 ...
Page 1462: ...1420 ...
Page 1492: ...1450 ...