# PolylineExtensions.GetGeometry for 3DPolylines

**URL:** <https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955>\
**Category:** Civil 3D\
**Created:** [October 7, 2020, 8:20pm UTC](https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955 "2020-10-07T20:20:13Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![Paolo\_Emilio\_Serra1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/paolo_emilio_serra1/32/12902_2.png) [@Paolo\_Emilio\_Serra1](https://forum.dynamobim.com/u/Paolo_Emilio_Serra1)\
**Post date:** [October 9, 2020, 1:31pm UTC](https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955/21 "2020-10-09T13:31:37Z")

</div>

no I would recommend to clean the DWG

---

<div class="post-metadata">

**Author:** ![e.winter](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@e.winter](https://forum.dynamobim.com/u/e.winter)\
**Post date:** [October 10, 2020, 1:27pm UTC](https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955/22 "2020-10-10T13:27:37Z")

</div>

The OOTB node does not create a good PolyCurve from a Polyline3D. A bug I guess?  
Here is a workaround: Explode the Polyline3D into Lines. And then create a PolyCurve from the Lines.  
(Don’t forget to Erase the Lines.and recreate a Polyline3D from the PolyCurve)

---

<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:** [October 10, 2020, 3:15pm UTC](https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955/23 "2020-10-10T15:15:42Z")

</div>

> [@e.winter](#):
>
> The OOTB node does not create a good PolyCurve from a Polyline3D.

What is your definition of a “good PolyCurve”? It may look distorted/jagged in Dynamo, but that’s probably because it is really far from the origin. If you get the PolyCurve from C3D and then output a new 3D Polyline back into model space, it should be identical to the original.

---

<div class="post-metadata">

**Author:** ![e.winter](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@e.winter](https://forum.dynamobim.com/u/e.winter)\
**Post date:** [October 10, 2020, 8:43pm UTC](https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955/24 "2020-10-10T20:43:31Z")

</div>

Strange. I ran the same script at another PC system. No issues with converting the 3D polyline to a PolyCurve.  
I think it has to do with the problem of not able to create a solid object from a DS solid to AutoCAD.

[Previous page](https://forum.dynamobim.com/t/polylineextensions-getgeometry-for-3dpolylines/55955.md?page=1)
