Autodesk 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010 User Manual page 1471

User guide
Table of Contents

Advertisement

Notice that in this C# template for application-level macros, Revit VSTA has already:
Included the necessary
Identified the module namespace (
Started the
ThisApplication
Started the methods for
Started your new macro's method (
opportunity to add your implementation code between the braces.
Also, note that the Revit VSTA Project Explorer shows your context.
5 In the main window of the IDE, you can now enter your source code. See
Examples
on page 1430.
6 Click File
Save <macro name>, then close the Revit VSTA IDE.
7 Repeat steps 6 through 10 for any additional macros needed in the module.
NOTE Remember that you must successfully build and save module projects in the Revit VSTA IDE,
before they will display in the Macro Manager's categorized list. See
VSTA IDE
on page 1432.
Optional Tools
Click Description to view a description of a selected module or macro in its entirety. This is
useful when the Description column of the Macro Manager is truncated.
See
Modifying and Removing Modules and Macros
directives.
using
MyFirstModuleAppCS
class definition.
and
Module_Startup()
Module_Shutdown().
MyFirstMacroAppCS
in the graphic above).
in the graphic above), giving you the
Macro Source Code
Building Macros in the Revit
on page 1433.
Creating Macros | 1429

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 256B1-05A761-1301 - AutoCAD Revit Structure Suite 2010 and is the answer not in the manual?

Questions and answers

Table of Contents