Assembly 4 workbench

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
HelloWorldXD
Posts: 33
Joined: Wed Jun 12, 2019 10:41 am

Re: Assembly 4 workbench

Post by HelloWorldXD »

Hello,

i have a question.
i assembled some parts with ASM4, this works by the way great (after a few try an errors)
But then i have to make a new cut in one of the assembly parts and the hole assembly fall apart.
The LCS References have changed. I have manually changed again the LCS position and the assembly refreshed correct.
Have i done something wrong? or is this a problem because of topological naming?

i think the idea behind asm4 is great Screws for example are very quick installed (quicker than in Solid Edge or Catia).
When i changed a feature that is in the part for example a extrusion length the assembly update correctly but when i make a new feature (Hole or somethink) the LCS changes.

Thanks for the help :?:
racemaniac
Posts: 52
Joined: Sat Nov 30, 2019 7:45 am

Re: Assembly 4 workbench

Post by racemaniac »

HelloWorldXD wrote: Thu Feb 20, 2020 11:44 am Hello,

i have a question.
i assembled some parts with ASM4, this works by the way great (after a few try an errors)
But then i have to make a new cut in one of the assembly parts and the hole assembly fall apart.
The LCS References have changed. I have manually changed again the LCS position and the assembly refreshed correct.
Have i done something wrong? or is this a problem because of topological naming?

i think the idea behind asm4 is great Screws for example are very quick installed (quicker than in Solid Edge or Catia).
When i changed a feature that is in the part for example a extrusion length the assembly update correctly but when i make a new feature (Hole or somethink) the LCS changes.

Thanks for the help :?:
That's the infamous FreeCad topological naming issue. The names of faces/edges/vertices can change randomly when making changes to objects, and if you connected other objects to those faces/edges/vertices... you're out of luck. (which makes the second tutorial maybe a bit misleading. using its methods will quickly lead to issues with topological naming)

For now the main advice seems to be to as little as possible connect directly to features of the models.

Let's hope FreeCad will soon get a fix for this issue, since it affects far more than just Assembly4
neunR
Posts: 4
Joined: Tue Feb 18, 2020 11:34 am

Re: Assembly 4 workbench

Post by neunR »

Zolko wrote: Tue Feb 18, 2020 9:18 pm What do you think, can this work ? Unfortunately I don't have the time to test, but I'd be happy to hear back from your experiments.
With your hints I was able to get the animation to work:

Image

I had to use some intermediate variables for the calculations to keep the angle & displacement expressions manageable.
Is there a way to make expression a bit more readable? i.e. indentetion

All the files and documentation is in this gitrepo: https://github.com/9R/angleBarLamp

Thanks for the help & keep up the great work :)

Just as a sidenote: It would be a great feature in a future assembly4 version, if you could add a slider to the animation dialog to quickly jump to different steps within the animation range.
Last edited by neunR on Thu Feb 20, 2020 1:13 pm, edited 1 time in total.
User avatar
dubstar-04
Posts: 698
Joined: Mon Mar 04, 2013 8:41 pm
Location: Chester, UK
Contact:

Re: Assembly 4 workbench

Post by dubstar-04 »

neunR wrote: Thu Feb 20, 2020 12:38 pm
Zolko wrote: Tue Feb 18, 2020 9:18 pm What do you think, can this work ? Unfortunately I don't have the time to test, but I'd be happy to hear back from your experiments.
With your hints I was able to get the animation to work:

That is amazing! :o
Last edited by dubstar-04 on Thu Feb 20, 2020 3:01 pm, edited 1 time in total.
dxp.dev
Posts: 280
Joined: Tue Dec 11, 2018 12:57 pm

Re: Assembly 4 workbench

Post by dxp.dev »

Zolko wrote: Sun Mar 10, 2019 1:42 pm
Do you consider adding the possibility to animate the assembly with more than one variable ?
Find your user.cfg and system.cfg files : Macro_findConfigFiles

Imperial system makes no sense, go metric ! ! !
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Assembly 4 workbench

Post by ppemawm »

neunR wrote: Thu Feb 20, 2020 12:38 pm With your hints I was able to get the animation to work:
Well done.
Thanks for sharing your file. I appreciate your use of nested conditional statements! :ugeek:

This is an excellent example of using Assembly4 for bottom-up assembly, not requiring a master sketch.

Could you add some detail about how you went about your modelling and assembly process, especially how you attached the LCS's?
"It is a poor workman who blames his tools..." ;)
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Assembly 4 workbench

Post by ppemawm »

HelloWorldXD wrote: Thu Feb 20, 2020 11:44 am The LCS References have changed. Have i done something wrong? ....or is this a problem because of topological naming?
Yes.
One preferred method is to use a master sketch of the assembly.

Create LCS's in Model and attach only to the mastersketch edges or vertices. Then you can attach the Part LCS to
the Model LCS. Make sure that the Part LCS is attached only to origin planes. This will allow you to change features in the Parts without affecting the assembly.

However, if you change or add any master sketch geometry (edges or vertices) you will likely run into the same topological naming problem. You should be able to change master sketch dimensional constraints without a problem, i.e. animate the mastersketch.
"It is a poor workman who blames his tools..." ;)
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly 4 workbench

Post by Zolko »

ppemawm wrote: Thu Feb 20, 2020 3:38 pm
HelloWorldXD wrote: Thu Feb 20, 2020 11:44 am The LCS References have changed. Have i done something wrong? ....or is this a problem because of topological naming?
One preferred method is to use a master sketch of the assembly.
I think an explanation of best practices on how to use master sketches would be very useful. Would you have time to write something about that ?
try the Assembly4 workbench for FreCAD — tutorials here and here
racemaniac
Posts: 52
Joined: Sat Nov 30, 2019 7:45 am

Re: Assembly 4 workbench

Post by racemaniac »

ppemawm wrote: Thu Feb 20, 2020 3:38 pm You should be able to change master sketch dimensional constraints without a problem, i.e. animate the mastersketch.
I'm wondering how true this is. When playing around with Assembly4, i created a simple sketch that simulated steering (basically a rectangle with 2 lines sticking out of it resembling he wheel axles). When animating that, i already ran into the topological naming issue >_<. So i'm afraid even with simple sketches it can quickly go wrong when animating :s...
Topological naming is really a huge achilles' heel for FreeCad atm :(.
User avatar
ppemawm
Veteran
Posts: 1240
Joined: Fri May 17, 2013 3:54 pm
Location: New York NY USA

Re: Assembly 4 workbench

Post by ppemawm »

racemaniac wrote: Thu Feb 20, 2020 3:51 pm ppemawm wrote: ↑
Thu Feb 20, 2020 11:38 am
You should be able to change master sketch dimensional constraints without a problem, i.e. animate the mastersketch.

I'm wondering how true this is.
True indeed.

Please see numerous examples in this Assembly and Users Showcase Forums, such as:
https://forum.freecadweb.org/viewtopic. ... 20#p361030 and
https://forum.freecadweb.org/viewtopic. ... 71#p362653

If you can share your file I would be interested to see what problems you are having with this approach.
"It is a poor workman who blames his tools..." ;)
Post Reply