Assembly 4 workbench

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

joe.belladonna wrote: Tue Nov 12, 2019 5:01 pm This is my FreCAD version:

Code: Select all

Version: 0.19.18686 (Git)
And my Assembly4 version is: 0.7.0
OK. It's strange because the files you uploaded didn't have the expected behaviour. Did you build them with the Assembly4 workbench, or did you mix in manual linking and positioning ?

Or may-be now that more testing is done are we seeing all the bugs in the Assembly4 code. That makes me think that I have to update the included example assemblies to the new v0.7 data format...
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

basmati wrote: Tue Nov 12, 2019 2:06 pm But then I simply selected all the parts and converted them to solids. Works!
great news. Could you describe a little more in detail what you have done so we can include it in the instructions ?
try the Assembly4 workbench for FreCAD — tutorials here and here
basmati
Posts: 27
Joined: Thu Oct 31, 2019 10:22 am

Re: Assembly 4 workbench

Post by basmati »

Zolko wrote: Tue Nov 12, 2019 10:44 pm
basmati wrote: Tue Nov 12, 2019 2:06 pm But then I simply selected all the parts and converted them to solids. Works!
great news. Could you describe a little more in detail what you have done so we can include it in the instructions ?
As of now, adding Parts or external Links to views in the Raytracing or Render Workbenches is not possible.
If you just added the bodies insides your parts to a view, they would all be oriented around the document's origin, since the placement is only done via the Part containers.

So if you want to create a rendered image of your assembly, you will have to create solids out of your parts.

Solids can not be made out of externally linked parts.
So if your assembly consists of several files, you have two options: import all your links or export a STEP file and import the resulting STEP file.

Then, to make solids out of all your parts, just select all of them while in the Part Workbench and click "Part" -> "Convert To Solid".
One solid per part will be created and appended in your Model Tree (at least when there's on body inside of each part – parts with multiple bodies haven't been tried yet).

These solids can now be added to a view or be converted to meshes for export to e.g. Blender.
(if you want to use Blender, you can just export the reimported STEP export without creating solids first)

Tip: These solids will all have a placement data of (0,0,0). So if you wanted to move your whole assembly, just select all of them and enter the position you want your model to be at.
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

basmati wrote: Wed Nov 13, 2019 8:20 am Solids can not be made out of externally linked parts.
...
export a STEP file
...
if you want to use Blender, you can just export the reimported STEP export without creating solids first
I'm no specialist of raytracing, but it seems to me that the easiest option currently is to go through a STEP exchange file. You'll loose the parametric aspect of FreeCAD, but you gain the flexibility of an external specialized tool. I tested and export of Assembly4 assemblies seems to work.

Since we all have limited ressources, and since there is a workaround for the rendering functionality, even if it's suboptimal, I won't spend time on this in the near future. It would be nice to have, but I think it will have to wait for FreeCAD-0.20
try the Assembly4 workbench for FreCAD — tutorials here and here
xyzman
Posts: 4
Joined: Thu Oct 24, 2019 8:45 am

Re: Assembly 4 workbench

Post by xyzman »

[bug][/bug] When importing a LCS from a sub assembly it use to place it at the selected LCS in my case Bearing Center Shaft.It now place it at the Globel LCS 0 as can be seen in the pics .This started after the latest upgrade-me thinks??
Is the a another to place LCS in a sub assembly ?
Thanks for great effort at creating this Assembly.

OS: Debian GNU/Linux 10 (buster) (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18714 (Git) AppImage
Build type: Release
Branch: master
Hash: a7ad04ba4aefb486fbc5e7c68da3dd488443b08c
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
Attachments
Link LCS 02.png
Link LCS 02.png (108.16 KiB) Viewed 2380 times
Link LCS 01.png
Link LCS 01.png (95.47 KiB) Viewed 2380 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly 4 workbench

Post by Kunda1 »

Zolko wrote: Thu Nov 14, 2019 8:46 am:bell:
Hey @Zolko here's another potential project:
converting https://github.com/marzof/fridge-staircase from Assembly2 in to Assembly4
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

xyzman wrote: Thu Nov 14, 2019 9:28 am When importing a LCS from a sub assembly it use to place it at the selected LCS in my case Bearing Center Shaft. It now place it at the Global LCS 0 as can be seen in the pics .This started after the latest upgrade-me thinks?
yes, you're right, it was a stupid bug, sorry for that. It should be fixed now (0.7.2)
try the Assembly4 workbench for FreCAD — tutorials here and here
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

Kunda1 wrote: Thu Nov 14, 2019 1:27 pm converting https://github.com/marzof/fridge-staircase from Assembly2 in to Assembly4
nice, yes, that would be a good test-case. I won't have the time to try it for some time though.
try the Assembly4 workbench for FreCAD — tutorials here and here
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Assembly 4 workbench

Post by triplus »

Zolko wrote: Thu Oct 31, 2019 12:37 pm
basmati wrote: Thu Oct 31, 2019 11:25 am I'm fairly new to FreeCAD...
there is already a user BassMati, you're another person ?
basmati wrote: Thu Oct 31, 2019 12:50 pm Yes, I'm someone else.
BassMati wrote: Tue Nov 05, 2019 9:51 am Yes, basmati and BassMati are different instances of a human ;-)
It's settled then.
triplus wrote: Tue Oct 15, 2019 1:46 pm Great. Will take a look in the next days.
Assembly 4.png
Assembly 4.png (62.45 KiB) Viewed 2308 times
Your assembly will assemble! The tutorial is in good condition. After you have made it i have noticed a sudden spike in Assembly 4 interest, here on the forum. In addition it likely helped to detect one oppressing issue, regarding link:

https://forum.freecadweb.org/viewtopic.php?f=20&t=40403

On thing i did notice is:

https://github.com/Zolko-123/FreeCAD_As ... -bearing-3

Constraints group was empty in my case. Didn't put too much effort in it, trying to determine why. Therefore a short summary:
  • Local coordinate system feature
  • Attachment editor
  • Expression engine
Complexity of expressions is nicely hidden from people, attachment editor, on the other hand, can still be a bit overwhelming. When it was first made, it did give an impression, of being a "semi assembly" capable, you took that on another level. Assembling in such way i guess is rather straightforward procedure, once you get familiar with it. It's especially easy to use with "radial geometry", other use cases are sometimes limited by attachment editor capabilities. Such way of assembling should indeed be supported in FreeCAD. It will be interesting to see, if in the future, a more traditional solver will get involved, to i guess further extend the possibilities, of attaching.
xyzman
Posts: 4
Joined: Thu Oct 24, 2019 8:45 am

Re: Assembly 4 workbench

Post by xyzman »

Post Reply