"synchronize" constraints

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!
Post Reply
remizik
Posts: 22
Joined: Wed Feb 06, 2019 1:29 pm

"synchronize" constraints

Post by remizik »

Hello,

I have those 2 constraints (4mm)

Image

I would like to be able to change both at the same time by changing 1 value only, like if there had an "equal" constraint between them.
Sorry if I'm not clear I'm still a noob with freecad

Thanks for your help :)
User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: "synchronize" constraints

Post by meme2704 »

Hi
there are several solutions:
you draw 2 lines of construction (in blue), constrain equal, and size a single
Attachments
egalité.PNG
egalité.PNG (9.7 KiB) Viewed 747 times
remizik
Posts: 22
Joined: Wed Feb 06, 2019 1:29 pm

Re: "synchronize" constraints

Post by remizik »

Thanks for your answer !

Since my part is a rectangle, I ended up using diagonals :)

Image

What do you think ?
Cheers
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: "synchronize" constraints

Post by openBrain »

remizik wrote: Wed Apr 10, 2019 11:27 am What do you think ?
I think that the 2 distances shown in your OP are equal only if your rectangle is actually a square. It doesn't work for a standard rectangle. ;)
User avatar
meme2704
Veteran
Posts: 2926
Joined: Sat Apr 01, 2017 2:47 pm
Location: Vosges

Re: "synchronize" constraints

Post by meme2704 »

there is one of the several other solutions
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: "synchronize" constraints

Post by DeepSOIC »

As long as both constraints are red, they can be tied with an expression (use f(x) blue button in value edit box, use something like Constraints.myLength). The constraint you refer to in an expression must have been given a name.

As of now, expressions involving blue constraints (reference dimensions) are not yet supported. Having support for them would give some awesome power, but it requires serious development effort. Your example features only red constraints, so it should work.
remizik
Posts: 22
Joined: Wed Feb 06, 2019 1:29 pm

Re: "synchronize" constraints

Post by remizik »

openBrain wrote: Wed Apr 10, 2019 11:58 am
remizik wrote: Wed Apr 10, 2019 11:27 am What do you think ?
I think that the 2 distances shown in your OP are equal only if your rectangle is actually a square. It doesn't work for a standard rectangle. ;)
indeed, i'm stupid.
gonna use the other way then, thanks
remizik
Posts: 22
Joined: Wed Feb 06, 2019 1:29 pm

Re: "synchronize" constraints

Post by remizik »

DeepSOIC wrote: Wed Apr 10, 2019 12:11 pm As long as both constraints are red, they can be tied with an expression (use f(x) blue button in value edit box, use something like Constraints.myLength). The constraint you refer to in an expression must have been given a name.

As of now, expressions involving blue constraints (reference dimensions) are not yet supported. Having support for them would give some awesome power, but it requires serious development effort. Your example features only red constraints, so it should work.
Thank you this is perfect ! <3
Post Reply