Sketcher: Angle constraint name not shown

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Syres
Veteran
Posts: 2898
Joined: Thu Aug 09, 2018 11:14 am

Re: Sketcher: Angle constraint name not shown

Post by Syres »

Olav
Posts: 211
Joined: Sun Nov 27, 2016 7:58 pm
Location: Netherlands

Re: Sketcher: Angle constraint name not shown

Post by Olav »

I thank all of you for your attention to this little bug, and for your efforts!
User avatar
doia
Posts: 251
Joined: Sat May 29, 2021 5:47 am
Location: Düsseldorf

Re: Sketcher: Angle constraint name not shown

Post by doia »

Syres wrote: Sat Oct 16, 2021 11:22 am Quick patch something such as https://github.com/FreeCAD/FreeCAD/comp ... 6:patch-33 ?
That should do the trick. Thanks for the patch 🙏 . Can you submit the PR, but maybe with a more descriptive name?
Syres
Veteran
Posts: 2898
Joined: Thu Aug 09, 2018 11:14 am

Re: Sketcher: Angle constraint name not shown

Post by Syres »

User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Sketcher: Angle constraint name not shown

Post by jnxd »

Issue fixed by @Syres916 in PR 5115. However, I'm gonna add a little feature request here: for small enough angles, the constraint text can get really crowded (see attached picture). If it would be possible to move the text outside of the two bars showing the angles, that would be great.
Note the limited space for the text "arc_angle_0 = 15"
Note the limited space for the text "arc_angle_0 = 15"
Screenshot at 2021-10-19 10-21-51.png (38.33 KiB) Viewed 1326 times
My latest (or last) project: B-spline Construction Project.
drmacro
Veteran
Posts: 8974
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sketcher: Angle constraint name not shown

Post by drmacro »

What commit is this in?

Doesn't appear to be in 26160...for any constraint.

OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.26160 (Git)
Build type: Release
Branch: master
Hash: cf1a0f759811ca1ffa71a2b122b12687d36826ae
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
Syres
Veteran
Posts: 2898
Joined: Thu Aug 09, 2018 11:14 am

Re: Sketcher: Angle constraint name not shown

Post by Syres »

drmacro wrote: Tue Oct 19, 2021 3:00 pm What commit is this in?

Doesn't appear to be in 26160...for any constraint.
PR hasn't been merged yet so @jnxd must have either manually tweaked the source locally or pulled the PR branch, it's only two lines to change for you to change it manually and recompile. On Windows 7 for the dimensional constraints to activate I have to close the Sketch and re-open but on Linux Mint 19.3 the change works with the sketch open but there's no way I'm classing that as an issue.
drmacro
Veteran
Posts: 8974
Joined: Sun Mar 02, 2014 4:35 pm

Re: Sketcher: Angle constraint name not shown

Post by drmacro »

Syres wrote: Tue Oct 19, 2021 3:20 pm
drmacro wrote: Tue Oct 19, 2021 3:00 pm What commit is this in?

Doesn't appear to be in 26160...for any constraint.
PR hasn't been merged yet so @jnxd must have either manually tweaked the source locally or pulled the PR branch, it's only two lines to change for you to change it manually and recompile. On Windows 7 for the dimensional constraints to activate I have to close the Sketch and re-open but on Linux Mint 19.3 the change works with the sketch open but there's no way I'm classing that as an issue.
Actually I did find the setting in Preferences. And is does work for everything but angles.

I build daily from git, so I can wait.
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
Shalmeneser
Veteran
Posts: 9545
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Sketcher: Angle constraint name not shown

Post by Shalmeneser »

jnxd wrote: Tue Oct 19, 2021 2:25 pm If it would be possible to move the text outside of the two bars showing the angles, that would be great.
+1
Post Reply