Вы находитесь на странице: 1из 8

Revit Macro Samples

1. Revit_Macro_Samples.rvt
Revit_Macro_Samples.rvt can be opened by Revit Architecture, Revit Structure, Revit MEP and Revit. There are simples and common document-level macro samples included ( ! "# sample macros and ! $%.&et sample macros'.

Figure 1: Revit_Macro_Samples.rvt

1.1.C# Samples:
Sample Type
Simple Samples

Sample Macro Name


QuickPrint_FloorPlans QuickPrint_Elevations QuickPrint_Section FindAndReplaceText CapitalizeText FindAndReplaceWinType elete!"#ect Pro#ect$n%o

Notes

Common Samples

Create&eamsColumns&races 'ridCreation $nplaceFamilyAnalytical(odel) Rooms Revit Structure only *ot availa"le %or Revit

Structure RotateFramin+!"#ects Sla"Properties Structural,ayerFunction

Table 1: Revit Macro Samples in C#

Figure 2: Revit Macro Samples in C#

1.2. VB. et Samples:


Sample Type
Simple Samples

Sample Macro Name


QuickPrint_FloorPlans QuickPrint_Elevations QuickPrint_Section FindAndReplaceText CapitalizeText FindAndReplaceWinType elete!"#ect

Others

Common Samples

Create&eamsColumns&races esi+n!ptionReader $nplaceFamilyAnalytical(odel) (aterialProperties RotateFramin+!"#ects Sla"Properties Structural,ayerFunction TestWallT-ickness Revit Structure only

Table 2: Revit Macro Samples in VB.Net

Figure !: Revit Macro Samples in VB. et

2. Revit_Macro_M"#_Samples.rvt
Please open this (ile in Revit MEP. There are only t)o document-level macros (one "# sample macro and one $%.&et sample macro'.

Figure $: Revit Macro M"# Samples

*.

Revit_Macro_Famil%_Samples.r&a
Revit_Macro_+amily_Samples.rvt can be opened by Revit Architecture, Revit Structure and Revit MEP. There are several document-level (amily samples included (! "# sample macros and ! $%.&et sample macros'. Sample Type
Family Samples

Sample Macro Name


Auto.oin AutoParameter 'eneric(odelCreation TypeRe+eneration /alidateParameters

Others

Table 3: Revit Macro Family Samples

Figure ': Revit Macro Famil% Samples

$. Fol(er )*etTime"lapse(_CS+arp,
This is a "# application-level module, it contains a macro named -.etTimeElapsedSince/astSave. This sample demonstrates a possible situation o( application-level macros to monitor the Revit session (or certain events, such as document savin0. Please copy this (older into
XP OS: %ALLUSERSPROFILE%1Application 2ata1Autodes31Revit1Macros145 *1

6Architecture7MEP7Structure7Revit81$staMacros1App oo!"p Vista an# $in#o$s%: %ALLUSERSPROFILE%\Autodesk\Revit\Macros\2013\ 6Architecture7MEP7Structure7Revit81$staMacros1App oo!"p And then run it in macro mana0er dialo0 bo9.

Figure -: .pplication/level macro 0*etTime"lapse(Since1astSave0 in C#

'. Fol(er )*etTime"lapse(_VB et,


This is a $%.&et application-level module, please see the description above.

Figure 2: .pplication/level macro 0*etTime"lapse(Since1astSave0 in VB. et

-. Fol(er )Rooms,
This is a "# application-level module. :t includes -.etAllRooms:n(ormation; macro. <ou can copy this (older into application-level

XP OS: %ALLUSERSPROFILE%1Application 2ata1Autodes31Revit1Macros145 *1

6Architecture7MEP7Structure7Revit81$staMacros1App oo!"p Vista an# $in#o$s%: %ALLUSERSPROFILE%\Autodesk\Revit\Macros\2013\ 6Architecture7MEP7Structure7Revit81$staMacros1App oo!"p And then run it in macro mana0er dialo0 bo9.

Figure 3: .pplication/level macro 0Rooms0 in C#

&ote= A document-level Revit_Macro_Samples.rvt.

version

o(

the

-Rooms;

macro

is

contained

in

Вам также может понравиться