Skip to content

sample project for a revit plugin using the RevitAPI

Notifications You must be signed in to change notification settings

SSeelos/MyRevitPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

sample project for a revit plugin using the RevitAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published