# Polygon.ByPoints does not work

**URL:** <https://forum.dynamobim.com/t/polygon-bypoints-does-not-work/47744>\
**Category:** Geometry\
**Tags:** dynamo\
**Created:** [March 6, 2020, 9:25am UTC](https://forum.dynamobim.com/t/polygon-bypoints-does-not-work/47744 "2020-03-06T09:25:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fauzan.Maulana](https://avatars.discourse-cdn.com/v4/letter/f/a9adbd/32.png) [@Fauzan.Maulana](https://forum.dynamobim.com/u/Fauzan.Maulana)\
**Post date:** [March 6, 2020, 9:25am UTC](https://forum.dynamobim.com/t/polygon-bypoints-does-not-work/47744/1 "2020-03-06T09:25:21Z")

</div>

I’ve generated a list of coordinates which I’ve used to create 4 points. However, when I simply use a Polygon.ByPoints node to generate a Closed Polygon, it somehow only detects 2 points rather than 4.

Somehow the Surface.byPerimeterPoints work to generate a surface of this trapezoid, but I need the polygon to be able to use for sweeping the shapes into a solid later on.

I am using Dynamo for Civil 3D 2020.

Many thanks if anyone has encountered a similar issue and if they can share some ideas.

(upload://7SzFn6U9e3Mpim5SuvcGAZ411CX.png)
