# Converting Civil3D Objects to Dynamo Geometry errors on Elipses

**URL:** <https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763>\
**Category:** Civil 3D\
**Tags:** dynamo, civil3d\
**Created:** [November 27, 2020, 9:58am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763 "2020-11-27T09:58:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 27, 2020, 9:58am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/1 "2020-11-27T09:58:11Z")

</div>

Hello everyone,

I have a quite complex shape for a special road marking, and i would like to transform this Civil3D Block, which is now 2D into an 3D Object through Dynamo.

The problem is, i dont know where or how to approach this. This is what i have created so far in Dynamo:

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

This is a reference for the output i need (in real life):

 ![velopa-inrichting-verkeer-en-infrastructuur-wegdekmarkering-alerrrt-02](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/c/fc8738ba4f89a97fa49419f79d8f56b9d6113ab6.jpeg)

Also my files:

[Complex Road Marking.dwg](https://forum.dynamobim.com/uploads/short-url/7RFZsB4ScBmOAI4DfUEa9cMHkR8.dwg) (908.2 KB)  
[Complex Road Marking Script.dyn](https://forum.dynamobim.com/uploads/short-url/9mGGPo8Jcyp53MKZeW6IpI4KYZe.dyn) (18.9 KB)

Thanks in advance!  
Daan

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 10:47am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/2 "2020-11-27T10:47:27Z")

</div>

Hi @Daan,  
I can not study your diagram because i got all unresolved nodes,  
but i would try that kind of process

 ![shape_in_3d](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/f/ef66beb5343d1a1c65206b009bcff187e2c88c86.png)  
You can use nodes from bimorphNodes package.

---

<div class="post-metadata">

**Author:** ![david\_licona](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_licona/32/123672_2.png) [@david\_licona](https://forum.dynamobim.com/u/david_licona)\
**Post date:** [November 27, 2020, 10:57am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/3 "2020-11-27T10:57:31Z")

</div>

I suggest extracting the geometry using the Civil 3D Toolkit : BlockReferenceExtensions.GetGeometry.

This will give you each curve that makes the block (without the nulls/empty).

Afterwards you can join the polycurves (knowing which is which is tricky and will take some time) to construct surfaces : .  
-First I’ll construct a surface that represents the whole (see image below)  
-and then substract the surfaces representing the gaps (when joining the polycurves make sure that you create a polycurve containing for curves for each of the gap and you can create the surfaces by patching).

Finally you can use the the surface.thicken node to make it a solid.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/a/cad6c09b852d967b15f4927082faaf14fa5717fe.jpeg)

Anyway this is by no means the only way to do it. As with everything in Dynamo you can have many ways to get to the same result. This is what I came up when seeing the geometry. Maybe just creating it in Dynamo from scratch can be easier ? It seems every parameter is constant (space between the gaps, slope of the lines, etc.)

---

<div class="post-metadata">

**Author:** ![david\_licona](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/david_licona/32/123672_2.png) [@david\_licona](https://forum.dynamobim.com/u/david_licona)\
**Post date:** [November 27, 2020, 10:58am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/4 "2020-11-27T10:58:46Z")

</div>

Hadn’t seen your reply but we thought of the same approach 🙂

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 11:00am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/5 "2020-11-27T11:00:54Z")

</div>

🙂

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 27, 2020, 11:13am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/6 "2020-11-27T11:13:47Z")

</div>

Hi @david_licona & @Francois_Labonne,

I would like to thank you both for your in depth feedback! That is a great solution!  
However i have another small problem, when i insert another symbol, a STOP marking i get this weird result: (Using the BlockReferenceExtensions node)

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

How or why this happens, i don’t know.  
Again thank you! 🙂

[Complex Road Marking Script V2.dyn](https://forum.dynamobim.com/uploads/short-url/hDRArlMwtcQnecAlY5wNfR1neJi.dyn) (74.3 KB)  
[Complex Road Marking V2.dwg](https://forum.dynamobim.com/uploads/short-url/l7Av87K4RzLZyRUBkJkc3XmQOnH.dwg) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 11:23am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/7 "2020-11-27T11:23:24Z")

</div>

Yes, i have already seen that…you can split the arcs in several straights lines with Curve.PointAtParameter, and then join those points to redraw the arcs…

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 27, 2020, 11:25am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/8 "2020-11-27T11:25:03Z")

</div>

How do i know which arc correspond to which letter and which parameter?

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 11:45am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/9 "2020-11-27T11:45:42Z")

</div>

Not easy to find the letter unless you move it to a specic layer.  
But you can select all the arcs that way

 ![PointAtParameter](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9bd95171e9fadba47b4aff4367ac327edeb5feb7.png)  
About parameter : one or several values normalized i.e. beetween 0 & 1

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 11:49am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/10 "2020-11-27T11:49:08Z")

</div>

Maybe you can just use the 3d text tool in revit and catch it with dynamo

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 11:54am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/11 "2020-11-27T11:54:03Z")

</div>

There is not only Arc in your text but also EllipseArc…maybe the issues come from those EllipseArc

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 27, 2020, 12:08pm UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/12 "2020-11-27T12:08:20Z")

</div>

Yes, i see now that the issues are coming from the Ellipses, but i do not know how to change those elipses to polylines.

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 12:51pm UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/13 "2020-11-27T12:51:51Z")

</div>

@Daan  
Here is a tedious way to get your S letter extruded

 ![S_shape](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/3/2382f097601c3e9d0150fbe7e190d69013fe6784.png)  
[S\_shape.dyn](https://forum.dynamobim.com/uploads/short-url/mA3dwpaEiAGSdHiaPnYhbMSVxxd.dyn) (43.8 KB)

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [November 27, 2020, 12:54pm UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/14 "2020-11-27T12:54:59Z")

</div>

Hi @Francois_Labonne,

Could you share your Dynamo file?  
This looks really promising.

Regards,  
Daan

---

<div class="post-metadata">

**Author:** ![Francois\_Labonne](https://avatars.discourse-cdn.com/v4/letter/f/bcef8e/32.png) [@Francois\_Labonne](https://forum.dynamobim.com/u/Francois_Labonne)\
**Post date:** [November 27, 2020, 12:57pm UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/15 "2020-11-27T12:57:22Z")

</div>

you can find the download link in my previous post 🙂  
(i just used a node from bimorphNodes package)

---

<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:** [November 27, 2020, 3:38pm UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/16 "2020-11-27T15:38:23Z")

</div>

The issue is that these are ellipses in AutoCAD but they should be EllipseArc in Dynamo, hence the confusion

---

<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:** [November 29, 2020, 12:25pm UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/17 "2020-11-29T12:25:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b93f285c71d9e3c1cff159214f485b5a39b7fa7.png)  
Thanks for pointing this out there is something off going on in the the Dynamo node to create Ellipse Arc, I had to do some changes to the logic of the geometry conversion but the result looks good now.

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [December 2, 2020, 11:43am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/19 "2020-12-02T11:43:28Z")

</div>

@Paolo_Emilio_Serra1,

I still have the same problem, do i need to reinstall the Civil3DToolkit package?

---

<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:** [December 2, 2020, 11:44am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/20 "2020-12-02T11:44:48Z")

</div>

I haven’t released the new version yet

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [December 2, 2020, 11:45am UTC](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763/21 "2020-12-02T11:45:36Z")

</div>

Is there a way to get this to work at the moment?  
Or are you going to release that update really soon?

[Next page](https://forum.dynamobim.com/t/converting-civil3d-objects-to-dynamo-geometry-errors-on-elipses/57763.md?page=2)
