Skip to content

Revit 2014-2020 C# Addin Template fro Visual Studio v0.1.1

Compare
Choose a tag to compare
@salaros salaros released this 17 May 15:27

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-2020, you could target fewer versions by simply removing items from TargetFrameworks

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.