A2plus constraints have no effect, if both parts have the property fixed=true

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Flo
Posts: 3
Joined: Wed Feb 12, 2020 3:51 pm

A2plus constraints have no effect, if both parts have the property fixed=true

Post by Flo »

In order to make other people get something out of this post as quickly as possible, I editing the original post:

My problem occured because I wanted to connect two parts with constraints, which where both fixed.

Original post:

Hello people!
I assembled a closet from wood boards with A2plus.
Now I want to arrange two of the closets side by side in another assembly. I tried to achieve this with a coincident face constraint with zero offset between the two faces, but it as no effect.
I am not getting an error message and two planeCoincident constraints show up in the browser, but the two closets are simply not getting any closer in the view of the assembly.
Is there a general restriction of using base-level assemblies in meta-level assemblies or something?

Thanks for your help
Flo

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/Germany (en_DE)
Last edited by Flo on Fri Feb 14, 2020 10:03 pm, edited 1 time in total.
chrisb
Veteran
Posts: 54288
Joined: Tue Mar 17, 2015 9:14 am

Re: A2plus constraints between parts that are A2plus assemblies themselves

Post by chrisb »

Moved to Assembly Forum.

0.17 is rather outdated. Consider updating to 0.18 or 0.19.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: A2plus constraints between parts that are A2plus assemblies themselves

Post by kbwbe »

Flo wrote: Wed Feb 12, 2020 4:10 pm Is there a general restriction of using base-level assemblies in meta-level assemblies or something?
There is no such restriction. Please provide a not working assembly file.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
Flo
Posts: 3
Joined: Wed Feb 12, 2020 3:51 pm

Re: A2plus constraints between parts that are A2plus assemblies themselves

Post by Flo »

Thanks for your quick replies. I am really going nuts here and appreciate your help a lot!

I tried to create a minimal file, which illustrates the problem. In doing so I found that I cannot use the coincident-face constraint of A2plus at all, even with elementary parts, which are not assemblies themselves.

I am attaching the part file and the assembly file. I successfully used coindicident-face constraint yesterday noon. It seems like it stopped working at all when I tried to link the assemblies with the coincident-face constraint. But I have no clue, why.

I notice two things, which were different, when the coincident-face constraint was still working:
1) The constraint-properties dialog box pops up, when I try to install the constraint, which did not appear when it was working. Screenshot is attached as dialog.png.
2) In the model browser the coincident-face constraint shows up twice on the same level as the two parts that I want to link. When it was working one of the coincident-face constraints used to be a child of one of the related parts.

I update to the current stable version of 0.18.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
Attachments
base-assembly.FCStd
(6.02 KiB) Downloaded 17 times
part.FCStd
(3.39 KiB) Downloaded 19 times
dialog.PNG
dialog.PNG (111.85 KiB) Viewed 813 times
dan-miel
Posts: 391
Joined: Thu Sep 13, 2018 12:29 am
Location: Spokane WA. USA

Re: A2plus constraints between parts that are A2plus assemblies themselves

Post by dan-miel »

Flo wrote: Thu Feb 13, 2020 10:08 am 2) In the model browser the coincident-face constraint shows up twice on the same level as the two parts that I want to link. When it was working one of the coincident-face constraints used to be a child of one of the related parts
Flo, when I opened the model the parent child looked correct. The problem I saw is that both parts are fixed in space. To fix this highlight one of the parts and in the properties below, change the 'fixed Position' from true to false and re-solve.
Dan
Attachments
aftre solving.JPG
aftre solving.JPG (78.06 KiB) Viewed 781 times
Flo
Posts: 3
Joined: Wed Feb 12, 2020 3:51 pm

Re: A2plus constraints between parts that are A2plus assemblies themselves

Post by Flo »

SOLVED !!!

Dear Dan, this has been it! You solved my problem. Thank you so much!
Also thanks to kbwbe and Chris for minding my problem.
Post Reply