# Civil 3D Get Poly Curve from corridor shape or Idea to generate solid from corridor

**URL:** <https://forum.dynamobim.com/t/civil-3d-get-poly-curve-from-corridor-shape-or-idea-to-generate-solid-from-corridor/103533>\
**Category:** DesignScript\
**Tags:** python, geometry, dynamo, civil3d\
**Created:** [August 13, 2024, 4:00pm UTC](https://forum.dynamobim.com/t/civil-3d-get-poly-curve-from-corridor-shape-or-idea-to-generate-solid-from-corridor/103533 "2024-08-13T16:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haripada.jana](https://avatars.discourse-cdn.com/v4/letter/h/e36b37/32.png) [@haripada.jana](https://forum.dynamobim.com/u/haripada.jana)\
**Post date:** [August 13, 2024, 4:00pm UTC](https://forum.dynamobim.com/t/civil-3d-get-poly-curve-from-corridor-shape-or-idea-to-generate-solid-from-corridor/103533/1 "2024-08-13T16:00:00Z")

</div>

Hi All,

Can anybody suggest an idea to generate a solid from a corridor? The planned task details are as follows:

I want to generate lofted solid for the corridor shape to assign metadata, such as region details and individual solid details. **The main problem I am facing is that I haven’t found any method in the corridor class to extract the corridor or get a polycurve from the corridor shape.**

One more thing, in our whole project, we are using Civil 3D 2022.  
If any other information is required, please mention it in the comment section.  
Thanks.

---

<div class="post-metadata">

**Author:** ![kovacsv](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kovacsv](https://forum.dynamobim.com/u/kovacsv)\
**Post date:** [August 13, 2024, 10:12pm UTC](https://forum.dynamobim.com/t/civil-3d-get-poly-curve-from-corridor-shape-or-idea-to-generate-solid-from-corridor/103533/2 "2024-08-13T22:12:47Z")

</div>

Well, you can’t extract solids directly using API in C3D 2022.  
If you are able to upgrade I suggest at least 2023 as this is possible from version 2023.2:

> [@Extract Solids for Multiple Corridors](https://forum.dynamobim.com/t/extract-solids-for-multiple-corridors/76337/26):
>
> Good news everyone! This is now covered in the 2023.2 Update API. Here’s a test script: # Load the Python Standard and DesignScript Libraries import sys import clr # Add Assemblies for AutoCAD and Civil3D clr.AddReference('AcMgd') clr.AddReference('AcCoreMgd') clr.AddReference('AcDbMgd') clr.AddReference('AecBaseMgd') clr.AddReference('AecPropDataMgd') clr.AddReference('AeccDbMgd') # Import references from AutoCAD from Autodesk.AutoCAD.Runtime import \* from Autodesk.AutoCAD.ApplicationServi…

As an alternative option, theoretically, if you create corridor sections you can use the SectionPoints Property to access section points and recreate shapes for Dynamo to loft solids.  
[https://help.autodesk.com/view/CIV3D/2025/ENU/?guid=ae047b27-4c49-e496-9486-6649e2228764](https://help.autodesk.com/view/CIV3D/2025/ENU/?guid=ae047b27-4c49-e496-9486-6649e2228764)  
[https://help.autodesk.com/view/CIV3D/2025/ENU/?guid=c19d4bb4-c946-9c3e-34f3-5c1a78903702](https://help.autodesk.com/view/CIV3D/2025/ENU/?guid=c19d4bb4-c946-9c3e-34f3-5c1a78903702)  
I have no idea how complicated this method would be, so if you really need this and you have access to newer versions I advise you to upgrade to 2023 or above.
