# Polycurve.ByJoinedCurve operation failed

**URL:** <https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301>\
**Category:** Revit\
**Tags:** revit, python, dynamo\
**Created:** [August 9, 2019, 1:46am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301 "2019-08-09T01:46:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdobbs](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdobbs](https://forum.dynamobim.com/u/tdobbs)\
**Post date:** [August 9, 2019, 1:46am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/1 "2019-08-09T01:46:53Z")

</div>

Hi People,

I have a room finish boundary that I am trying to produce a polycurve from and I am getting this error:

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

Does anyone know why? Clearly I am feeding a list of curves so it is not empty. Any thoughts are greatly appreciated.

Kind regards  
Tiara

---

<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:** [August 9, 2019, 3:06am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/2 "2019-08-09T03:06:21Z")

</div>

Try using the node version and translating to Design Script via node to code. My guess is that it is working at L3 (only contains a list) or L1 (only contains elements), but it’s hard to know without seeing more.

---

<div class="post-metadata">

**Author:** ![tdobbs](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdobbs](https://forum.dynamobim.com/u/tdobbs)\
**Post date:** [August 9, 2019, 3:57am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/3 "2019-08-09T03:57:08Z")

</div>

Thank you JacobSmall but what do you mean by node version? Do you mean converting the functions of the script to their node equivalent? I have tried that and I still get the same error. I will try testing the lacing as you mentioned above to see if that helps.

---

<div class="post-metadata">

**Author:** ![tdobbs](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdobbs](https://forum.dynamobim.com/u/tdobbs)\
**Post date:** [August 9, 2019, 4:31am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/4 "2019-08-09T04:31:08Z")

</div>

Hi Jacob, find attached script and mock revit file.[AutoPlanViewCreator\_CropBox\_RoomPerimeter\_ForumQuestion.dyn](https://forum.dynamobim.com/uploads/short-url/kDnZ5dMbLruC1ZpuWjU4tsVvXUK.dyn) (132.3 KB)[Project2.rvt](https://forum.dynamobim.com/uploads/short-url/qKeUgw9VxfTdTdtPJs8YverI34.rvt) (488 KB)

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [August 9, 2019, 6:32am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/5 "2019-08-09T06:32:01Z")

</div>

works for me:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/9/09b10b7e118291007a765e17ed0b5b7af1ad1b41.png)

i only changed the string that your are searching:  
from "APARTMENT-TEST- to APARTMENT-TEST (now without - at the end)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/f/0f20b09e2237820b3f1fbdeffae7a2869e54ef60.png)

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [August 9, 2019, 7:58am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/7 "2019-08-09T07:58:36Z")

</div>

its also working, but i have changed the name of the group:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/6/c6e5e9770df1daf689f609f1368ff991b49f56e3.png)

---

<div class="post-metadata">

**Author:** ![tdobbs](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdobbs](https://forum.dynamobim.com/u/tdobbs)\
**Post date:** [August 12, 2019, 12:06am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/8 "2019-08-12T00:06:06Z")

</div>

What did you change the name of the Group too? Can you show me in the Revit interface your settings?

---

<div class="post-metadata">

**Author:** ![tdobbs](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdobbs](https://forum.dynamobim.com/u/tdobbs)\
**Post date:** [August 12, 2019, 1:29am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/9 "2019-08-12T01:29:39Z")

</div>

I think it has something to do with the levels and scaling…  
I copied the rooms down to the Datum and it works, but when I try and run the script for upper levels (L39) for example, it does not work. Is there some setting in dynamo I need to adjust so that the script works? I have tried changing the geometry scaling to the highest setting:

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

But it still does not work.

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [August 12, 2019, 6:00am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/10 "2019-08-12T06:00:16Z")

</div>

Dont remember the string, but there was only one group in your file…so i collected the data from this group.  
Don’t think your problem has something to do with Geometry Working Range.

---

<div class="post-metadata">

**Author:** ![tdobbs](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@tdobbs](https://forum.dynamobim.com/u/tdobbs)\
**Post date:** [August 12, 2019, 6:20am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/11 "2019-08-12T06:20:56Z")

</div>

I copied the groups to the datum and it works but when I start changing where they sit in the levels, it works for some of the groups and not others. It is very strange. If you try making a group and then try changing the height (Level 07 compared with L39) do you get an error?  
It is driving me bananas

---

<div class="post-metadata">

**Author:** ![Fiesta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fiesta/32/31914_2.png) [@Fiesta](https://forum.dynamobim.com/u/Fiesta)\
**Post date:** [August 12, 2019, 7:24am UTC](https://forum.dynamobim.com/t/polycurve-byjoinedcurve-operation-failed/39301/12 "2019-08-12T07:24:10Z")

</div>

If i only copy paste the group to another level it works.  
If i change the offset height of that new group, the script can’t find the FinishBoundary. The result is an empty list. Like in your first picture.  
So …the problem is the Room.FinishBoundary node.  
I think this nodes needs the right “height of caluclation”. So if your group offset from level is 1m…you need to set the calculation height of the level to 1m.
