Visual Studio C# (project) template for easy Revit add-in creation.
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)
You can support us in a small way, please consider starring and sharing this repo! It helps us getting known and grow the community.
Unlike other add-in template this one doesn't require constantly updating .addin file. It takes all the information from project properties:
By default the newly created add-in will target Revit x64 2014-2019, you could target fewer versions by simply removing items from TargetFrameworks
:
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:
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.
This project is licensed under the terms of the MIT License.
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.