I can't add reference to RevitAPI.dll and RevitAPIUI.dll

I can't add reference to RevitAPI.dll and RevitAPIUI.dll

horikawaE7XJN
Contributor Contributor
726 Views
2 Replies
Message 1 of 3

I can't add reference to RevitAPI.dll and RevitAPIUI.dll

horikawaE7XJN
Contributor
Contributor

Although uninstalling and installing Revit2023, I can't add reference to RevitAPI.dll and RevitAPIUI.dll.

In detail, when I add reference to RevitAPI.dll and RevitAPIUI.dll in Visual Code as follows, error message 'The reference is invalid or not supported' occurred. Before I could add references, so I tried to solve by uninstallation and installation,but I failed

horikawaE7XJN_0-1711352992198.png

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

Mohamed_Arshad
Advisor
Advisor
Accepted solution

HI @horikawaE7XJN 

 

   RevitAPIUI not RevitUI, In Error Image I saw RevitUI change that to RevitAPIUI

 

Hope this will Helps 🙂


Mohamed Arshad K
Software Developer (CAD & BIM)

Message 3 of 3

j0hnp
Advocate
Advocate
Accepted solution

I suggest using Nuget packages for those references. Specifically, I use this one:

j0hnp_0-1711383830352.png

 

And here is how to install nuget packages in visual studio

https://learn.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio

 

john.pierson

expert elite / design technologist / dynamo package creator

designtechunraveled.com