# How to Align length of single segments in polyline

**URL:** <https://discourse.mcneel.com/t/how-to-align-length-of-single-segments-in-polyline/77018>\
**Category:** Rhino for Windows\
**Created:** [January 7, 2019, 8:02am UTC](https://discourse.mcneel.com/t/how-to-align-length-of-single-segments-in-polyline/77018 "2019-01-07T08:02:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [January 30, 2019, 2:47am UTC](https://discourse.mcneel.com/t/how-to-align-length-of-single-segments-in-polyline/77018/4 "2019-01-30T02:47:01Z")

</div>

Hi Michal - I do not see a good way to do this with any guarantee that the shape will not change too much if the points are to be _moved_ but it seems reasonable to figure out a way to remove points to eliminate short segments - would that be OK?

@michal.sowa - see if this python helps at all -

[CullShortSegments.py](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/f/af0f5718aec2ad2118a4703492d1a97e93fe47df.py) (1.2 KB)

To use the Python script use `RunPythonScript`, or a macro:

`_-RunPythonScript "Full path to py file inside double-quotes"`

-Pascal

---

_[View the full topic](https://discourse.mcneel.com/t/how-to-align-length-of-single-segments-in-polyline/77018)._
