# Get Geometry Cut by section in Viewport and split from all elements in view

**URL:** <https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 13, 2021, 2:19am UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229 "2021-10-13T02:19:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuzmm](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@shuzmm](https://forum.dynamobim.com/u/shuzmm)\
**Post date:** [October 13, 2021, 2:19am UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229/1 "2021-10-13T02:19:32Z")

</div>

Hi All,

I’ve been scratching my head as to how to do this.  
But is there a way to get all the elements that are being cut by the Section so I can filter them out and only see the uncut geometry in the view?

I thought about getting only the geometries closest to the section view but I can’t find a function that would return the location of the section to get it.

I want to be able to automate the documentation process for these elements on each view.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/1/a1cba140350b7bf5b3f3af0a3bf5ae02a41ac590.png)

---

<div class="post-metadata">

**Author:** ![honeyjain619](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/honeyjain619/32/121215_2.png) [@honeyjain619](https://forum.dynamobim.com/u/honeyjain619)\
**Post date:** [October 13, 2021, 4:39am UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229/2 "2021-10-13T04:39:43Z")

</div>

Hello @shuzmm ,

You can try with intersection check, select the element if intersect with section.  
then you can get the geometry of those selected elements.

---

<div class="post-metadata">

**Author:** ![shuzmm](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@shuzmm](https://forum.dynamobim.com/u/shuzmm)\
**Post date:** [October 13, 2021, 5:35am UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229/3 "2021-10-13T05:35:00Z")

</div>

Which intersect are you referring to? I don’t think I can see one which accepts the view as an input…

---

<div class="post-metadata">

**Author:** ![honeyjain619](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/honeyjain619/32/121215_2.png) [@honeyjain619](https://forum.dynamobim.com/u/honeyjain619)\
**Post date:** [October 13, 2021, 9:17am UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229/4 "2021-10-13T09:17:28Z")

</div>

Hello @shuzmm ,

No No, i was just given you the idea about intersection of section view with elements.  
Like this

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b80da7bb6a8238c24151b6d40567a5145d5917b.png)  
In the active view, i have created an surface from section view and trying to find the intersect of surface / solid from the elements geometry.  
In my case section is intersecting with 3 wall, 1 door and 1 window.  
[GeometryCutBySection.dyn](https://forum.dynamobim.com/uploads/short-url/dXVXHTpZnYfhOuMmkxG4GG2ZKg8.dyn) (24.4 KB)

 ![GeometryCutBySection](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/a/2abcfbbf6fccf1e9ebb4ef5a44fe3b7a14477352.png)

---

<div class="post-metadata">

**Author:** ![shuzmm](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@shuzmm](https://forum.dynamobim.com/u/shuzmm)\
**Post date:** [October 13, 2021, 10:56pm UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229/5 "2021-10-13T22:56:43Z")

</div>

Ah perfect that’s exactly what I was thinking but didn’t know about the View Cropbox node!!  
Thanks so much!!

Also is it a custom node you’re using to display what the custom nodes in the definition is??

---

<div class="post-metadata">

**Author:** ![honeyjain619](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/honeyjain619/32/121215_2.png) [@honeyjain619](https://forum.dynamobim.com/u/honeyjain619)\
**Post date:** [October 15, 2021, 4:15am UTC](https://forum.dynamobim.com/t/get-geometry-cut-by-section-in-viewport-and-split-from-all-elements-in-view/69229/6 "2021-10-15T04:15:56Z")

</div>

Hello @shuzmm ,

To add the note about the custom node package details, i know 2 packages, Monocle and Data Shape.  
So after completing the script, you have option to add the note about all the packages used in the script.  
for example in monocle you get this type of options.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/2062e86e79d39b9040d3b49879e5b22718d68621.jpeg)

Its easy for other person to know about the package used in the script.
