Skip to content

Latest commit

 

History

History
42 lines (39 loc) · 1.27 KB

README.md

File metadata and controls

42 lines (39 loc) · 1.27 KB

MyRevitPlugin

sample project for a revit plugin using the RevitAPI

Manifest file

Read automatically by Revit when they are placed in one of two locations All files named .addin in these locations will be read and processed by Revit during startup.

In a non-user-specific location in "ProgramData":

C:\ProgramData\Autodesk\Revit\Addins\{VERSION}\

In a user-specific location in "AppData":

C:\Users\{USER}\AppData\Roaming\Autodesk\Revit\Addins\{VERSION}\

Build

Set the assembly location inside the Manifest file (If put in the same Directory the relative path from the Manifest file is sufficient)

<Assembly>MyRevitPlugin/MyRevitPlugin.dll</Assembly>

Set the output path to the location specified in the addin Manifest

Debug

Set Start external program to

C:\Program Files\Autodesk\Revit {VERSION}\Revit.exe

(optional) Set command line arguments (.proj):

/nosplash
C:\Debug\DebugProject.rvt

Set PreBuildEvent (.proj):

	<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
		<Exec Command="mkdir &quot;C:\Debug&quot;
			&#xD;&#xA;copy &quot;$(SolutionDir)\Resources\DebugProject.rvt&quot;&quot;C:\Debug\DebugProject.rvt&quot;
			&#xD;&#xA;copy &quot;$(SolutionDir)\Resources\HrRevitAppDebug.addin&quot; &quot;$(OutDir)\..\..&quot;" />
	</Target>