Ok I LOVE this as a concept to kudos for the insight. I don’t have my CPU with me at the moment so I can’t see your graph (if you export your workspace as an image it would help)
Since lines are being created anyway you are going to have to do some line creation to start with and you want them in your firm’s standards. This is likely easiest in the Revit UI but you can use the API to extract the linework just as well but the UI is far easier.
UI steps:
- Set the model to half tone or another easily identifiable method.
- Insert a pair of reference lines which will become your origin.
- Trace the model components using the line styles you want.
- Group all the linework and annotations - make sure there aren’t any tags on model elements.
- Set the group’s origin to the reference line intersection.
- Place the group into a new typical detail.
Bonus points I believe there is a way to move the group to a family (don’t recall how offhand but it is doable) for reuse in other models and in larger scale section views.
In an automation the process would be similar, but extracting the linework is the hard part. I don’t know of any nodes for this, but ideally you would retrieve the geometry from the element in the context of the view, but you could also use the newer Dynamo for Revit releases to pull the geometry at the detail level of the view. This won’t extract layers of the walls and such, but you can generate parts and use the geometry from those if needed. Ideally I would want to replace that content with detail components though.
Once you have the geometry, discard anything except solids, and then you can intersect it with the view plane and extract the perimeter curves thereof. If you maintained your list structure you can then assign a line style accordingly.
Lines in the distance can be extracted as well, but I would focus on nailing down this work first.