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 do I get only the walls of my rooms/spaces for further checking.

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
iliasmitmail
1363 Views, 3 Replies

How do I get only the walls of my rooms/spaces for further checking.

Hello,

I am trying to get all the surrounding walls of my spaces/rooms within a certain zone to analyze whether the correct Wall-Family has been used and their Fire Rating is correct.

 

Sadly I can't manage to get the walls. I tryed using this code:

https://boostyourbim.wordpress.com/2012/12/04/the-elements-that-bound-a-room/

but sadly the .Element Property was removed for Revit 2021.

 

Please help. I bet it is a very easy trick that I am just not seeing right now.

3 REPLIES 3
Message 2 of 4

Hi,

Element e = document.GetElement(boundSeg.ElementId);

Can you try this ?

 

Best Regards,

Message 3 of 4

Hi,
Element e = document.GetElement(boundSeg.ElementId);
Can you try this ?

Best Regards,
Message 4 of 4
iliasmitmail
in reply to: iliasmitmail

Thanks @hakan.supurkeci

I do get all the surrounding walls now.

 

I would invite you to a beer if I could.

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

Post to forums  

Rail Community


Autodesk Design & Make Report