Autodesk Nuget Packages for Revit dlls?

Autodesk Nuget Packages for Revit dlls?

BKSpurgeon
Collaborator Collaborator
733 Views
2 Replies
Message 1 of 3

Autodesk Nuget Packages for Revit dlls?

BKSpurgeon
Collaborator
Collaborator

Hi there

 

Was just working through my first "hello world" revit api.

 

https://help.autodesk.com/view/RVT/2024/ENU/?guid=Revit_API_Revit_API_Developers_Guide_Introduction_...

 

In the Add Reference dialog box, click the Browse tab. Locate the folder where Revit is installed and click the RevitAPI.dll. For example, the installed folder location is usually C:\Program Files\Autodesk\Revit 2018\RevitAPI.dll.

 

I prefer not doing this manually.

 

This is a pain, especially if I should transfer the project to someone else with different file paths.

 

Is there not a nuget package that AUTODESK maintains for this purpose? Was curious how everyone else manages this?

0 Likes
Accepted solutions (1)
734 Views
2 Replies
Replies (2)
Message 2 of 3

Speed_CAD
Collaborator
Collaborator

Hi BKSpurgeon,

 

I like to always start from scratch, but to avoid adding references, the IExternalApplication and/or IExternalCommand interfaces and the .addin file manually, I generated a template in Visual Studio. So when I create a new project I choose my own template.

 

For example:

Speed_CAD_0-1723599527429.png

 

Mauricio Jorquera
Message 3 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

There are a large number of Revit API related NuGet packages:

  

  

166, in fact. Unfortunately, afaik, none of them are officially maintained by Autodesk. I asked the development team about this for you...

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open