CurveElement / FilledRegion question

CurveElement / FilledRegion question

ciganek
Enthusiast Enthusiast
506 Views
2 Replies
Message 1 of 3

CurveElement / FilledRegion question

ciganek
Enthusiast
Enthusiast

Hello,


FilteredElementCollector(doc).OfClass(CurveElement) will include curves entities that form the boundaries of a FilledRegion. However, I need to distinguish between ‘normal’ curves and those nested in a region entity. Apart from comparing geometries I haven’t found any means to do this.

 

Does anyone know if there is a way to do this?


Thanks, Peter

0 Likes
Accepted solutions (1)
507 Views
2 Replies
Replies (2)
Message 2 of 3

aignatovich
Advisor
Advisor
Accepted solution

Hi!

 

Moreover, there are a lot of other specific ModelCurve, such as Floor boundaries. Look at element.Category and exclude elements with BuiltInCategory.OST_SketchLines category

Message 3 of 3

ciganek
Enthusiast
Enthusiast

Thanks aignatovich! - quick and correct.

0 Likes