# How to divide a line into multiple points - Picture included

Point [A] to point [A3] is 15 cm and I divided the lines by 7 manually but is there a quicker way to divide it at once.

Appreciate the help

2 Likes

Hi @Khulud, welcome to Seamly!

Unfortunately at this time you have to place each point manually. You didnâ€™t say what formulae you used to do it, but the easiest way is probably `CurrentLength*1/7`, `CurrentLength*2/7`, etcâ€¦

There are plans to make a â€śButtonhole Toolâ€ť which would place multiple points at equal distances along a line, but other improvements have taken priority at this time.

2 Likes

Oh, thank you for letting me know and for the method!! Very helpful. I didnâ€™t use it, I was adding 2.14cm from every new point

2 Likes

Ouch! My brainâ€™s cramping just thinking about it! The `Point at Distance along Line` tool is the obvious choice here, but Iâ€™ve found that itâ€™s handier to use the `Midpoint between 2 Points` tool, & change the `/2` to whatever division Iâ€™m actually wanting, (that way `CurrentLength` is already in the formula, so I donâ€™t have to type it out.)

huh. Come to think of it, it might even be simpler to use `/7*2` than `*2/7`, â€”if one isnâ€™t too attached to classic fractions.

1 Like

Haha yeah I as very long XD thanks again for all the methods very handy. Hopefully, it becomes automatic in the near future!

2 Likes

Along that linesâ€¦ what I envision is creating a new tool or more likely replacing the Midpoint, where the tool takes point 1 and point 2 and the number of divisions and creates the point(s). In the case of the â€śmidpointâ€ť one would just enter 2. This tool would be be the basis for a buttonhole tool, which would further modify the created points.

That being saidâ€¦ unfortunately my priority right now is trying to rebuild everything Iâ€™ve been working on due to a fatal (external) hard drive failure - it fell off the coffee table when I moved the laptop while compilingâ€¦ and of course thereâ€™s no backup.

On the bright sideâ€¦ I can probably make improvements on what I did, knowing what I know now.

2 Likes

Wishing you a speedy recovery

Personally, Iâ€™d like to keep this tool because sometimes, I just need 1 point at 1/3 of the way along a line and I donâ€™t have to go into the formulas to find the CurrentLength or to type it all out. But thatâ€™s me, very lazy

1 Like

Agreed. However, since the Midpoint & Along Line tools are both the `alongLine` tool at this time, I think that maybe we could have the Along Line tool presenting the dialog with `CurrentLength`, as the Midpoint tool does currently.

1 Like

Very good idea

Well, like I said, I can make sone of the code better with a fresh start. Thing is I should have known better than to not have a backup. When working on video or audio projects I generally work on my desktop with a RAID drive, where if one drive fails I have a backup and can replace the bad drive. Worst part is, I figured Iâ€™d try (to fix?) the bad external drive in the desktop - which has been turned off for quite some time - and it too is not booting! No video output. ARGGGG.

Hmmmâ€¦ yes the Midpoint tool uses CurrentLength / 2â€¦ what Iâ€™m thinking is to extend the tool to make the â€ś2â€ť variable. Then based on the number of segments, loop and create segments - 1 number of points. The default could simply be 1 point at the midpoint.

BUTâ€¦ you may have point, where in edge cases where someone has hacked the formula to something like CurrentLength / 2.5 we would have to account for that. Maybe in cases line that would have to just convert the tool to Point along Line - for as @Pneumarian has pointed out the Midpoint tool is kinda of a Macro for the Point along Line.

1 Like