How to create coordinate systems from element location and type parameter

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.

Maybe this could be of help.

WOW. That is powerful, and I was able to modify it to my use case a lot easier. I’m just getting started with dynamo but this is very interesting stuff. Thank you!

1 Like

There are a few Dynamo/Revit nerds out there that have a blog.
This was just one of them.
If you want to learn more, i am happy to share it, and so are others here in the Forum.
It will be a steep learning curve, buckle up :slight_smile:

Hi @Marcel_Rijsmus !
I was searching for a routine that could help me creating elements with coordinates. I just finished studying architecture and they ask me to create a highway in Revit :exploding_head:. I have the coordinates of the different elements, so I was thinking this would be the best way to do it.

Could you help me with some useful blog (or similar) about civil engineering or about this topic to accomplish this?

HI @George.dEP
Look into the Floor.byPoints , Topography.byPoints and the DirectShape creation methods here in the forum and the Dynamo Primer pages.
Good luck!.