Assembly 3 - modify/edit or delete/replace constraint? (solved)

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Assembly 3 - modify/edit or delete/replace constraint? (solved)

Post by bambuko »

I have an assembly with a constraint that caused it to be assembled not as intended.
Can I modify/edit the constraint and elements to change the assembly design?
or...
is the best way to delete offending constraint and elements and create it again?

I know I can do the latter, but would it be preferable to edit rather than re-create?

Plus deleting constraint doesn't delete elements used originally - I am ending up in confusing mess ;) (my fault I guess)

modify_constraint.jpg
modify_constraint.jpg (123.11 KiB) Viewed 1730 times
correct_assy.jpg
correct_assy.jpg (261.31 KiB) Viewed 1730 times
modify_element.jpg
modify_element.jpg (255.28 KiB) Viewed 1730 times
Last edited by bambuko on Wed Apr 14, 2021 4:16 pm, edited 2 times in total.
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly - modify/edit or delete/replace constraint?

Post by jpg87 »

bambuko wrote: Mon Apr 12, 2021 4:31 pm Can I modify/edit the constraint and elements to change the assembly design?
Hello !
It is possible to replace the constraint element El @ As_crosshead_pin of crosshead_pin by the constraint element El2 @ As_crosshead_pin by dragging and dropping the last one onto that of the connection to be modified.
replace constraint.jpg
replace constraint.jpg (140.81 KiB) Viewed 1704 times


If the necessary constraint element has been forgotten, it is possible to add it. For it :
- activate the smallest sub-assembly containing the component by double clicking on its name in the tree (the ones I noted As _...) ;
- click on the geometric entity which must become a new constraint element available for this component ;
- in the tree, drag and drop from the highlighted function to the "Elements" group.
add constraint.jpg
add constraint.jpg (150.27 KiB) Viewed 1704 times


Advice: act at the level of the constraint elements of the basic assembly containing only the part and not at the level of the group of elements of the sub-assembly (Elements018) : the update will be done automatically.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly - modify/edit or delete/replace constraint?

Post by bambuko »

jpg87 wrote: Mon Apr 12, 2021 7:00 pm ...It is possible to replace the constraint element ... by dragging and dropping...
Thank you again :!:

I have spent almost all day :lol: looking for a menu option to perform this kind of operation and it never ocurred to me to try "dragging and dropping".
Should have known that RealThunder would do things his own way :mrgreen:

That's great news and very good exercise to practice my understanding of elements.
Thank you for detailed explanation and advice.

I must admit that I am a bit concerned about keeping order to all these elements, particularly in a more complicated model.
I can already see me having multiple copies of the same elements and loosing track of what is where and what is what ;)

After all the design you have been helping me with, is rather simplified compared to the full model (I tried to keep it simple to make learning easier), and even these is complicated enough...
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly - modify/edit or delete/replace constraint? (solved)

Post by jpg87 »

bambuko wrote: Mon Apr 12, 2021 8:25 pm...
PS:
Several modifications must be added:
First of all remove the constraint "PlaneAlignmentV_AxleBox-CrossHead (whith offset)" that I had used to position the piston mechanism.
supp constraint.jpg
supp constraint.jpg (203.79 KiB) Viewed 1671 times


Then change the constraint type for AxialAlignment_ConnRod-Piston to PlaneAlignment_ConnRod-Piston (rename the constraint after change of type).
change constraint.jpg
change constraint.jpg (200.37 KiB) Viewed 1671 times

Finally replace the constraint element El2 @ sub-Ass_piston by the element El @ As_crosshead_pin.
replace constraint2.jpg
replace constraint2.jpg (151.08 KiB) Viewed 1671 times

Recalculate the assembly.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly - modify/edit or delete/replace constraint? (solved)

Post by bambuko »

jpg87 wrote: Mon Apr 12, 2021 8:47 pm ...
change constraint.jpg
change constraint.jpg (200.37 KiB) Viewed 1667 times
That is a particularly useful piece of advice :!:
Until now if I got the wrong constraint I would delete it and try again.
Now I know you can simply change it as well :ugeek:

I hope all this great stuff finds it's way to your grand Assembly 3 tutorial ;)

I love the way Assembly 3 works :!:
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly - modify/edit or delete/replace constraint? (solved)

Post by jpg87 »

bambuko wrote: Mon Apr 12, 2021 9:04 pm I hope all this great stuff finds it's way to your grand Assembly 3 tutorial
That was my intention. There it's done :
http://help-freecad-jpg87.fr/0270_ass_FAQ.php

I also want to take my basic example to upgrade it to version 0.11 of Asm 3.


bambuko wrote: Mon Apr 12, 2021 9:04 pm I love the way Assembly 3 works
Me too: I find it full of tips.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly - modify/edit or delete/replace constraint? (solved)

Post by bambuko »

jpg87 wrote: Tue Apr 13, 2021 6:34 pm ...There it's done :
http://help-freecad-jpg87.fr/0270_ass_FAQ.php
Excellent! and how fast :ugeek:
I am much slower... and distracted easily ;)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
LHC
Posts: 321
Joined: Thu Sep 17, 2020 4:21 pm
Location: Canadian Coffee Shop

Re: Assembly - modify/edit or delete/replace constraint? (solved)

Post by LHC »

bambuko wrote: Wed Apr 14, 2021 8:30 am
jpg87 wrote: Tue Apr 13, 2021 6:34 pm ...There it's done :
http://help-freecad-jpg87.fr/0270_ass_FAQ.php
Excellent! and how fast :ugeek:
I am much slower... and distracted easily ;)
I just went through this as well - thanks very much. I've picked up a few more tips as a result, and will have to review a couple more times before a few things stick in my head.
Cheers
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly 3 - modify/edit or delete/replace constraint? (solved)

Post by jpg87 »

bambuko wrote: Wed Apr 14, 2021 8:30 am...
LHC wrote: Wed Apr 14, 2021 12:57 pm...
Thank you for your support.
I have started updating the web pages for my basic example and will try to find time to update the affected videos.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
Post Reply