# PolylineExtensions.ObjectByGeometry

**URL:** <https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008>\
**Category:** Civil 3D\
**Created:** [March 12, 2020, 9:13am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008 "2020-03-12T09:13:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![i51vignesh](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@i51vignesh](https://forum.dynamobim.com/u/i51vignesh)\
**Post date:** [March 12, 2020, 9:13am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/1 "2020-03-12T09:13:20Z")

</div>

Continuing the discussion from [Civil 3D Toolkit Feedback thread](https://forum.dynamobim.com/t/civil-3d-toolkit-feedback-thread/43570/212):

Hi, I tried using PolylineExtensions.ObjectByGeometry node from Civil 3D Toolkit 1.0.14 . This node works fine when polycurve created has only x and y co ordinates, if polycurve is created with x,y,z coordinates this node doesn’t work.

In the attached screenshot the elevation input is not given, if elevation input is given for Point.ByCylindiricalCoordinates then PolylineExtensions.ObjectByGeometry doesn’t work

Why it happens so? or is there any error in my programming?

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/b/4b38683d72f675097affe55f7aa5eb962e22d806.jpeg)

---

<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:** [March 12, 2020, 9:38am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/2 "2020-03-12T09:38:44Z")

</div>

The nodes works fine because it produces a Polyline in AutoCAD which are always planar, not a Polyline 3d.  
you may want to use the OOTB node to create a Polyline3d by points.

---

<div class="post-metadata">

**Author:** ![i51vignesh](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@i51vignesh](https://forum.dynamobim.com/u/i51vignesh)\
**Post date:** [March 12, 2020, 9:46am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/3 "2020-03-12T09:46:31Z")

</div>

Just tried Polyline3D.ByPoints instead of Polycurve.ByPoints and it works fine with warning.

---

<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:** [March 12, 2020, 9:48am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/4 "2020-03-12T09:48:55Z")

</div>

Try Function.Apply, it should get rid of the warning

---

<div class="post-metadata">

**Author:** ![i51vignesh](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@i51vignesh](https://forum.dynamobim.com/u/i51vignesh)\
**Post date:** [March 14, 2020, 9:14am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/5 "2020-03-14T09:14:35Z")

</div>

Hi Paolo, tried using function.apply, It didn’t get rid of the warning, also geometry wasn’t created as object in civil 3d while using Function.apply node.  
Find the attached pic

 ![14032020 warn](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/d/1dc5acd532955c1c501f2524c79168fc8cbf53a1.jpeg)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [March 14, 2020, 4:36pm UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/6 "2020-03-14T16:36:43Z")

</div>

Hi @i51vignesh

You need to Convert To Dynamo Geometry. Use Object.Geometry node. And also make sure you connect the other inputs Layer and Block.

---

<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:** [March 15, 2020, 9:23am UTC](https://forum.dynamobim.com/t/polylineextensions-objectbygeometry/48008/7 "2020-03-15T09:23:33Z")

</div>

What I meant is that using Function.Apply, Polyline3d.ByPoints executed without warning (which it did even in your image). After that it makes no sense at all calling the PolylineExtensions.ObjectByGeometry. If you care to see the polyline geometry in Dynamo you need to call the Object.Geometry node instead.
