Find elements parallel to View

I’m looking for a script that finds only elements that’s parallel to an Section View.
I’ve found something also on the forum.
Here’s my example, but it won’t work 100%.
Can anybody solve this / help me?
2 beams parallel to a view. One element is horizontal, the other is not but also parallel to the Section View.


test-parallel to section view.dyn (14.5 KB)

1 Like

I believe that there is a View.Plane in Clockwork package.

Rather than working with the view and projection (a slower operation), it’s likely easier to just check the X axis of the coordinate system at the midpoint of the element to see if it’s parallel to the view’s direction. This can throw a few false positives when working with curved elements, but those are much less common and can be filtered out, and then the normal of the curves can be used as the test.

1 Like

Thanks!!! It works! :partying_face: