Revit API

Active Member
Posts: 9
Registered: ‎05-09-2007
Message 1 of 4 (367 Views)

Families within Rooms

367 Views, 3 Replies
10-11-2009 10:47 AM

Is there any possible way to collect component families within room boundary? The next step will be the ability to scan linked models for families within the room, e.g. receptacles and diffusers from linked MEP model.
The goal is to collect Room Data (name, number, department, . . .), Finishing (wall, floor, ceiling, . . .), Furnishings (casework, fixtures, . . .) and MEP and synchronize with external MS Access or SQL database.
Please let me know if you are aware of any third party application that can perform such function.


Active Contributor
Posts: 30
Registered: ‎11-25-2008
Message 2 of 4 (367 Views)

Re: Families within Rooms

10-16-2009 10:14 AM in reply to: mawlsam
I think that is definitely something that is possible. I do not know of any existing 3rd party apps for this but I work for a company called CADworks that develops custom tools similar to your concept.

If you would like more information on the services we provide please email me at
Valued Contributor
Posts: 94
Registered: ‎11-17-2004
Message 3 of 4 (367 Views)

Re: Families within Rooms

12-28-2009 11:24 AM in reply to: mawlsam
It can be done. Iterate through all elements you are concerned with and get the room info from the "Room.Name" and "Room.Number" properties of each "Elements.FamilyInstance"

You can then build a class of collections where the rooms are object collections of child objects of various element types. It is then fairly easy to get the list of all data in a room from the parent container *rooms class"...

If you are looking for a 3rd party app, try Codebook. But I can tell you that the Revit sync utility Codebook is using is still having issues with the 64 bit interop (MsAccess). We have managed a way to overcome the 64 bit interop issue here in house so have diverged from Codebook for now...
Active Member
Posts: 9
Registered: ‎01-07-2011
Message 4 of 4 (295 Views)

Re: Families within Rooms

01-10-2011 07:28 PM in reply to: mawlsam

I am trying to get all the elements(wall, roof, windows, doors) that is associated with the room using the api, I look up on the revit lookup it seems that only the wall and column is shown on the room boundary. Is there a way to retrieve the element within the room ?

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.