# Error creating solids from multiple corridors using Corridor.SolidsByRange 2025.1

**URL:** <https://forum.dynamobim.com/t/error-creating-solids-from-multiple-corridors-using-corridor-solidsbyrange-2025-1/105724>\
**Category:** Civil 3D\
**Tags:** dynamo\
**Created:** [November 10, 2024, 5:37am UTC](https://forum.dynamobim.com/t/error-creating-solids-from-multiple-corridors-using-corridor-solidsbyrange-2025-1/105724 "2024-11-10T05:37:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuel\_Jines](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Manuel\_Jines](https://forum.dynamobim.com/u/Manuel_Jines)\
**Post date:** [November 10, 2024, 5:37am UTC](https://forum.dynamobim.com/t/error-creating-solids-from-multiple-corridors-using-corridor-solidsbyrange-2025-1/105724/1 "2024-11-10T05:37:12Z")

</div>

Good evening, everyone,

I have created a script to extract solids from multiple corridors simultaneously and assign the name of the shapes as the layer names for these solids. However, I’ve encountered issues with the extraction; in some cases, the solids are incomplete. I’ve tested it in several DWG files, and it works well in some cases but not in others. Could you help me review where I might be going wrong?

In the images above, I have the assemblies used for the corridors, and below are the incomplete solids after running the script.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/c/0ca65a3267313b800fea28175121a3c1c35e0d5b.png)

[PRUEBA\_CREA\_SOLIDOS.dwg](https://forum.dynamobim.com/uploads/short-url/wrRDazWz0LxNdCzsLBnA7xEHrLv.dwg) (1.8 MB)  
[CREA\_SOLIDOS\_CORREDOR\_v2.dyn](https://forum.dynamobim.com/uploads/short-url/nY5lKdBokP4gmxstJfAXmnvaTDb.dyn) (26.1 KB)  
[Drawing1.dwg](https://forum.dynamobim.com/uploads/short-url/biHOCYnD699ti3IJn8tRgaTyOi9.dwg) (4.3 MB)  
[PRUEBA\_CREA\_SOLIDOS - 2.dwg](https://forum.dynamobim.com/uploads/short-url/ohTp5JUFiPzO30UmAofIAxEcwtw.dwg) (2.0 MB)

[https://www.flexclip.com/es/share/7320456fabe5f46dda33f94341b51e6b8d71c75.html](https://www.flexclip.com/es/share/7320456fabe5f46dda33f94341b51e6b8d71c75.html)

Thank you very much in advance.

---

<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:** [February 27, 2025, 11:56pm UTC](https://forum.dynamobim.com/t/error-creating-solids-from-multiple-corridors-using-corridor-solidsbyrange-2025-1/105724/2 "2025-02-27T23:56:53Z")

</div>

Hi @Manuel_Jines,

The node was working correctly, you just had a few mistakes in the list logic. It wasn’t extracting all of the solids for each corridor because it wasn’t being supplied with the complete list of shape codes.

This version should work:

[CREA\_SOLIDOS\_CORREDOR\_v3.dyn](https://forum.dynamobim.com/uploads/short-url/fLhYnmE2qipEkuSTMOlZ2hFbHh2.dyn) (23.7 KB)

---

<div class="post-metadata">

**Author:** ![Manuel\_Jines](https://avatars.discourse-cdn.com/v4/letter/m/9fc348/32.png) [@Manuel\_Jines](https://forum.dynamobim.com/u/Manuel_Jines)\
**Post date:** [February 18, 2026, 4:26am UTC](https://forum.dynamobim.com/t/error-creating-solids-from-multiple-corridors-using-corridor-solidsbyrange-2025-1/105724/3 "2026-02-18T04:26:38Z")

</div>

Thank you very much. That was what I was still missing to understand: list management. In the new Dynamo scripts I’ve been creating, I’m gradually starting to understand it better.
