Skip to content

salaros/vs-templates-revit-addin

Repository files navigation

Visual Studio Revit Add-in Template Build status

Revit version Github All Releases GitHub tag Platform License

Visual Studio C# (project) template for easy Revit add-in creation.

Installation & Update

Just grab the latest release (.zip file) from releases page and copy it into

"%USERPROFILE%\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#"

(use Visual Studio 2017 if you have that version)

🟊🟊🟊 Support this project 🟊🟊🟊

You can support us in a small way, please consider starring and sharing this repo! It helps us getting known and grow the community. star us

Personalization

Add-in metadata

Unlike other add-in template this one doesn't require constantly updating .addin file. It takes all the information from project properties:

Project properties

Revit versions

By default the newly created add-in will target Revit x64 2014-2019, you could target fewer versions by simply removing items from TargetFrameworks:

Revit versions

Debug

For your convenience in Debug configuration the add-in will copy its manifest to %AppData%\Autodesk\Revit\Addins folder with Assembly tags pointing to your compilation output folder.

Before starting the debugger make sure you have selected the proper Revit version:

Debugger selection

If Revit won't start probably you have installed it to a non-default location and you have to modify launchSettings.json file.

You could also use launchSettings.json to tweak command line parameters passed to Revit.exe file, e.g. you might want Revit to open a project template / family file for every debug session you start.

License

This project is licensed under the terms of the MIT License.

Credits

This template has been inspired by both Jeremy Tammik's project templates and Sander Obdeijn's blog post about multi-targeteting different versions of Revit from one project.