The Visual Studio Revit add-in wizards provide Visual Studio templates for generating C# and VB .NET Revit add-ins.
They enable the instantaneous and automatic generation, installation and debugging of a new Revit add-in skeleton with one single click.
Ample documentation is provided in The Building Coder topic group on Visual Studio Revit add-in templates.
Installation can be accomplished by cloning this repository and running the installer batch file install.bat as described in The Building Coder discussion of the Revit Add-In Wizards on GitHub and Installer.
install.bat [Visual Studio Year - 2022, 2019, 2017, 2015]
Ensure that the destination path specified in install.bat
matches your user project template location.
You can change the known location for user templates in Tools > Options > Projects and Solutions > Locations, cf.,
how to locate and organize project and item templates:
Several alternative Revit add-in templates have been published.
They are all more complex and full-fledged than this minimalistic one, taking advantage of .NET configuration functionality, providing support for multiple Revit releases, WPF, languages, build systems, installers, Autodesk AppStore support, etc.
Here are some of them:
- Revit2017AddInTemplateSet by Andrey Bushman; for a full discussion of that and comparison of the two, please refer to the article on new Visual Studio templates for Revit add-ins
- Revit2018AddInTemplateSet
- Multi-Version Revit Add-In Template by Yaroslav Zhmayev
- Revit WPF Template by Petr Mitev
- Hellpie dotnet Revit add-in template by Diego Rossi
- Multiversion Revit plugins explained by Alvaro Ortega @alvpickmans Pickmans of matterlab including a comprehensive multiversion-revit-plugin-sample
- Manual approach
to maintain a multi-version add-in in multiple projects in single
SLN
by Pablo Derendinger
Jeremy Tammik, The 3D Web Coder and The Building Coder, ADN Open, Autodesk Inc.
This sample is licensed under the terms of the MIT License. Please see the LICENSE file for full details.