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:
SLN
by Pablo DerendingerJeremy 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.