Create Masking Region

Create Masking Region

Anonymous
Not applicable
1,335 Views
2 Replies
Message 1 of 3

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
1,336 Views
2 Replies
Replies (2)
Message 2 of 3

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
Message 3 of 3

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