- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to draw a DetailCurve in the center of all Walls and FaceWalls visible in a view.
Using a FilteredElementCollector specifying a ViewID, I get all visible Walls and FaceWalls.
For the Walls I can get their Location and clone it.
For FaceWalls, Location does not return a curve so I cannot clone it.
So for FaceWalls I though maybe I could use GeometryElement with my view specified in the Options so that I get roughly what that FaceWall looks like at that view's cut section. But how do I use that to get a Curve or likely a collection of Curves to clone into a DetailCurve(s) that represent its centerline or edge along that cut plane?
One thought was to get an Interior and/or Exterior Face using HostObjectUtils.GetSideFaces(FaceWall, ShellLayerType.Interior) and then find all curves from GeometryElement that have more than 1 point intersecting that Face. I figure if a curve generated this way has its beginning and end on the face then its whole is likely on that face. But I don't know if that is possible or how to do that and would appreciate some help. I am still reading/struggling with/learning how to iterate through what GeometryElement returns for FaceWalls.
Solved! Go to Solution.
