# Select elements that are cut in active view

**URL:** <https://forum.dynamobim.com/t/select-elements-that-are-cut-in-active-view/95861>\
**Category:** Revit\
**Created:** [November 27, 2023, 1:55pm UTC](https://forum.dynamobim.com/t/select-elements-that-are-cut-in-active-view/95861 "2023-11-27T13:55:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![se.ha](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@se.ha](https://forum.dynamobim.com/u/se.ha)\
**Post date:** [November 27, 2023, 1:55pm UTC](https://forum.dynamobim.com/t/select-elements-that-are-cut-in-active-view/95861/1 "2023-11-27T13:55:04Z")

</div>

I need assistance in selecting all elements within the current view that are cut, irrespective of the view type (e.g., floorplan, section, elevation, 3D, etc.). I want the selection to be independent of whether the view has an active crop region or not.

Obviously Revit already assigns hatches to elements based on whether they are cut or not, so I believe there should be a straightforward solution to identify and select these elements programmatically.

Any ideas on how to approach this?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 27, 2023, 1:58pm UTC](https://forum.dynamobim.com/t/select-elements-that-are-cut-in-active-view/95861/2 "2023-11-27T13:58:56Z")

</div>

A solution using only nodes:

1. Get the view
2. Pull the view’s plane
3. Pull the elements in the view and filter out any elements in an annotation or non-model categories.
4. Pull the geometry of the elements
5. Use a Geometry.DoesIntersect node to check if the element geometry intersects the plane.
6. Use a Filter.ByBoolMask node to remove the the elements (step 3) which returned true in the boolean list (step 5). The ‘in’ list will be items cut by the plane, even if the cut is outside the limits of the clipping range.

---

<div class="post-metadata">

**Author:** ![se.ha](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@se.ha](https://forum.dynamobim.com/u/se.ha)\
**Post date:** [November 27, 2023, 2:13pm UTC](https://forum.dynamobim.com/t/select-elements-that-are-cut-in-active-view/95861/3 "2023-11-27T14:13:58Z")

</div>

Thank you.  
Doesn´t work in 3D but I can live with that.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [November 27, 2023, 5:01pm UTC](https://forum.dynamobim.com/t/select-elements-that-are-cut-in-active-view/95861/4 "2023-11-27T17:01:01Z")

</div>

It should; likely your 3D view is actually a section box though. Instead of a plane in such cases you’ll want to query the section box for the view and use that instead. 🙂
