New tool request to place lines/entities at equal distances

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

New tool request to place lines/entities at equal distances

Post by Clive » Mon Jan 04, 2016 11:10 am

I just want to get some feedback about this request first.

Would it be possible to have a tool similar to the 'points along a line' tool, where for example a 4mm line could be placed evenly a given number of times along another line of say 100mm in length?

Or maybe an additional option with the paste along entity tool - like place evenly?

User avatar
andrew
Site Admin
Posts: 9019
Joined: Fri Mar 30, 2007 6:07 am

Re: New tool request to place lines/entities at equal distan

Post by andrew » Mon Jan 04, 2016 11:19 am

If I understand this correctly, what you are missing in the Edit > Paste along Entity tool is an option to only paste N instances, instead of creating enough instances to 'fill' the whole entity, correct?

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: New tool request to place lines/entities at equal distan

Post by Clive » Mon Jan 04, 2016 12:17 pm

andrew wrote:If I understand this correctly, what you are missing in the Edit > Paste along Entity tool is an option to only paste N instances, instead of creating enough instances to 'fill' the whole entity, correct?
I thinks so yes, could you give me a quick example so that I can verify Yes or No please Andrew.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4931
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: New tool request to place lines/entities at equal distan

Post by Husky » Mon Jan 04, 2016 9:24 pm

Hi Clive,

do you need something like this?

Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: New tool request to place lines/entities at equal distan

Post by Clive » Tue Jan 05, 2016 9:56 am

Husky wrote:Hi Clive,do you need something like this?
Nearly , try pasting a line 3mm long horizontally along another horizontal line of 80mm long.

The result I'm looking for needs to be that the 3mm line is pasted along the 80mm line evenly and with even spaces in between!

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4931
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: New tool request to place lines/entities at equal distan

Post by Husky » Tue Jan 05, 2016 9:21 pm

Clive wrote:
Husky wrote:Hi Clive,do you need something like this?
Nearly , try pasting a line 3mm long horizontally along another horizontal line of 80mm long.

The result I'm looking for needs to be that the 3mm line is pasted along the 80mm line evenly and with even spaces in between!
Husky-2016.01.05-03.png
Husky-2016.01.05-03.png (5.37 KiB) Viewed 21828 times
Ok, understood and I don't see any easy solution (without a manual calculation) to complete this task within QCAD.
And yes, would be nice to have a tool for this ... I could use it too ... :wink:

May I ask you for what do you need this?
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

User avatar
Clive
Moderator
Posts: 1329
Joined: Thu Aug 25, 2011 9:28 pm
Location: UK

Re: New tool request to place lines/entities at equal distan

Post by Clive » Wed Jan 06, 2016 12:25 pm

Thank you Andrew and Husky for your feedback on this, I have added a feature request here:

http://www.qcad.org/bugtracker/index.ph ... sk_id=1345

CVH
Premier Member
Posts: 3364
Joined: Wed Sep 27, 2017 4:17 pm

Re: New tool request to place lines/entities at equal distances

Post by CVH » Sun Oct 30, 2022 8:08 am

All,
PE now includes an option to repeat N times.

The feature request is still open, can't really say this is solved.
With the 80 and 10x3 example a little math tells us that the gap should be (80-(3x10))/9 = 5.555...
The repetitive nature is then 8.555...
A value one can only enter with '77/9' literal. :wink:

Using Copy the middle point of the short segment is the reference.
Using Copy with reference that can be selected by the user.
Not including endpoints the 3mm segments are spaced 4.272727..., the begin and end gap depend on the reference point.
Including endpoints the extend would always be 83.

All because we are working with positions and a point has no size.
This could be solved regarding the size of the items to paste.
A bounding box would work out and that only for pasting on a straight line. :roll:
Some calculation or manual adaption of the base entity by the user is still required. :(

The tool always starts at the beginning of the base entity.
On a closed periodic spline it is hard to tell where that starts.
On a geometrically or logically closed polyline start-end is always included.
It would be nice if that started at the indicated side on an open form.

I included this post in a comment.
Should we request to close FS#1345 or not?

Regards,
CVH

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4931
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: New tool request to place lines/entities at equal distances

Post by Husky » Mon Oct 31, 2022 1:53 am

CVH wrote:
Sun Oct 30, 2022 8:08 am
With the 80 and 10x3 example a little math tells us that the gap should be (80-(3x10))/9 = 5.555...
The repetitive nature is then 8.555...
A value one can only enter with '77/9' literal. :wink:
Why did you stop halfway through the solution?
CVH wrote:
Sun Oct 30, 2022 8:08 am
Some calculation or manual adaption of the base entity by the user is still required. :(
Nobody holds you back ...

Draw a horizontal line of 80 mm, place on it at the left end a 3 mm line, select the 3 mm line, launch Move/Copy, Reference left end of the 3 mm, 9 copy's, Target point relative at @(80-(3*10))/9+3,0 = task accomplished!

Husky-2022.10.30-03.png
Husky-2022.10.30-03.png (9.01 KiB) Viewed 11805 times
CVH wrote:
Sun Oct 30, 2022 8:08 am
Should we request to close FS#1345 or not?
No. Clive has ask for it in 2016 and It is still not implemented. Even if there is an alternative solution I support the request because it would make such a task much easier!
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

CVH
Premier Member
Posts: 3364
Joined: Wed Sep 27, 2017 4:17 pm

Re: New tool request to place lines/entities at equal distances

Post by CVH » Mon Oct 31, 2022 6:35 am

Husky,

I think our solutions are just the same. :wink:
The repetitive nature is 8.555... or '77/9' to be exact.

I wrote FlexPainter to do that dynamically but the catch is that the size of the painterset is a known value.
On top, paintersets are defined in such a way that it will work out on any line art as base.
Even then I took the easy road out, FlexPainter will scale all by a factor to make it fit N+1 times with N being not just enough.

Consider the same example with a horizontal bar and an angled base line, an arc and so on.
Or consider a group of entities to paste. And for this a block reference is merely a point.
Just saying that the given example is a very easy one to solve by a tool.

What is missing in this story is the length of the item (items) to paste.

Let us be constructive.
Assuming that the horizontal size is the length in question.
The repetitive nature is then our simple math.

Would that satisfy the needs?
True, not aligned on an angled base that would give a weird result and the used length of a vertical bar is zero.

Regards,
CVH

Post Reply

Return to “QCAD Suggestions and Feedback”