Sketcher: Polyline rework.#29336
Conversation
for more information, see https://pre-commit.ci
|
can you post a demonstration video of the features? edit: https://www.youtube.com/watch?v=18WdpAEWxRg < is this it? |
|
Yes this is the video |
|
CI failed and I keep getting these warnings after starting FreeCAD compile with this PR:
|
So the new polyline is available only if the line grouping preference is enabled?
This is even better for me. But I know that some users don't like autoconstraints. How about a preference to disable them? #21761 |
Yes current code is like this. |
Hmm CI failure is probably unrelated because it doesn't make sense. I don't know what is this warning about pixmap I don't think I used scaled there. The PR was opened at 5:38 so during the merge meeting so maybe I rebased on main at the wrong time. |
Sounds good. But perhaps not in this huge PR |
|
Thanks @FEA-eng I fixed it |
|
Let's see. The bug where the line changes length, I remember the line tool had the same regresion following earlier OVP changes. |
|
Indeed that regression has been fixed by #24904 |
|
It appears to be fixed |
for more information, see https://pre-commit.ci
|
Can you please describe precise reproduction steps for the additional spinbox? I can't seem to reproduce it now. |
|
I got to work with this earlier today after building it locally, and I have to say this imo offers a very noteworthy UX improvement to this tool. I hope we can nest the regular line tool under this one on the toolbar like we did with the new coincident constraint tool in the very near future. These changes make polyline a far superior tool in the overwhelming majority of cases where lines and arcs will be needed. Well done @PaddleStroke ! |
maxwxyz
left a comment
There was a problem hiding this comment.
Merge after these changes
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
|
@maxwxyz your changes are commited |
Document the new reworked Polyline tool with OVP support and autoconstraints. Source: FreeCAD/FreeCAD#29336 Refs: FreeCAD/FreeCAD#12462
|
I might be missing something, but I think “R undoes the last point” does not seem to do anything. M for mode works (well, only after the first line, I cannot start with an arc, but that makes sense). F for fillet works only before I start drawing (but I can still click on that option, and it works as expected). R does not. |
|
Can conform @PaddleStroke FYI |
|
Thanks for the feedback. Hmm it must have broke during the various fixes we did in this PR. Let me check this. |
|
This is not specific to the polyline tool. All the tools are affected: shortcuts do not work (example rectangle tool U and J). |



This PR adds a new command Sketcher_CreatePolyline2
Why? Because I am sure many people will yell murder if their polyline tool is removed and I don't want to deal with it.
So this PR is not touching the existing tool and adds another tool. In the toolbar, we are replacing the command in the line command group. The individual command remain untouched.
This PR also adds autoconstraints such as tangent, parallel and perpendicular.
Fix #12462