Recalculate the document moves the Assembly 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
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Recalculate the document moves the Assembly constraints.

Post by dcapeletti »

Hi, could you please watch the video I made for a few minutes. https://peertube.video/videos/watch/fd5 ... c093217742

I'm using assembly 2, I create some restrictions, but when I press recalculate the document, the objects change places and I have to press the rubik cube again to recalculate the restrictions. Is this a bug or is it normal? Tell me if I'm doing something wrong.

I enclose the freecad document
Prueba ensamble.fcstd
(70.34 KiB) Downloaded 13 times
Thank you very much.

OS: Debian GNU/Linux 9.5 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14995 (Git) AppImage
Build type: Release
Branch: master
Hash: 7b866816785ac1ca9787b63d4bff12873bb3a593
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Argentina (es_AR)
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Recalculate the document moves the Assembly constraints.

Post by kbwbe »

dcapeletti wrote: Sun Oct 21, 2018 7:58 pm Hi, could you please watch the video I made for a few minutes. https://peertube.video/videos/watch/fd5 ... c093217742

I'm using assembly 2, I create some restrictions, but when I press recalculate the document, the objects change places and I have to press the rubik cube again to recalculate the restrictions. Is this a bug or is it normal? Tell me if I'm doing something wrong.

I enclose the freecad document Prueba ensamble.fcstd
Thank you very much.

OS: Debian GNU/Linux 9.5 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.14995 (Git) AppImage
Build type: Release
Branch: master
Hash: 7b866816785ac1ca9787b63d4bff12873bb3a593
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Spanish/Argentina (es_AR)
.
Hi dcapeletti,
i had a look at your video. You are using A2 in a complete wrong way. You have to import all parts from external files to the assembly file and then use constraints to combine them.
Please find a tutorial here: https://www.youtube.com/watch?v=dhaYJKDk4GI
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
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Recalculate the document moves the Assembly constraints.

Post by dcapeletti »

Now I get it, thanks for the video.

Basically I always have to use Assembly's import tool and apply the restrictions to them.

I wonder what happens if in a file I have more than two bodies in the same file and I import them with assembly?

Thank you
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Recalculate the document moves the Assembly constraints.

Post by dcapeletti »

Another question. If I want to use a spreadsheet to get design data, the length. Can I only do it in the file that contains the body with the design or can I do it in the assembly file?
For example I want to get the lake of the object, can I do it in the assembly file?

Thank you
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Recalculate the document moves the Assembly constraints.

Post by kbwbe »

dcapeletti wrote: Sun Oct 21, 2018 9:03 pm Now I get it, thanks for the video.

Basically I always have to use Assembly's import tool and apply the restrictions to them.

I wonder what happens if in a file I have more than two bodies in the same file and I import them with assembly?

Thank you
In generally, Assembly 2 is not able to import files with more than one visible shape (body e.g.). If you want to do this, try my A2plus workbench, it is installable via the addon manager. It works very similar to Assembly2.

If you import a file with more than one body, it is handled with A2plus as it would be one part. All bodies of the file move during constraining at once.
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
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Recalculate the document moves the Assembly constraints.

Post by kbwbe »

dcapeletti wrote: Sun Oct 21, 2018 11:29 pm Another question. If I want to use a spreadsheet to get design data, the length. Can I only do it in the file that contains the body with the design or can I do it in the assembly file?
For example I want to get the lake of the object, can I do it in the assembly file?

Thank you
Within the assembly, you only can apply spreadsheet data to some values of constraints, e.g. the offset of planes or the angle of angularPlanesConstraint.

The rest you have to do within you source files for the assembly.
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
User avatar
dcapeletti
Posts: 504
Joined: Wed Jul 23, 2014 2:27 pm

Re: Recalculate the document moves the Assembly constraints.

Post by dcapeletti »

Within the assembly, you only can apply spreadsheet data to some values of constraints, e.g. the offset of planes or the angle of angularPlanesConstraint.

The rest you have to do within you source files for the assembly.
Thank you for your reply.
Can I get spreadsheet data from another FreeCAD file?
In generally, Assembly 2 is not able to import files with more than one visible shape (body e.g.). If you want to do this, try my A2plus workbench, it is installable via the addon manager. It works very similar to Assembly2.

If you import a file with more than one body, it is handled with A2plus as it would be one part. All bodies of the file move during constraining at once.
Thank you. I understand perfectly. Do you prefer to use Assembly 2 or A2Plus? Why?
I've seen a bit of each and I don't know which one is ideal for the future of my models.

Thanks
Post Reply