Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Create Masking Region

Anonymous

Create Masking Region

Anonymous
Not applicable

How to create a masking region with the Revit API?

 

Masking Region appears to be a flavor of Filled Region with "is masking" set to true but it is a read only property and FilledRegion.Create requires a valid type ID which masking regions don't have. 

 

Suggestions?

0 Likes
Reply
1,204 Views
2 Replies
Replies (2)

Anonymous
Not applicable

Answer my own post...

 

http://thebuildingcoder.typepad.com/blog/2013/07/create-a-filled-region-to-use-as-a-mask.html

 

Unless something has changed in the last 4 years, I'm guessing it's still not possible as I don't see anything in the SDK.  Happy to be wrong about this but thought I'd save Jeremy the effort of digging up his own post. 😉

 

I'll post it on Ideas if it's not there already.

 

Cheers All,

-Ken

 

0 Likes

BardiaJahan
Advocate
Advocate

You can filter out ElementTypes of BuiltInCategory Filled Region and use one of them as the ElementType. Or you can create a new FilledRegionType by duplicating an existing one, then change its parameters to make it looks like a masking region and create instances of that specific type. Would it work out?

0 Likes