Assembly 3 Inconsistent Constraints
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 40
- Joined: Thu Oct 15, 2020 4:27 am
Assembly 3 Inconsistent Constraints
Hi... I'm running the FreeCAD_0.19.22894-Win-Conda_vc14.x-x86_64 build from the releases page.
I've been getting on pretty well with the Assembly 3 workbench, but I'm running into an issue that I can't quite figure out. Here's a short capture of what I'm seeing:
The base part is the 3-lobed, larger piece. There are 3 smaller pieces, each of which have holes with the same spacing as two of the holes (x3) in the base. I'm trying to use a pair of PlaneCoincident constraints to align each of the smaller pieces with the corresponding holes in the base. I almost always am able to get the first piece to align with the base properly... I add both PlaneCoincident constraints and when I click the solve button, the part snaps into the correct alignment. When I add the elements for the first hole in the second part, and click solve, I get the "inconsistent constraints" message. Even when I remove the two elements selected, and that last constraint, the model will never solve again until I remove all the constraints except for the "locked" constraint locking the base in place. I was able to get both the first and second pieces constrainted to the base 1 time, but I'm not sure what (if anything) I did differently in that case.
I've tried wrapping all of their parts in their own assemblies with named elements, and that made no difference.
This is driving me crazy. Hopefully it's just something silly that I'm doing?
I've been getting on pretty well with the Assembly 3 workbench, but I'm running into an issue that I can't quite figure out. Here's a short capture of what I'm seeing:
The base part is the 3-lobed, larger piece. There are 3 smaller pieces, each of which have holes with the same spacing as two of the holes (x3) in the base. I'm trying to use a pair of PlaneCoincident constraints to align each of the smaller pieces with the corresponding holes in the base. I almost always am able to get the first piece to align with the base properly... I add both PlaneCoincident constraints and when I click the solve button, the part snaps into the correct alignment. When I add the elements for the first hole in the second part, and click solve, I get the "inconsistent constraints" message. Even when I remove the two elements selected, and that last constraint, the model will never solve again until I remove all the constraints except for the "locked" constraint locking the base in place. I was able to get both the first and second pieces constrainted to the base 1 time, but I'm not sure what (if anything) I did differently in that case.
I've tried wrapping all of their parts in their own assemblies with named elements, and that made no difference.
This is driving me crazy. Hopefully it's just something silly that I'm doing?
Last edited by michaelquigley on Tue Nov 10, 2020 4:44 pm, edited 1 time in total.
-
- Posts: 40
- Joined: Thu Oct 15, 2020 4:27 am
Re: Assembly 3 Inconsistent Constraints
Did I post this in the wrong spot?
Anyone have any insight here at all? Is there more information I can provide that would help in diagnosing this?
Anyone have any insight here at all? Is there more information I can provide that would help in diagnosing this?
Re: Assembly 3 Inconsistent Constraints
I think realthunder doesn't check every new thread. But he is fine with being pinged most of the time.
Re: Assembly 3 Inconsistent Constraints
You could share your file(s). Thanks!michaelquigley wrote: ↑Tue Nov 10, 2020 4:43 pm [...] Is there more information I can provide that would help in diagnosing this?
Regards / Viele Grüße
Max
Max
-
- Posts: 40
- Joined: Thu Oct 15, 2020 4:27 am
Re: Assembly 3 Inconsistent Constraints
The files are attached...
tri_mount and tri_mount_interface are the two parts. assembly is the assembly with the first interface constrained to the base. assembly_broken is an example of when I try to constrain the next interface to the base, and end up getting the "inconsistent constraints" error.
I'm sure I'm doing something wrong. I'm just lost as to what!
Thank you for any help you can offer!
tri_mount and tri_mount_interface are the two parts. assembly is the assembly with the first interface constrained to the base. assembly_broken is an example of when I try to constrain the next interface to the base, and end up getting the "inconsistent constraints" error.
I'm sure I'm doing something wrong. I'm just lost as to what!
Thank you for any help you can offer!
- Attachments
-
- tri_mount_interface.FCStd
- (75.86 KiB) Downloaded 51 times
-
- tri_mount.FCStd
- (207.29 KiB) Downloaded 58 times
-
- assembly.FCStd
- (16.07 KiB) Downloaded 54 times
-
- assembly_broken.FCStd
- (19.49 KiB) Downloaded 33 times
Re: Assembly 3 Inconsistent Constraints
Hi,michaelquigley wrote: ↑Wed Nov 11, 2020 5:20 am I'm sure I'm doing something wrong. I'm just lost as to what!
I added the X axis which is the support of the holes as an element in tri_mount_interface.
(the distance between the 2 centers of the holes gives an over stress)
So a PlaneCoincident constraint plus a PointOnLine constraint suffice and are no longer superabundant.
Here are the files archived in 7z format.
- Attachments
-
- asm3Pb.7z
- (275.8 KiB) Downloaded 34 times
My website : http://help-freecad-jpg87.fr updated 2023/11/06
-
- Veteran
- Posts: 2190
- Joined: Tue Jan 03, 2017 10:55 am
Re: Assembly 3 Inconsistent Constraints
I took a quick look. It seems to be a bug. You can work around this by change the order of elements of the second plain coincident constraint. There is dedicated toolbar button for that.michaelquigley wrote: ↑Sun Nov 08, 2020 6:04 pm I've tried wrapping all of their parts in their own assemblies with named elements, and that made no difference.
This is driving me crazy. Hopefully it's just something silly that I'm doing?
Some explanation. More than one plane coincident constraint on the same pair of parts will definitely cause redundant constraints. asm3 will normally detect that and reduce the second constraint to a 2D point horizontal/vertical constraint. I am not sure why it didn't work in your case. I'll fix that later.
-
- Posts: 40
- Joined: Thu Oct 15, 2020 4:27 am
Re: Assembly 3 Inconsistent Constraints
Interesting! And that aligns with realthunder's analysis below, also.jpg87 wrote: ↑Wed Nov 11, 2020 10:38 am I added the X axis which is the support of the holes as an element in tri_mount_interface.
(the distance between the 2 centers of the holes gives an over stress)
So a PlaneCoincident constraint plus a PointOnLine constraint suffice and are no longer superabundant.
I have questions. I can see the elements and such in your version of the assembly file, and I get the high-level idea of it, but I don't actually understand what you've done. The first PlaneCoincident obviously causes the part to only be able to rotate around the Z axis of that first hole, and makes sure the planes of both circles are coincident. And I get that the the X_Axis line is locking the rotation onto the line between the two holes.
But how did you create that line element?
-
- Posts: 40
- Joined: Thu Oct 15, 2020 4:27 am
Re: Assembly 3 Inconsistent Constraints
Ok! So, at least I'm not crazy and I'm not necessarily doing something that I shouldn't be doing. I get that there may be other (and even potentially better) ways to constrain the relationships between these parts, but this approach should be working.realthunder wrote: ↑Wed Nov 11, 2020 12:43 pm I took a quick look. It seems to be a bug. You can work around this by change the order of elements of the second plain coincident constraint. There is dedicated toolbar button for that.
Some explanation. More than one plane coincident constraint on the same pair of parts will definitely cause redundant constraints. asm3 will normally detect that and reduce the second constraint to a 2D point horizontal/vertical constraint. I am not sure why it didn't work in your case. I'll fix that later.
Also, I'm running the "Conda" build for Windows off the releases page. Is this where your latest asm3 output ends up? Is there a better build that I should be running? (I just noticed the link in your signature to the nightly builds...)
Re: Assembly 3 Inconsistent Constraints
This is the X reference axis of the body of tri_mount_interface that I dragged into the elements group (I noticed in your 1st sketch that the centers of the two holes were on this axis) :
My website : http://help-freecad-jpg87.fr updated 2023/11/06