RevitAPI.dll missing classes

RevitAPI.dll missing classes

Anonymous
Not applicable
1,393 Views
4 Replies
Message 1 of 5

RevitAPI.dll missing classes

Anonymous
Not applicable

I'm trying to follow this tutorial (see bottom) before working on the application I have in mind.

When I view RevitAPI inside Visual Studio in the Object Browser I see e.g. all the "Room" classes are missing.

The gentleman on the video have the Room classes.

I have tried to search a lot on the internet how to download a new RevitAPI.dll file, but the only way is to download the SDK, and that as well includes the same narrowed file without "Room" classes.

 

https://www.youtube.com/watch?v=zL8pQRJbcyA at 9:10

 

 

Can somebody please help me here? 

 

Best Regards

Kenneth G. Vejen

0 Likes
Accepted solutions (1)
1,394 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Anyone?
0 Likes
Message 3 of 5

Anonymous
Not applicable

What version of Revit do you have installed? The RevitAPI.dll is included with the Revit install. With the Revit 2015 RevitAPI.dll, you should be able to see the Room class in the object browser under the Autodesk.Revit.DB.Architecture node. If you are having trouble using the Room class in your project, you may not have the right include statement.

 

Hope that helps,

0 Likes
Message 4 of 5

Anonymous
Not applicable
Accepted solution

I think you meant to include the time of 19:10 at the end of your video reference.  Correct?

 

As for your question, I think the answer is in the using statements that are at the top of the code which have been minimized in the video.  I did a quick search for Revit API Room Namespace on Google and see that the namespace for rooms is within Autodesk.Revit.DB.Architecture.  So just add a using statement at the top (using Autodesk.Revit.DB.Architecture) and Rooms will be accessible to you.

 

I hope this helps.

 

Keith

Message 5 of 5

Anonymous
Not applicable

Thank you both very much for your time.

It helped making following statement:

 

using Autodesk.Revit.DB.Architecture;

0 Likes