About hunting down under-constained items in a sketch?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Post Reply
Darktrax
Posts: 66
Joined: Sun Oct 19, 2014 11:33 am

About hunting down under-constained items in a sketch?

Post by Darktrax »

My version of FreeCAD is 0.20.2 running on a LinuxMint.
I know finding missing constraints is a common problem, and I would think there must have been lots of previous posts on this, but alas, the search bar won't oblige because the words "constrained", or "under constrained" are too common. I have now spent some time trying regular search engines, but not yet discovered a way short of undoing 37 elements one by one. Assume obvious stuff like trying to move parts of the sketch has been tried

The "Under constrained 2 DoF(s)" message in blue is a bit hampered when the last bits of sketch that would be unhappy cannot be made obvious.

It would be great if one could click on the blue text in the Solver messages panel, and have the associated parts of the sketch highlight blink in response, or perhaps some other way to catch the eye. I am not so expert at FreeCAD, so if there is some trick I have missed, then I would be grateful to find it out.
User avatar
NewJoker
Veteran
Posts: 2331
Joined: Sun Oct 11, 2020 7:49 pm

Re: About hunting down under-constained items in a sketch?

Post by NewJoker »

You can use Sketcher SelectElementsWithDoFs but usually the easiest way is to just drag the geometry in the sketch and see which parts of it can still move and in what ways.
chrisb
Veteran
Posts: 51068
Joined: Tue Mar 17, 2015 9:14 am

Re: About hunting down under-constained items in a sketch?

Post by chrisb »

Darktrax wrote: Mon Sep 18, 2023 10:02 pm It would be great if one could click on the blue text in the Solver messages panel, and have the associated parts of the sketch highlight blink in response, or perhaps some other way to catch the eye. I am not so expert at FreeCAD, so if there is some trick I have missed, then I would be grateful to find it out.
It's all there. The not yet fully constrained elements are shown in white while the others are pale green.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
obelisk79
Posts: 741
Joined: Thu Sep 24, 2020 9:01 pm

Re: About hunting down under-constained items in a sketch?

Post by obelisk79 »

Perhaps you'll find this of use?
https://wiki.freecad.org/Macro_Shake_Sketch
Post Reply