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?
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
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?
Can't find what you're looking for? Ask the community or share your knowledge.