# Command works in the dynamo but not in civil 3d

**URL:** <https://forum.dynamobim.com/t/command-works-in-the-dynamo-but-not-in-civil-3d/71008>\
**Category:** Civil 3D\
**Created:** [December 2, 2021, 12:32pm UTC](https://forum.dynamobim.com/t/command-works-in-the-dynamo-but-not-in-civil-3d/71008 "2021-12-02T12:32:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![3rendped](https://avatars.discourse-cdn.com/v4/letter/3/41988e/32.png) [@3rendped](https://forum.dynamobim.com/u/3rendped)\
**Post date:** [December 2, 2021, 12:32pm UTC](https://forum.dynamobim.com/t/command-works-in-the-dynamo-but-not-in-civil-3d/71008/1 "2021-12-02T12:32:03Z")

</div>

Hi there,  
so i’m fairly new to Dynamo for Civil 3d. I’ve already tried it in Revit before. So i created a very simple comand, that’s supposed to create circles based on the points read from an excel table. it seems to work in the dynamo space but when i try the dynamo player to actually create the circles in the civil 3d nothing is created. am i doing something wrong?

---

<div class="post-metadata">

**Author:** ![hosneyalaa](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hosneyalaa/32/100865_2.png) [@hosneyalaa](https://forum.dynamobim.com/u/hosneyalaa)\
**Post date:** [December 2, 2021, 12:50pm UTC](https://forum.dynamobim.com/t/command-works-in-the-dynamo-but-not-in-civil-3d/71008/2 "2021-12-02T12:50:39Z")

</div>

Hi

> [@Help with Python Script for Autocad](https://forum.dynamobim.com/t/help-with-python-script-for-autocad/55563/7):
>
> hello @shahid.shaikh_C3D a simple example to create a circle in Civil3D from a Dynamo Geometry # 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') clr.AddReference('ProtoGeometry') # Import references from AutoCAD from Autodesk.AutoCAD.Runti…

 ![ffe68fd83552113b878b93897866fcac8efef720](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/a/ba51ab3d229605759a6c8f38ea1c2cf8471a9f4f.png)

---

<div class="post-metadata">

**Author:** ![hosneyalaa](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/hosneyalaa/32/100865_2.png) [@hosneyalaa](https://forum.dynamobim.com/u/hosneyalaa)\
**Post date:** [December 2, 2021, 12:52pm UTC](https://forum.dynamobim.com/t/command-works-in-the-dynamo-but-not-in-civil-3d/71008/3 "2021-12-02T12:52:42Z")

</div>

and

> [@Dynamo python Export polyline to AutoCAD](https://forum.dynamobim.com/t/dynamo-python-export-polyline-to-autocad/51443/2):
>
> Hello @gabdelmo here is the corrected python code the argument of AddPolyline function must be a Array not a list of multiple Array (note the extend function instead of append) [https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-ED02917C-D1D6-46B8-95C6-736163C31362](https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-ED02917C-D1D6-46B8-95C6-736163C31362) # Enable Python support and load DesignScript library import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import \* from math import \* import System from System import Array # The inputs to this no…

> [@Create multiple lines](https://forum.dynamobim.com/t/create-multiple-lines/59114/6):
>
> Hi @frederic.duhart You where using the wrong node. Correct node is Document.ModelSpace:

---

<div class="post-metadata">

**Author:** ![3rendped](https://avatars.discourse-cdn.com/v4/letter/3/41988e/32.png) [@3rendped](https://forum.dynamobim.com/u/3rendped)\
**Post date:** [December 2, 2021, 1:17pm UTC](https://forum.dynamobim.com/t/command-works-in-the-dynamo-but-not-in-civil-3d/71008/4 "2021-12-02T13:17:09Z")

</div>

@hosneyalaa Thank you very much the document node actually solved the problem. 🙂
