taging systems around a frame in a section
I want to create a script that checks which systems are in a section and creates a label around the frame of the section for superposition programs.
I created a script in Dynamo that checks
- The data of the section creates a surface.
- Checks the curves of the systems.
Then checks if the systems intersect the surface of the section and extracts the elements that intersect for labeling and also the cut point that I can label them later.
The problem is that I get an empty list.
help 
tag secion script.dyn (50.3 KB)
You have to remember you’re working in 3 dimensions. The view doesn’t represent a flat surface, it’s a cuboid with view depth. You’re getting the average of the bounding box and creating a surface there. The elements within that view are contained within the full extents of that view, not just a singular plane. Under this methodology, you’d actually want to check if the elements are contained within the boundingbox itself. A simpler option might be to check if the element is visible in the view. There are multiple nodes (some from custom packages) that offer a few ways to filter or identify elements in a given view.