# List of lines/curves to make a quadrilateral or polygon

**URL:** <https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [December 18, 2019, 12:37pm UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654 "2019-12-18T12:37:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nissal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nissal/32/67016_2.png) [@Nissal](https://forum.dynamobim.com/u/Nissal)\
**Post date:** [December 18, 2019, 12:37pm UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/1 "2019-12-18T12:37:47Z")

</div>

Hi,  
Im trying to make this green colored lines as a closed loop polygon/ curve to check whether the list of objects are within it or outside. **But Im not able to make closed loop** 😔

\*\*

 ![curves](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/f/af94f17a5bf95ffd25f5103e8e4680d12551d393.jpeg) \*\*

_Next step is from this closed loops polygons I will check the list of objects are within the boundary or outside of it. Probably I will do it with bounding box_

Anyone got idea how to make closed loop curve or red-list to to be identified within the curves. 🤔  
Your comments on it would help me alot.

---

<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 18, 2019, 12:47pm UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/2 "2019-12-18T12:47:28Z")

</div>

Did you try PolyCurve.ByCurve / PolyCurve.ByPoints?

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [December 18, 2019, 1:48pm UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/3 "2019-12-18T13:48:52Z")

</div>

At least one of the rooms has more than 4 lines defining its perimeter so chopping by 4 isn’t going to work here.

Try using a GroupCurves node from Archilab, and build your polygon from that.

---

<div class="post-metadata">

**Author:** ![Nissal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nissal/32/67016_2.png) [@Nissal](https://forum.dynamobim.com/u/Nissal)\
**Post date:** [December 19, 2019, 5:54am UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/4 "2019-12-19T05:54:30Z")

</div>

I will check and revert with any update  
Thank you 🥂 @Daan @jacob.small

---

<div class="post-metadata">

**Author:** ![Nissal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nissal/32/67016_2.png) [@Nissal](https://forum.dynamobim.com/u/Nissal)\
**Post date:** [December 20, 2019, 5:50am UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/5 "2019-12-20T05:50:16Z")

</div>

Worked well @Daan and @jacob.small ✌ 😇

 ![polycurves](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/e/9e7df3269b7bde4300311547ab74ed4b2005fe97.jpeg)

---

<div class="post-metadata">

**Author:** ![Archstu.n.t.thuong](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Archstu.n.t.thuong](https://forum.dynamobim.com/u/Archstu.n.t.thuong)\
**Post date:** [November 24, 2020, 12:11pm UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/6 "2020-11-24T12:11:52Z")

</div>

I’m using revit 2019 and Dynamo 2.0.3  
I need – [&]PolyCurve.ByCurves – to build my script but can not find it anywhere.  
Could you please show me where it is??  
I’m thinking of using Group Curves of Archi Lab but not really know why it run forever to finish

---

<div class="post-metadata">

**Author:** ![Nissal](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nissal/32/67016_2.png) [@Nissal](https://forum.dynamobim.com/u/Nissal)\
**Post date:** [November 30, 2020, 3:58pm UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/7 "2020-11-30T15:58:51Z")

</div>

Check in amphersand package

---

<div class="post-metadata">

**Author:** ![Archstu.n.t.thuong](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Archstu.n.t.thuong](https://forum.dynamobim.com/u/Archstu.n.t.thuong)\
**Post date:** [December 1, 2020, 8:39am UTC](https://forum.dynamobim.com/t/list-of-lines-curves-to-make-a-quadrilateral-or-polygon/44654/8 "2020-12-01T08:39:23Z")

</div>

Thanks. Great Help!! will check it out
