# Corridor shape cumulative volume

**URL:** <https://forum.dynamobim.com/t/corridor-shape-cumulative-volume/109661>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [April 23, 2025, 12:49pm UTC](https://forum.dynamobim.com/t/corridor-shape-cumulative-volume/109661 "2025-04-23T12:49:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lutf.pid](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lutf.pid](https://forum.dynamobim.com/u/lutf.pid)\
**Post date:** [April 23, 2025, 12:49pm UTC](https://forum.dynamobim.com/t/corridor-shape-cumulative-volume/109661/1 "2025-04-23T12:49:13Z")

</div>

Hi everyone,

I’m trying to filter a Civil 3D corridor’s solids by shape code and extract the total volume for each shape into an Excel sheet. I’ve attached an incomplete Dynamo script but need help modifying it to:

1. **Filter solids by shape code** (e.g., “Ditch,” “Pavement”).
2. **Sum the volumes** for each unique shape code.
3. **Export to Excel** in a structured table (Shape Code | Total Volume).

Could someone review the script and suggest improvements or corrections? Any guidance would be greatly appreciated!

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/f/0f559228d8d2746ebfda914ba266609bcd92e28b.jpeg)  
[VOLUME EXTRACT\_1.dyn](https://forum.dynamobim.com/uploads/short-url/d1vK9X8Zzu5xsLoL3kO9jtPsTzM.dyn) (17.1 KB)  
 ![VOLUME EXTRACT_1_2025-04-23_04-47-49](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1d7d3a3aeaa63c7d004dafd51f8aea729873e464.png)

---

<div class="post-metadata">

**Author:** ![zachri.jensen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/zachri.jensen/32/205331_2.png) [@zachri.jensen](https://forum.dynamobim.com/u/zachri.jensen)\
**Post date:** [April 23, 2025, 2:00pm UTC](https://forum.dynamobim.com/t/corridor-shape-cumulative-volume/109661/2 "2025-04-23T14:00:04Z")

</div>

Hi @lutf.pid,

Have you extracted the solids first? The `Corridor.GetSolids` node expects the solids to already be extracted.

---

<div class="post-metadata">

**Author:** ![lutf.pid](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lutf.pid](https://forum.dynamobim.com/u/lutf.pid)\
**Post date:** [April 24, 2025, 6:37am UTC](https://forum.dynamobim.com/t/corridor-shape-cumulative-volume/109661/3 "2025-04-24T06:37:21Z")

</div>

**Hi, I tried this but I’m still unable to get the quantities. Can you please check the script? When I run it, it gives a blank Excel sheet**
