# Why does PolyCurve.Fillet fail

**URL:** <https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874>\
**Category:** Uncategorized\
**Tags:** revit, dynamo\
**Created:** [February 4, 2026, 6:45am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874 "2026-02-04T06:45:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 6:45am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/1 "2026-02-04T06:45:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/b/8bb2a1eb4c7d16b18c0497dcac838cbb463a8c8b.png)

its completely random  
sometimes it works and sometimes it doesn’t

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 7:20am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/2 "2026-02-04T07:20:51Z")

</div>

Hello @gosayi2789 Welcome to the community! 😉 you can try something here and see if it could be better…

 ![Skærmbillede 2026-02-04 082215](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/2/42944151c94ba19bb55e9c62bd09c3283d473f31.jpeg)

[test fillet.dyn](https://forum.dynamobim.com/uploads/short-url/szpZhsjK0GVmpzHm1qdfUffY1fh.dyn) (13.2 KB)

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 7:30am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/3 "2026-02-04T07:30:15Z")

</div>

PS spring package should have one there could work as well written in designscript but basically do the same as the python

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:07am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/4 "2026-02-04T08:07:14Z")

</div>

thanks for reply it worked but as i dont know python, i would prefere a node rather than a python script  
but i couldnt find the node form springs, may you provide the full name  
thanks

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 8:14am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/5 "2026-02-04T08:14:01Z")

</div>

great…guess the name is something like fillet+ but cant remember i dont use spring in the moment…but you could just create a dyf custom node with shared python…almost the same

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:29am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/6 "2026-02-04T08:29:12Z")

</div>

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

ye ty found it  
but for some reason it fails to work and gives null  
curves are much larger than the radius iam giving

---

<div class="post-metadata">

**Author:** ![willyoungMF8K3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willyoungmf8k3/32/201327_2.png) [@willyoungMF8K3](https://forum.dynamobim.com/u/willyoungMF8K3)\
**Post date:** [February 4, 2026, 8:30am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/7 "2026-02-04T08:30:06Z")

</div>

You can connect 2 polycurve.fillet nodes to the output of polycurve by grouped curves, one with clockwise\_corners set to false and one left with no input (default value is true)

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

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 8:31am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/8 "2026-02-04T08:31:21Z")

</div>

if i remember that one is written in ds script try copy that codeblock to canvas and see if it give some warnings

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:36am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/9 "2026-02-04T08:36:12Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/4/b426707ece060d0cb929c251c2a5dd5757f39a78.png) ye it gives warnings while the ootb node works here

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:36am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/10 "2026-02-04T08:36:58Z")

</div>

i believe thats what i did in the picture above  
but it acts weird  
sometimes it works and sometimes it doesnt

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 8:38am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/11 "2026-02-04T08:38:28Z")

</div>

allright as mention i dont use spring i have just tried create my own with python just for practice ;)…and until now it seems very stable…

---

<div class="post-metadata">

**Author:** ![willyoungMF8K3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willyoungmf8k3/32/201327_2.png) [@willyoungMF8K3](https://forum.dynamobim.com/u/willyoungMF8K3)\
**Post date:** [February 4, 2026, 8:39am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/12 "2026-02-04T08:39:32Z")

</div>

The ‘clockwise\_corners’ input needs to be boolean or just type false in a code block.

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

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:41am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/13 "2026-02-04T08:41:57Z")

</div>

i just tried it on revit 2024 and it worked. on 2025 it didnt

iam sticking with the python script for now  
thanks

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 8:44am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/14 "2026-02-04T08:44:55Z")

</div>

allright…could you share this codeblock here ?

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:46am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/16 "2026-02-04T08:46:41Z")

</div>

c = pc.Curves();  
isClosed = pc.IsClosed;  
shift = isClosed ? 1 : 0;  
c0 = DSCore.List.ShiftIndices(c, shift);  
drop = isClosed ? 0 : 1;  
c0f = DSCore.List.DropItems(c0, drop);  
a1 = Arc.ByFillet(c, c0f, r);  
p1 = a1.StartPoint;  
shift1 = isClosed ? -1 : 1;  
p2 = DSCore.List.ShiftIndices(a1.EndPoint, shift1);  
par1 = c.ParameterAtPoint(p1);  
par2 = c.ParameterAtPoint(p2);  
par1f = isClosed ? par1 : par2;  
par2f = isClosed ? par2 : par1;  
par1f[0] = isClosed ? par1f[0] : 0;  
c1 = c.TrimByParameter(par1f, par2f);  
c2 = [Imperative]{  
if (isClosed)  
{  
return = PolyCurve.ByJoinedCurves(Flatten(  
List.Transpose([c1, a1]) ) );  
}  
else  
{  
parE = c[-1].ParameterAtPoint(p2[0]);  
cE = c[-1].TrimByParameter(parE,1);  
return = PolyCurve.ByJoinedCurves(Flatten(  
[List.Transpose([c1, a1]), cE]) );  
}  
};

---

<div class="post-metadata">

**Author:** ![gosayi2789](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@gosayi2789](https://forum.dynamobim.com/u/gosayi2789)\
**Post date:** [February 4, 2026, 8:47am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/17 "2026-02-04T08:47:11Z")

</div>

i believe 0 in a code block is considered like a false boolean

---

<div class="post-metadata">

**Author:** ![willyoungMF8K3](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/willyoungmf8k3/32/201327_2.png) [@willyoungMF8K3](https://forum.dynamobim.com/u/willyoungMF8K3)\
**Post date:** [February 4, 2026, 8:55am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/18 "2026-02-04T08:55:49Z")

</div>

Check the warning, it should say that 0 is an integer

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

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [February 4, 2026, 8:58am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/19 "2026-02-04T08:58:56Z")

</div>

cheers works great here you probably have some issues with names try DSCore. or Autodesk. Autodesk.DesignScipt. before polycurve by joined curves… try as here and see if it could be better 😉 i canr really test here as it works here without…

 ![Skærmbillede 2026-02-04 095633](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/6/1648634c9d8857c254c76158d8dbf093e199e34b.jpeg)  
[fillet.dyn](https://forum.dynamobim.com/uploads/short-url/eZnbR1VSOUZUlZ3TpTfmhTLWyzO.dyn) (15.1 KB)

---

<div class="post-metadata">

**Author:** ![Mike.Buttery](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@Mike.Buttery](https://forum.dynamobim.com/u/Mike.Buttery)\
**Post date:** [February 4, 2026, 9:47am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/20 "2026-02-04T09:47:43Z")

</div>

Design script is your friend here - Here is a clean way based on original idea of chaining the fillet function

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0e7144b60c14f0a2c78eb13f27d56e3e3811b677.png)  
Edit: Since DesignScript is object oriented you can also do something like this

```DesignScript
PCF = PolyCurve.Fillet;
PCF(PCF(polyCurve, radius, true), radius, false);

```

---

<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:** [February 4, 2026, 9:56am UTC](https://forum.dynamobim.com/t/why-does-polycurve-fillet-fail/113874/21 "2026-02-04T09:56:25Z")

</div>

> [@gosayi2789](#):
>
> 0 in a code block is considered like a false boolean

You aren’t passing the 0 in a code block, but returning from the code block a 0 and then passing that into a Boolean.

Usually when I have studied why filler fails it has always come down to not being able to fit the fillet as one of the tangent points falls before the start of the curve.
