# Glitch with Curve point at segment length

**URL:** <https://forum.dynamobim.com/t/glitch-with-curve-point-at-segment-length/79549>\
**Category:** Uncategorized\
**Created:** [August 4, 2022, 6:37pm UTC](https://forum.dynamobim.com/t/glitch-with-curve-point-at-segment-length/79549 "2022-08-04T18:37:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [August 4, 2022, 6:37pm UTC](https://forum.dynamobim.com/t/glitch-with-curve-point-at-segment-length/79549/1 "2022-08-04T18:37:41Z")

</div>

I’d decided to re-write some code using maths formula instead of code blocks and I noticed a point was different…

So I looked further and I’ve found a strange glitch.

I have a line from the origin at an angle to the left (the important bit is it starts at the origin).

I’ve gone for Curve.Point at segment length and fed it 3 lengths.

When I did it with a formula I got a different X and Y coordinate (which after checking is correct).

This is what happens with my code blocks!

Look at index 2.

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

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [August 4, 2022, 7:04pm UTC](https://forum.dynamobim.com/t/glitch-with-curve-point-at-segment-length/79549/2 "2022-08-04T19:04:33Z")

</div>

Can you show the geometry and all the nodes in question (with previews pinned) so we can get a better look at this?

Also, can you reproduce it with other, similar scenarios?

---

<div class="post-metadata">

**Author:** ![Alien](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alien/32/40701_2.png) [@Alien](https://forum.dynamobim.com/u/Alien)\
**Post date:** [August 4, 2022, 7:11pm UTC](https://forum.dynamobim.com/t/glitch-with-curve-point-at-segment-length/79549/3 "2022-08-04T19:11:39Z")

</div>

I’ve just realised the error…

My line is 40 long…

Segment length can’t go past the endpoint. 🤪

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