Openings Boundary

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear All,
Autodesk.Revit.DB.Openings have a property called BoundaryCurves. But after some time I realized it doesn’t only return the boundary (as one should believe) but also the symbolic lines within the opening. For example: the opening sketch is defined by a rectangle which is then being crossed out by symbolic lines for annotative reasons. In order to distinguish between them I figured that symbolic lines have line styles while the actual opening sketch lines don’t. But once I’m walking through, all of the lines have the StyleId -1 applied. My next approach was to try to apply a line style to all lines and hope for an exception to be thrown on opening sketch lines. Which sadly didn’t happen.
So my question is how can I distinguish between opening sketch lines (the actual boundary) and symbolic lines within?
Using Revit2016 & 2017.
Thanks for your Help,
Max