Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Masking Region

2 REPLIES 2
Reply
Message 1 of 3
ken
Advocate
957 Views, 2 Replies

Create Masking Region

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?

2 REPLIES 2
Message 2 of 3
ken
Advocate
in reply to: ken

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

 

Message 3 of 3
BardiaJahan
in reply to: 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.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community