Awesome !!abdullah wrote: ↑Mon Mar 14, 2022 3:07 pm Because, I thought while typing, here you have the functionality. You just need to rebase your functionality in master (or cherry-pick that commit):
https://github.com/FreeCAD/FreeCAD/comm ... e98484dbf5
Offset is mostly done now by the way. It's not working yet for ellipse hyperbolas parabolas and bsplines but it's only a matter of adding them from the generated wires.
So I'll cherry pick your new commit and implement that in the rotate/scale/offset features. It should be much more stable with them.
By the way how is going the DSH refactoring? I have been thinking about snapping and I think it could be not too hard to integrate and would be integrated at DSH level (either if ctrl is pressed or if a toggle is activated).
For rotate/scale/offset I added a 'snapToPoint' function which basically override onSketchPos if a vertex is preselected. This way it's much better to make precise rotation/..
Thinking on this I think it would be fairly easy to extend that functionality to something more general. That would snap (override onSketchPost) not only to points but to lines (and their extensions) mid point of lines (where a symmetric auto-constraint would be great).