# Domain reset of a closed polycurve

**URL:** <https://discourse.mcneel.com/t/domain-reset-of-a-closed-polycurve/96201>\
**Category:** Scripting\
**Created:** [February 10, 2020, 2:22pm UTC](https://discourse.mcneel.com/t/domain-reset-of-a-closed-polycurve/96201 "2020-02-10T14:22:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![massimo.grieco](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/massimo.grieco/32/463192_2.png) [@massimo.grieco](https://discourse.mcneel.com/u/massimo.grieco)\
**Post date:** [February 10, 2020, 2:22pm UTC](https://discourse.mcneel.com/t/domain-reset-of-a-closed-polycurve/96201/1 "2020-02-10T14:22:24Z")

</div>

Goodmorning everyone.  
I routinely use the curveseam command to move the junction point and manipulate the position of one or more points on a polycurve closed with the CurveLength function and the subdomain argument.  
Now I’m having problems in my script since the result of the returned length has different values ​​than the starting point. The polycurve in question is a square with a rounded corner. I tried to reparameterize the polycurve before running the process but I don’t get a domain reset with a value of 0 at its beginning. Anyone know if it can be solved by rhinoscripting ?. Thanks in advance for the suggestions.
