[Feature Request] [Draft] [UI/UX] Allow to turn dimension arrows on/off individually (#11941)

* Update additional files

* The LineColor and LineWidth properties are removed from Text objects.
* Arrow properties are added by the ViewProviderDraftAnnotation class only. This avoids code duplication.

* gui_annotationstyleeditor.py fix except

* view_draft_annotation.py fix except

---------

Co-authored-by: Roy-043 <info@b-k-g.nl>
Co-authored-by: Roy-043 <70520633+Roy-043@users.noreply.github.com>
This commit is contained in:
Vincenzo Calligaro
2025-08-14 10:44:49 +02:00
committed by GitHub
parent 0eb155ebc9
commit 439cb2122e
20 changed files with 838 additions and 364 deletions

View File

@@ -61,6 +61,7 @@ class BIM_Leader(gui_lines.Line):
rot, sup, pts, fil = self.getStrings()
base = DraftVecUtils.toString(self.node[0])
color = params.get_param("DefaultTextColor") | 0x000000FF
arrow = params.get_param("dimsymbolend")
cmd_list = [
"pl = FreeCAD.Placement()",
"pl.Rotation.Q = " + rot,
@@ -68,7 +69,7 @@ class BIM_Leader(gui_lines.Line):
"points = " + pts,
"leader = Draft.make_wire(points, placement=pl)",
"leader.ViewObject.LineColor = " + str(color),
"leader.ViewObject.EndArrow = True",
"leader.ViewObject.ArrowTypeEnd = " + str(arrow),
"Draft.autogroup(leader)",
"FreeCAD.ActiveDocument.recompute()",
]