Corridor shape cumulative volume

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!


VOLUME EXTRACT_1.dyn (17.1 KB)

Hi @lutf.pid,

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

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