Assembly 4 workbench

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
ecorm
Posts: 18
Joined: Tue May 04, 2021 5:35 am

Re: Assembly 4 workbench

Post by ecorm »

It turns out I don't need the .AttachmentOffset term (at least I don't think).

My spreadsheet function now looks like this:

Code: Select all

= (<<Subassembly>>#<<Body>>.Shape.Volume * density) *
<<Assembly>>#<<Subassembly>>.LinkPlacement *
<<Subassembly>>#<<Body>>.Shape.CenterOfMass
The resulting numbers seem kinda right, but it's hard to know to sure. I guess I should be experimenting with a far simpler hierarchical model where I can calculate the center of mass by hand and compare the result.
project4
Posts: 237
Joined: Fri Jul 12, 2013 12:53 pm

Re: Assembly 4 workbench

Post by project4 »

Hi all,

I'm kinda back to the party, until the next Covid wave hits my plans again...
Is there any documentation for mention of the new features/buttons/commands to catch up?

Thanks.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly 4 workbench

Post by Kunda1 »

project4 wrote: Sat Aug 21, 2021 11:55 am Is there any documentation for mention of the new features/buttons/commands to catch up?
Check out https://github.com/Zolko-123/FreeCAD_As ... ease-notes
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 »

Hello,

a BIG update: version 0.10 is out today, whit many fixes and (hopefully) improvements. It uses the newly discussed assembly file format (here) and custom objects for the WB. There is now also some support for translations (although I don't know how that works) and some files are re-organised.

My goal was to have this out for the new Debian Bullseye, we're a week late, sorry.

Kunda1 wrote: Thu Aug 12, 2021 12:40 am Heads up: Thor project has adopted Assembly4 as it's chosen solution.
Ref: https://twitter.com/_AngelLM/status/1424408804817580046
http://thor.angel-lm.com/downloads/
This was actually very helpful, I used their model to test the new version: it should be 100% compatible with existing models, if you encounter problems please report.

Next steps should be:

  • part info (ideally from template)
  • BoM and CoG (it's the same algorithm: parse the tree and keep note of what is encountered)
  • variant links
  • other suggestions ?
try the Assembly4 workbench for FreCAD — tutorials here and here
project4
Posts: 237
Joined: Fri Jul 12, 2013 12:53 pm

Re: Assembly 4 workbench

Post by project4 »

Zolko,

is it backward compatible with old files format?
Or everything have to be re-built from scratch?

Also, do you know what is the status of the links problems when files are moved between different computers that have different paths?
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

project4 wrote: Mon Aug 23, 2021 7:00 pm is it backward compatible with old files format?
Or everything have to be re-built from scratch?
it should be 100% compatible, if it's not it's a bug and please report

Also, do you know what is the status of the links problems when files are moved between different computers that have different paths?
I've seen that sometimes files are saved as *.FCStd and sometimes as *.fcstd. This is then a killer for a project, but this is a FreeCAD bug and needs to be fixed urgently. If you have reliable info please report it in the "Open Discussion" forum
try the Assembly4 workbench for FreCAD — tutorials here and here
project4
Posts: 237
Joined: Fri Jul 12, 2013 12:53 pm

Re: Assembly 4 workbench

Post by project4 »

I've updated to last version.
Get my freecad freeze in the "Place linked part" dialog.
Killing the application is the only way out of it.

Anyone experiencing something similar?

Don't know if it's somehow related to my files.

Also, Zolko, I see the long awaited translation and rotation buttons in that dialog (I know you added them long ago and it's not related to 0.1 version).
But it looks like the view is not updating when linking a new part.
Pressing the buttons seems to update the data, sice after I press OK, the part will appear in proper position.
When I use the same dialog to update existing part attacjment, the view will update on any click of the buttons.
I mostly tried the rotation, not sure about the translation.
project4
Posts: 237
Joined: Fri Jul 12, 2013 12:53 pm

Re: Assembly 4 workbench

Post by project4 »

Here are the errors I have just before everything is stuck:
Screenshot from 2021-08-25 20-16-09.png
Screenshot from 2021-08-25 20-16-09.png (32.37 KiB) Viewed 3681 times
Unfortunately can't look into the code right now.
User avatar
totalcad
Posts: 70
Joined: Sun Oct 20, 2019 9:09 pm

Re: Assembly 4 workbench

Post by totalcad »

Next steps should be:

part info (ideally from template)
BoM and CoG (it's the same algorithm: parse the tree and keep note of what is encountered)
Hi, Zolko!
That's so super!!!
Thank you for your cool work!
User avatar
totalcad
Posts: 70
Joined: Sun Oct 20, 2019 9:09 pm

Re: Assembly 4 workbench

Post by totalcad »

@Zolko, one more question:)

When I make my LCS(s) in the part, I usually hide them after (to free up space for view). After, when I put a part to an assembly - Asm4 unhides the LCS(s) which I use for connections - that's good. But when I finish adding parts - all the LCS(s) are unhided and I need to hide them again. Is there any way to unhide the LCS(s) in the assembly only for connection time (when the dialog of arranging parts ("Place linked Part") is open) and hide them back automatically when we finish with LCS settings?
And one rule idea for visibility of LCS(s): if the part has some combination of hidden and visible LCS(s) - Asm4 keeps them as they were in original part file before the "Place linked Part" dialog was opened?
Post Reply