# Create solid from corridor

**URL:** <https://forum.dynamobim.com/t/create-solid-from-corridor/65982>\
**Category:** Civil 3D\
**Tags:** python\
**Created:** [July 9, 2021, 5:31am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982 "2021-07-09T05:31:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![oh\_ruki](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@oh\_ruki](https://forum.dynamobim.com/u/oh_ruki)\
**Post date:** [July 9, 2021, 5:31am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/1 "2021-07-09T05:31:10Z")

</div>

Hello,  
Is there a node that creates solids from all regions of the corridor?  
I’m sure I’ll use python script, but I’ve never learned python.

---

<div class="post-metadata">

**Author:** ![Assem.Daaboul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/assem.daaboul/32/116900_2.png) [@Assem.Daaboul](https://forum.dynamobim.com/u/Assem.Daaboul)\
**Post date:** [July 9, 2021, 6:49am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/2 "2021-07-09T06:49:23Z")

</div>

Hi @oh_ruki,  
I believe you are aware of the Corridor.GetSolids node as discussed in this post: [Corridors.GetSolids - #3 by JowennLua](https://forum.dynamobim.com/t/corridors-getsolids/40492/3). Note that you should have solids created in dwg first by using the Export Corridor Solids command on the ribbon.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/b/fb2608d50a509973d536836a47d68d1d89e75cbe.png)

hope this helps.

---

<div class="post-metadata">

**Author:** ![oh\_ruki](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@oh\_ruki](https://forum.dynamobim.com/u/oh_ruki)\
**Post date:** [July 9, 2021, 7:56am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/3 "2021-07-09T07:56:16Z")

</div>

Thank you,@Assem.Daaboul  
After all, I created a solid in Civil3D in advance and used the Corridor.GetSolids node …  
Currently, I have confirmed that there is no node provided to create a corridor solid on Dynamo.

Everyone else,  
If you have developed a script that allows you to create a corridor solid on Dynamo, please let us know.

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [July 9, 2021, 3:17pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/4 "2021-07-09T15:17:52Z")

</div>

Hi @oh_ruki,

You could skip any interaction with the API and use Dynamo to create the solids by loft from the shape codes. Notice the list levels and lacing.

 ![ShapeCodesToSolids](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/e/5ec9d63aa59cb2a140c29c1a9496d2d3447c13c0.png)

![Solids](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/5/f5cf7e3eec6819d278ae9156ad1256aac28fba19.gif)

---

<div class="post-metadata">

**Author:** ![oh\_ruki](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@oh\_ruki](https://forum.dynamobim.com/u/oh_ruki)\
**Post date:** [July 9, 2021, 3:37pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/5 "2021-07-09T15:37:37Z")

</div>

Thank you, @zachri.jensen  
I will try it!

---

<div class="post-metadata">

**Author:** ![JPS](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@JPS](https://forum.dynamobim.com/u/JPS)\
**Post date:** [April 21, 2022, 3:58pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/6 "2022-04-21T15:58:27Z")

</div>

Hi,

Can’t get it working. see the error.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e28cd6fb3693f8ff2879caadffb1545f2df54de5.png)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [April 21, 2022, 5:28pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/7 "2022-04-21T17:28:46Z")

</div>

Hi @JPS,

The warning looks pretty self-explanatory. There’s probably an empty list somewhere in your list of points.

---

<div class="post-metadata">

**Author:** ![JPS](https://avatars.discourse-cdn.com/v4/letter/j/b4bc9f/32.png) [@JPS](https://forum.dynamobim.com/u/JPS)\
**Post date:** [April 22, 2022, 2:26pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/8 "2022-04-22T14:26:23Z")

</div>

Hi @zachri.jensen,

I pasted the wrong screenshot. It doesn’t work because the points 3 and 4 are the same. But why is this, has this something to do with the subassembly, how the solid is created?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/963ef7c464e8fae463fefd33a528e7802c8bb8b3.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [April 22, 2022, 3:06pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/9 "2022-04-22T15:06:38Z")

</div>

Make sure you have all of the list levels and node lacing set the same as the example I posted above. That can make a big difference.

---

<div class="post-metadata">

**Author:** ![WrightEngineering](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wrightengineering/32/115676_2.png) [@WrightEngineering](https://forum.dynamobim.com/u/WrightEngineering)\
**Post date:** [May 10, 2022, 6:41pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/10 "2022-05-10T18:41:27Z")

</div>

Zachri,

I seem to be unable to reproduce the results. Not sure why. I believe the lacing is the set to the same as your above graph. It’s not producing as many points and I’m not sure why. Maybe something to do with shape codes?  
[ExtractCorridorSolids.dwg](https://forum.dynamobim.com/uploads/short-url/9yqwFxiHp7yprkFcSdDtYPw5PWg.dwg) (4.8 MB)  
[ExtractCorridorSolids.dyn](https://forum.dynamobim.com/uploads/short-url/ficc1JDMbEEg5hyO67zKSQ0uGrv.dyn) (19.1 KB)

[https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/308adf189dfd14e17a5128507f3dac44a72b5316.mp4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/0/308adf189dfd14e17a5128507f3dac44a72b5316.mp4)

I’m probably missing something really simple 😅

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [May 10, 2022, 6:55pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/11 "2022-05-10T18:55:28Z")

</div>

Double-check the lacing on _Baseline.PointsByShapeCodeAtNearestStation_. Should be set to longest.

---

<div class="post-metadata">

**Author:** ![WrightEngineering](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wrightengineering/32/115676_2.png) [@WrightEngineering](https://forum.dynamobim.com/u/WrightEngineering)\
**Post date:** [May 10, 2022, 7:09pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/12 "2022-05-10T19:09:00Z")

</div>

Works like a charm. I only checked levels and called it lacing in my previous comment 😅. Thanks Zachri!

---

<div class="post-metadata">

**Author:** ![rinkesh02](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@rinkesh02](https://forum.dynamobim.com/u/rinkesh02)\
**Post date:** [August 16, 2022, 5:40am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/13 "2022-08-16T05:40:31Z")

</div>

Could you share script ?

---

<div class="post-metadata">

**Author:** ![WrightEngineering](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wrightengineering/32/115676_2.png) [@WrightEngineering](https://forum.dynamobim.com/u/WrightEngineering)\
**Post date:** [August 16, 2022, 5:54am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/14 "2022-08-16T05:54:22Z")

</div>

[ExtractCorridorSolids.dyn](https://forum.dynamobim.com/uploads/short-url/qg9p6s27uwLX0yPUKtUgqt2Dl2l.dyn) (22.4 KB)

This is what I have in my file (hopefully it’s the most updated, if not check lacing as mzjensen says above)

---

<div class="post-metadata">

**Author:** ![rinkesh02](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@rinkesh02](https://forum.dynamobim.com/u/rinkesh02)\
**Post date:** [August 16, 2022, 6:40am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/15 "2022-08-16T06:40:06Z")

</div>

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

for me point 1&2 and 3&4 are coming same.

---

<div class="post-metadata">

**Author:** ![WrightEngineering](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/wrightengineering/32/115676_2.png) [@WrightEngineering](https://forum.dynamobim.com/u/WrightEngineering)\
**Post date:** [August 16, 2022, 6:41am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/16 "2022-08-16T06:41:21Z")

</div>

Not sure why without seeing more. Can use point.pruneduplicates

---

<div class="post-metadata">

**Author:** ![rinkesh02](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@rinkesh02](https://forum.dynamobim.com/u/rinkesh02)\
**Post date:** [August 16, 2022, 7:01am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/17 "2022-08-16T07:01:50Z")

</div>

![123](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/3/f35ba6b25c5d73a731e81676e1da227d4d9eb372.png)  
It’s not giving me 4 point of 4 corner of shape.  
@zachri.jensen

---

<div class="post-metadata">

**Author:** ![aravind.akhil007](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@aravind.akhil007](https://forum.dynamobim.com/u/aravind.akhil007)\
**Post date:** [March 9, 2023, 12:25pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/18 "2023-03-09T12:25:38Z")

</div>

Hi @mzjensen.I was having trouble converting a C3D object while testing the script. Several dynamo solids were unable to convert (Pave 1 and 2). They are displayed as null.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/b/2b82115692ac17f48a8c7c2b8989454c5ad362b6.png)

---

<div class="post-metadata">

**Author:** ![mzjensen](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mzjensen](https://forum.dynamobim.com/u/mzjensen)\
**Post date:** [March 9, 2023, 2:42pm UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/19 "2023-03-09T14:42:12Z")

</div>

Try clearing your temp folder.

> [@Object.ByGeometry returns null](https://forum.dynamobim.com/t/object-bygeometry-returns-null/49037/):
>
> Hello everyone! I have been exploring Dynamo for Civil 2020 (Update 2) lately and creating AutoCAD objects from Dynamo went smoothly. But since recently node Object.ByGeometry returns only null value despite no other errors in workflow and in .dwg file nothing changes. If I create Solid in some other way (Solid.ByLoft…) the result is the same. I reinstalled Dynamo via Autodesk Uninstall Tool/ Desktop App but it does not resolve the issue. I attached a simple cube workflow. Thank you for sugg…

---

<div class="post-metadata">

**Author:** ![sandy.trias](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@sandy.trias](https://forum.dynamobim.com/u/sandy.trias)\
**Post date:** [November 26, 2025, 8:56am UTC](https://forum.dynamobim.com/t/create-solid-from-corridor/65982/20 "2025-11-26T08:56:52Z")

</div>

Hi **[mzjensen](https://forum.dynamobim.com/u/mzjensen)**

Your method of extracting line and point data and converting them into solids is indeed impressive. I’ve tried the nodes you shared — thank you for sharing your knowledge and expertise.  
However, unfortunately this method does not produce the same result as the native Civil 3D corridor-solid extraction feature.

These nodes do not reference the alignment geometry, so the resulting solids are not detailed enough, especially in curved sections of the alignment.

Do you have any other clever ideas?
