# Connect Lines With Touching End Points in a Flattened List

**URL:** <https://forum.dynamobim.com/t/connect-lines-with-touching-end-points-in-a-flattened-list/72238>\
**Category:** Lists-Logic\
**Tags:** python\
**Created:** [January 13, 2022, 1:43pm UTC](https://forum.dynamobim.com/t/connect-lines-with-touching-end-points-in-a-flattened-list/72238 "2022-01-13T13:43:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [January 13, 2022, 1:43pm UTC](https://forum.dynamobim.com/t/connect-lines-with-touching-end-points-in-a-flattened-list/72238/1 "2022-01-13T13:43:24Z")

</div>

[01\_Trace Surface Outline and Return Model Curves.dyn](https://forum.dynamobim.com/uploads/short-url/uv0MoQ3bqeWUrshQhaVAUjPXKX3.dyn) (9.9 KB)  
Hi All

Thanks for all the help on this forum. I am trying to rationalize the internal and external outlines of the Colonel Sanders KFC logo into lines not smaller than 1mm so that Revit does not return an error when I attempt creating an extrusion. However, when I select the surface and produce the edge curves, the PolyCurve.ByJoinedCurves node returns an error because lines in the list do not connect, resulting in multiple wires.

I found a Python script on this forum that might work with some tweaking, but my Python skills are still quite rudimentary. See a link to the thread below and a Revit and dyn file.  
Thanks for your assistance.  
[ATT01\_Colonel Lightbox.rfa](https://forum.dynamobim.com/uploads/short-url/ecplPVeZ2iozm41Kf3nAsyP0BwD.rfa) (1.4 MB)

[Surface Outline without inner cutouts / holes / whatsover - Revit - Dynamo (dynamobim.com)](https://forum.dynamobim.com/t/surface-outline-without-inner-cutouts-holes-whatsover/41363)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/43e73a49e8530e77644e3d0492c13fe4f0f20224.png)

---

<div class="post-metadata">

**Author:** ![bayowindapo](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/bayowindapo/32/184532_2.png) [@bayowindapo](https://forum.dynamobim.com/u/bayowindapo)\
**Post date:** [January 13, 2022, 1:45pm UTC](https://forum.dynamobim.com/t/connect-lines-with-touching-end-points-in-a-flattened-list/72238/2 "2022-01-13T13:45:35Z")

</div>

@jacob.small@Jannis @Vikram_Subbaiah @maciek.glowka
