How to get all Masking Regions in a model?

revit
dynamo

#1

Hello,

How can I get all Masking Regions?

I cannot seem to find how to tell them apart from regular Filled Regions.

Thanks in advance
J


#2

Masking regions don’t return a Family or Type. You can filter your FilledRegion objects by null or blank values to get just the masking regions.

(First two elements are filled regions, last two are masking regions.)


#3

FIND MASKING REGIONS.dyn (2.9 KB)

This should do it.


#4

Thank you @simon_murphy1.
I am getting this error from the Python node.


#5

@Joaquim_Agostinho1 Filter your list of collected Detail Items for only FilledRegion elements and the script should work :slight_smile: right now you are probably trying to pass detail items that are filled region elements & those that are family instances (typ. detail components), and those do not have the property IsMasking


#6

Thanks @awilliams. That is exactly it.

It works now!