# Line center point

**URL:** <https://forum.dynamobim.com/t/line-center-point/94633>\
**Category:** Uncategorized\
**Created:** [October 17, 2023, 10:59am UTC](https://forum.dynamobim.com/t/line-center-point/94633 "2023-10-17T10:59:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrej](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andrej/32/172909_2.png) [@Andrej](https://forum.dynamobim.com/u/Andrej)\
**Post date:** [October 17, 2023, 10:59am UTC](https://forum.dynamobim.com/t/line-center-point/94633/1 "2023-10-17T10:59:00Z")

</div>

How can I get the midpoint of a line?

---

<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:** [October 17, 2023, 11:00am UTC](https://forum.dynamobim.com/t/line-center-point/94633/2 "2023-10-17T11:00:40Z")

</div>

Hi @Andrej try curve point at parameter with parameter 0.5

---

<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:** [October 17, 2023, 1:11pm UTC](https://forum.dynamobim.com/t/line-center-point/94633/3 "2023-10-17T13:11:16Z")

</div>

Note: this will work for uniform curves, but some curves (non-uniform ones) it will not be correct. `Curve.PointAtSegmentLength(crv, crv.Length/2);` should work in all cases, but will be an order of magnitude slower (granted 0.01ms to 0.1ms isn’t really perceptible until you have 10000 curves, at which point you’ll be slowed down by other aspects of the code…
