Sketcher Constraints checkbox -- What does it do?

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!
garya
Posts: 221
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Sketcher Constraints checkbox -- What does it do?

Postby garya » Tue May 12, 2020 5:23 am

Can someone explain or point me to what the check-box to the left of each constraint in the Sketcher Constraints is for? I can't find it described anywhere.
Reynard1066
Posts: 26
Joined: Sun May 10, 2020 7:27 am
Location: Scotland

Re: Sketcher Constraints checkbox -- What does it do?

Postby Reynard1066 » Tue May 12, 2020 6:06 am

It turns on and off the visibility and selection of the constraint (in red). Sometimes a sketch can get very busy with constraints and selection of end points etc. can be difficult so you can hide the ones that are getting in the way.
garya
Posts: 221
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: Sketcher Constraints checkbox -- What does it do?

Postby garya » Tue May 12, 2020 2:49 pm

Ah, thanks. I thought it might do something like that or deactivate them but apparently it doesn't always work. For example, coincidence constraints aren't visible, and turning one off and on doesn't make it visible. That's unfortunate because it makes it difficult to identify which is which unless one renames them. I also have a case where sometimes only one of a constraint pair is made invisible, along with a different constraint; the internal tracking of which text goes with which constraint appears to be confused.
Anyway, thanks, that's a help.
OS: FreeBSD 11.3-RELEASE-p6
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.0.18.4
Build type: Release
Python version: 3.7.6
Qt version: 5.13.2
Coin version: 3.1.3
OCC version: 7.4.0.beta
Locale: C/Default (C)
chrisb
Posts: 25745
Joined: Tue Mar 17, 2015 9:14 am

Re: Sketcher Constraints checkbox -- What does it do?

Postby chrisb » Tue May 12, 2020 3:04 pm

garya wrote:
Tue May 12, 2020 2:49 pm
the internal tracking of which text goes with which constraint appears to be confused.
Do you hava an example for this?
garya
Posts: 221
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: Sketcher Constraints checkbox -- What does it do?

Postby garya » Tue May 12, 2020 4:07 pm

chrisb wrote:
Tue May 12, 2020 3:04 pm
Do you hava an example for this?
Yes, but it's rather complex. I will try to cut it down to something tolerable.
garya
Posts: 221
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: Sketcher Constraints checkbox -- What does it do?

Postby garya » Tue May 12, 2020 5:00 pm

In the attached file:

1. Open the sketch in Sketcher WB
2. Scroll down to constraint labelled "UpperGuideSlopLines"
3. Click on it and notice where the two constraint texts are
4. On the right hand constraint, note the "UprRtSlopInLineWithUprRtGuide" constraint label above it
5. Click the "UpperGuideSlopLines" check box to hide it
Result: The right hand constraint label disappears, but not the left; the additional constraint above it disappears
Bug_Sketch_6.FCStd
(13.31 KiB) Downloaded 4 times
OS: FreeBSD 11.3-RELEASE-p6
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.0.18.4
Build type: Release
Python version: 3.7.6
Qt version: 5.13.2
Coin version: 3.1.3
OCC version: 7.4.0.beta
Locale: C/Default (C)
vocx
Posts: 4634
Joined: Thu Oct 18, 2018 9:18 pm

Re: Sketcher Constraints checkbox -- What does it do?

Postby vocx » Tue May 12, 2020 5:59 pm

garya wrote:
Tue May 12, 2020 2:49 pm
Ah, thanks. I thought it might do something like that or deactivate them but apparently it doesn't always work...
Please note than in 0.19 there is a new tool to activate and deactivate constraints, Sketcher_ToggleActiveConstraint.
Always add the important information to your posts if you need help.
To support the documentation effort, and code development, your donation is appreciated: paypal.
kisolre
Posts: 2257
Joined: Wed Nov 21, 2018 1:13 pm

Re: Sketcher Constraints checkbox -- What does it do?

Postby kisolre » Tue May 12, 2020 7:29 pm

Constraints are not hidden. They are moved to another virtual space and you can switch between the two spaces so you can have two visual sets of constraints. Sketcher_SwitchVirtualSpace
garya
Posts: 221
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: Sketcher Constraints checkbox -- What does it do?

Postby garya » Wed May 13, 2020 12:13 am

vocx wrote:
Tue May 12, 2020 5:59 pm
Please note than in 0.19 there is a new tool to activate and deactivate constraints, Sketcher_ToggleActiveConstraint.
I noticed that in the docs, thanks.
kisolre wrote:
Tue May 12, 2020 7:29 pm
Constraints are not hidden. They are moved to another virtual space and you can switch between the two spaces so you can have two visual sets of constraints. Sketcher_SwitchVirtualSpace
Ah, thanks.
garya
Posts: 221
Joined: Tue Nov 20, 2018 1:00 am
Location: Ovando, MT, USA

Re: Sketcher Constraints checkbox -- What does it do?

Postby garya » Sat May 23, 2020 4:42 pm

@chrisb Don't know if this is helpful or not, but I've noticed the mismatch in constraint display seems to happen after I have deleted some pieces of a sketch and added new ones. Unfortunately, I haven't noticed exactly when it happens. But maybe something like deleting one arc, inserting a guide line, and then re-creating the arc. This might cause problems with constraints on straight lines that formerly connected to the ends of the deleted arc, even though those constraints were related to the line ends not connected to the arc.