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

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

iliasmitmail
Contributor Contributor
1,901 Views
3 Replies
Message 1 of 4

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

iliasmitmail
Contributor
Contributor

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.

0 Likes
Accepted solutions (1)
1,902 Views
3 Replies
Replies (3)
Message 2 of 4

hakan.supurkeci
Explorer
Explorer
Accepted solution

Hi,

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

Can you try this ?

 

Best Regards,

0 Likes
Message 3 of 4

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

Best Regards,
0 Likes
Message 4 of 4

iliasmitmail
Contributor
Contributor

Thanks @hakan.supurkeci

I do get all the surrounding walls now.

 

I would invite you to a beer if I could.