Cannot browse into RevitAPI.dll or any others using VisualStudio

Cannot browse into RevitAPI.dll or any others using VisualStudio

mengqi.huang
Participant Participant
1,298 Views
6 Replies
Message 1 of 7

Cannot browse into RevitAPI.dll or any others using VisualStudio

mengqi.huang
Participant
Participant

Hi I've encountered this error message: "The selected component could not be browsed" when trying to look into the Revit API namespaces in Visual Studio 2019. I'm new to both, but I believe I did the right thing to open Object Browser, direct to Custom Component Set and direct to RevitAPI.dll

 

Cannot Browsed RevitAPI.png

 

0 Likes
1,299 Views
6 Replies
Replies (6)
Message 2 of 7

joshua.lumley
Advocate
Advocate

Right mouse click on references in solution explorer, and click 'add reference', then 'Browse' and add both RevitAPI.dll and RevitAPIUI.dll

0 Likes
Message 3 of 7

mengqi.huang
Participant
Participant

Thanks for the reply Joshua. I found out it was because that I didn't install the .Net core. Browse the .dll into Object Browser is just fine upon installation, 

0 Likes
Message 4 of 7

jeremytammik
Autodesk
Autodesk

Maybe Visual Studio does not support browsing into a DLL that you have not created yourself.

 

You are not the owner of the code, after all.

 

I suggest that you make do with the official Revit API documentation provided in the Revit API help file RevitAPI.chm included with the Revit SDK, and available online for older versions here:

 

https://www.revitapidocs.com/

 

That lists all the Revit API classes with their methods and properties.

 

You can also use RevitLookup to browse live instances of these object in the Revit BIM:

 

https://github.com/jeremytammik/RevitLookup

 

 

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 5 of 7

mengqi.huang
Participant
Participant
Thanks Jeremy, I'll sure check them out.
0 Likes
Message 6 of 7

tamereautocad
Community Visitor
Community Visitor

Hi, same problem. What do you mean by install .NET core ? I installed .NET 6.03 and still does not work for me

0 Likes
Message 7 of 7

atis.sed
Advocate
Advocate

@tamereautocad @mengqi.huang 

Had same problem, found solution- when you install VS you have to install these two packages:

.NET desktop development 

Universal Windows Platform development

atissed_0-1650391728489.png

0 Likes