Assembly3 attaching with multiple holes

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
DaAwesomeP
Posts: 22
Joined: Mon Oct 10, 2016 3:15 am
Contact:

Assembly3 attaching with multiple holes

Post by DaAwesomeP »

Hello!

I am attempting to attach some parts to a grid of holes.

For the longer flat piece, I am able to do two AxialAlignments, but then a PlaneAlignment after that does not work. For the other pieces, I cannot do the two AxialAlignments. The Attach constrain does not align them properly.

How should I constrain them together?
attach.png
attach.png (153.85 KiB) Viewed 3073 times
File was too large to attach: https://drive.google.com/file/d/1bKerxE ... sp=sharing

Thanks!

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.528.24301 +3572 (Git)
Build type: Release
Branch: LinkStage3
Hash: 1578dc89cb181b96e75d9fb128d82b0ec1460291
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly3 attaching with multiple holes

Post by jpg87 »

DaAwesomeP wrote: Wed Jun 09, 2021 5:13 pm For the longer flat piece, I am able to do two AxialAlignments, but then a PlaneAlignment after that does not work. For the other pieces, I cannot do the two AxialAlignments. The Attach constrain does not align them properly.
Hello,
If I answer your question strictly, you must put the constraints that remove the desired DOFs with the minimum of redundancy.
For example instead of 2 AxialAlignment (which leave an axial displacement but with an over-constrained positioning), use a PlaneCoincident between 2 circles, then a SameOrientation between 2 edges which must remain parallel.

If you don't have a lot of experience with Assembly 3 and given the size of your project, I think you need to be more rigorous although it might seem overwhelming.

I suggest you visit my website http://help-freecad-jpg87.fr/02_ass_ind.php

Then if you have any problems, I can help you.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
DaAwesomeP
Posts: 22
Joined: Mon Oct 10, 2016 3:15 am
Contact:

Re: Assembly3 attaching with multiple holes

Post by DaAwesomeP »

jpg87 wrote: Wed Jun 09, 2021 7:52 pm For example instead of 2 AxialAlignment (which leave an axial displacement but with an over-constrained positioning), use a PlaneCoincident between 2 circles, then a SameOrientation between 2 edges which must remain parallel.
I tried that and the PlaneCoincident and SameOrientation work independently, but in combination I get an "inconsistent constraints" message and they do not align.

jpg87 wrote: Wed Jun 09, 2021 7:52 pm If you don't have a lot of experience with Assembly 3 and given the size of your project, I think you need to be more rigorous although it might seem overwhelming.

I suggest you visit my website http://help-freecad-jpg87.fr/02_ass_ind.php

Then if you have any problems, I can help you.
I will be sure to check it out now, thank you!
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly3 attaching with multiple holes

Post by jpg87 »

DaAwesomeP wrote: Thu Jun 10, 2021 2:22 pm I tried that and the PlaneCoincident and SameOrientation work independently, but in combination I get an "inconsistent constraints" message and they do not align.
Hello,
I tested on my end and I have the same problem which did not occur before. I used another approach and got this :

Asm3Rover.png
Asm3Rover.png (74.8 KiB) Viewed 2857 times

If this is what you are looking for, I will make my file available and give you all the explanations you want.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly3 attaching with multiple holes

Post by jpg87 »

DaAwesomeP wrote: Thu Jun 10, 2021 2:22 pm SameOrientation
After an exchange with Realthunder, I noticed that the SameOrientation constraint prohibited all rotations between the two constrained objects (3 DOFs remaining), whereas I mistakenly believed that only the normals were made parallel. On the other hand, the MultiParallel constraint renders well (and only) the normals to the designated planes (4 DOFs remaining).

And yet that doesn't seem to work either!

While waiting for Realthunder's response, I had used the Perpendicular constraint between two judiciously chosen surfaces, so I am forced to stay on this constraint for now.
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
DaAwesomeP
Posts: 22
Joined: Mon Oct 10, 2016 3:15 am
Contact:

Re: Assembly3 attaching with multiple holes

Post by DaAwesomeP »

Thank you for trying it all out! I wasn't sure if I was really doing something wrong or something wasn't working as intended because it kept getting over-constrained by constraints I didn't think would lock rotation or movement in a certain axis. I was able to get it to work (meticulously) by using other constrains. There were a few points where I got one piece lined up and just Locked it and removed its other constraints (as a temporary workaround).

https://drive.google.com/file/d/1w4lHAo ... sp=sharing

final1.png
final1.png (134.19 KiB) Viewed 2571 times
final1_constraints.png
final1_constraints.png (16.66 KiB) Viewed 2571 times
Post Reply