How to get elements that are cross boundingbox?

Hello Dynos,

i try to get these elements


the concept is this
grafik

later on i want to document which categories are not in the boundingbox i mean these elements that are “offsetting” the box…

KR
Andreas

Hello,
You tried to dig with Mr. Thomas’ node

cordially
christian.stan

1 Like

@christian.stan ,

i will check…

i work with elements in current view… maybe i can reverse the collection…
to say ok all elements which are not inside filter them.

KR

Andreas

1 Like

Hi, you could also use this node (I think it’s OOTB)

image

then get those elements’ bounding boxes and then use this one:

image

I’ve found intersecting bounding boxes is quite fast and handy to use whenever possible :slight_smile:

Cheers

1 Like

@danail.momchilov @christian.stan


1.) i filtered does intersect
2.) elements inside


thats correct
grafik

i am struggeling with lacing depth :frowning: i want to get rid of my elements that are inside the box … any idea?

KR

Andreas

Amigo @Draxl_Andreas buenas. is just an idea, i’m not sure that will works, but may be you can create roms from your bounding box, and then use the node Room.InsideRoom, to check what is inside the room??


https://dictionary.dynamobim.com/#/Revit/Elements/Room/Action/IsInsideRoom

Or may be, just make a solid of your BoundingBox, and check if the other elements intersects whit the solid!!

Hope this solves your problem
edit:

cordially
christian.stan

1 Like

Hi,
A solution would be to compare the BoudingBox Min.Z and Max.Z of each element with the Top Elevation and Bottom Elevation

an Example in Pseudo Code

for e in elements:
	bbx = e.get_BoundingBox(None)
	if bbx.Max.Z > top.Elevation or bbx.Min.Z < bottom.Elevation:
		# is True
	else:
		# is False
4 Likes

@c.poupin

:wink: my visualisation

1 Like

Hi @Draxl_Andreas ,

I worked something out, similar to the approach of @c.poupin :



2023-02-01 Filter Elements whether they lie between Lower and Upper Z-Values.dyn (53.8 KB)

1 Like