Getting rooms from scope boxes

Hello, everyone. I need help filtering out all of the untagged rooms per scope box. It gets tricky because the rooms originate from a linked architectural model.

I’ve seen folks get elements inside the scope box by transforming them into bounding boxes, extracting the geometry, and then filtering the elements within that geometry. However, I doubt this strategy applies to rooms.

Ideally, this is how I visualize the node workflow to be. But with the lack of nodes relating to scope boxes / bounding boxes, I don’t know where to start

What have you tried so far?

If you have time please read How to get help on the Dynamo forums

I have tried transforming the scope box into a bounding box and using a python script in hopes of getting an output of all elements categorized by scope boxes. However, this doesn’t seem to work for rooms in particular

Using FilteredElementCollector to filter a linked file make sure you are using the constructor with the link included - see FilteredElementCollector Constructor (Document, ElementId, ElementId)

FilteredElementCollector(
	hostDocument,
	viewId,
	linkId
)

Or use some biomorph nodes

This worked perfectly! Thank you