Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get Roofs and Ceilings objects of the selected Space object

1 REPLY 1
Reply
Message 1 of 2
srinib7mdlmdl
474 Views, 1 Reply

How to get Roofs and Ceilings objects of the selected Space object

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.

1 REPLY 1
Message 2 of 2

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



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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community