Yes, I would do that. But before I would like to iron out a few kinks that are still in the macro. For example, I found out that the calculation is not correct for generic Distance measures if the edges are not co-linear.
edit: this should be fixed now, it is working now for all kinds of distances (i tested )
[Macro] Snap Dimension lines to same length / re-center dimension
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [Macro] Snap Dimension lines to same length / re-center dimension
Push
Maybe the re-center part could be included into the Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.
Maybe the re-center part could be included into the Macro version 4.2 multilanguage: helper tools to improve TechDraw documents.
edi wrote: pinged by pinger macro
Regards / Viele Grüße
Max
Max
Re: [Macro] Snap Dimension lines to same length / re-center dimension
This tools are already existing in TechDrawTools.FCMacro. https://github.com/FreeCAD/FreeCAD-macr ... ls.FCMacro
Re: [Macro] Snap Dimension lines to same length / re-center dimension
The recentering of the dimension "number" on a dimension line itself? I thought you've said some days ago that's it's not implemented yet (I still have to answer to your question after having a deeper look.if I recall correctly).
Here it is: https://forum.freecadweb.org/viewtopic. ... 4&start=70
Here it is: https://forum.freecadweb.org/viewtopic. ... 4&start=70
edi wrote: ↑Mon Sep 20, 2021 3:39 pmIt is easy to realize this in python, but it will be difficult to handle it. Before manipulating any measure you have to select it. Only the measure value (number) can be selected. If you select it using the curser you usually move it a little bit (without aim). Therefore the positioning and cascading tools keep the position of the number. A solution could be to have an optional choice keep/center when using the position and cascade tools.
Regards / Viele Grüße
Max
Max