Hi,
I would like to get the Roofs and Ceilings objects which are belongs to a Space object using Revit MEP API 2012. What my intension is by selecting Space object, I need to get all the elements of the selected space. My problem is that I am unable to get Roofs and Ceilings of the selected space. How to get it?
I have seen RoofsRooms example to get Roof of Space. It is working fine for only Roof, If i place a ceiling then it is not getting. What may be the problem.
I don't find any help to get Ceilings of a Space object.
How to do it.
Regards,
Srinivas.
Dear Srinivas,
There are probably several ways to approach this. One possibility might be to shoot a ray up from one or several points within the space and determine what roof it hits using the Document.FindReferencesWithContextByDirection method.
Cheers, Jeremy.
--
Jeremy Tammik
Autodesk Developer Network -- http://www.autodesk.com/joinadn
The Building Coder -- http://thebuildingcoder.typepad.com