I’m attempting to modify a script I found online ( Automate Section Views for Wall Documentation using Dynamo - AEC TECHY) that creates section views for selected walls. I’m modifying it so it creates section views for selected panels. Han did a wonderful job explaining his methods.
The Element.GetLocation node returns a line for walls and a point for panel elements. For each panel instance, I drew a line in the project global X direction and then created the origin from that curve using the Curve.PointAtParameter node.
The issue I’m having is that I need to create a line that is normal to the panel surface for each panel instance. Otherwise, I end up with something like the image below. As you can tell, I only tested the script on the leftmost panels.
Thank you in advance, I’d love to hear if the community has dealt with this before.