Assembly 3 - using Shape binder with Link objects (solved)

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Assembly 3 - using Shape binder with Link objects (solved)

Post by bambuko »

I want to further model bodies in parts of Assembly 3.
I want to use shapebinder to create new sketch, but the part/body I want to shapebind is a link, rather than original.
Any attempts to select the link, creates Shape binder in the original part, not in the link.

I have managed to by-pass this limitation by using sub Shape binder,
but sub Shape binder (unlike Shape binder) has it's own placement and it can be moved,
so it can cause problems, as described here:
https://github.com/realthunder/FreeCAD_ ... issues/595

So, my question is - how do I? (or can I?) use Shapebinder in Assembly 3 with link?
Last edited by bambuko on Sat May 08, 2021 4:39 pm, edited 1 time in total.
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly 3 - using Shape binder with Link objects?

Post by jpg87 »

bambuko wrote: Mon May 03, 2021 6:28 pm but sub Shape binder (unlike Shape binder) has it's own placement and it can be moved,
so it can cause problems, as described here:
https://github.com/realthunder/FreeCAD_ ... issues/595
I tried to figure out what your problem is but I can't do it: why are you trying to move the sub shape binder? there is a priori no reason to move it, unless you want to force the machining to be offset.
TestShapeBinder.jpg
TestShapeBinder.jpg (48.86 KiB) Viewed 1963 times
Attachments
PbShapeBinder.FCStd
(122.57 KiB) Downloaded 45 times
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly 3 - using Shape binder with Link objects?

Post by bambuko »

jpg87 wrote: Tue May 04, 2021 9:14 pm ...I tried to figure out what your problem is but I can't do it: why are you trying to move the sub shape binder? there is a priori no reason to move it...
I guess it is the way my weird brain works :lol:
I will try to explain:
1. with sub shape binder the situation is similar (at least to me) to creating model using not fully constrained sketch - it looks OK, but it is vulnerable, not stable and easy to corrupt the model (whether by user stupidity or accident)
2. whether there is a reason to move it or not, if it can be moved, it might (it will) be moved, easily corrupting the model.
3. freezing, sub shape binder doesn't prevent it from being moved.

whereas, shapebinder (as opposed to sub shape binder) stays put...

Thank you for your model - it is interesting how you can achieve the same result doing things slightly differently ;)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly 3 - using Shape binder with Link objects?

Post by jpg87 »

bambuko wrote: Wed May 05, 2021 6:54 am...
I think I noticed that you often use the word "transform" to test for displacements: does that mean you are using the "transform" from the context menu?
transformContext.jpg
transformContext.jpg (80.07 KiB) Viewed 1911 times

This tool seems to move everything unconditionally. I rarely use it.
I rather use to test in an assembly the tool of Realthunder "axial move".
AxialMoveAsm3.jpg
AxialMoveAsm3.jpg (69.75 KiB) Viewed 1911 times
If the elements are constrained, it will only move them if the Ctrl key is pressed simultaneously, and when validating, the constraints resume their rights if the automatic solver is activated.

If you haven't yet compared the 2, give it a try and tell me what you think.

I had prepared a screenshot to answer your question ... which you removed!
BindMode.jpg
BindMode.jpg (68.07 KiB) Viewed 1911 times

I also tried on my website a comparison between ShapeBinder and SubShapeBinder which is not convincing :
http://help-freecad-jpg87.fr/01506_pi_astucesPdN.php
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly 3 - using Shape binder with Link objects?

Post by bambuko »

Thank you!
jpg87 wrote: Wed May 05, 2021 8:35 am ...I think I noticed that you often use the word "transform" to test for displacements: does that mean you are using the "transform" from the context menu?...
I use all of them to test robustness of my model, because (as realthunder says) - "Locked" constraint doesn't prevent you from using other mover tools).
I believe I have found a way to "anchor" base/reference which totally locks it prevents moving it, but that's for another topic ;)


jpg87 wrote: ...This tool seems to move everything unconditionally. I rarely use it...
I know and that's the danger of this tool (and one is not prevented from using it :oops: )


jpg87 wrote: ...I rather use to test in an assembly the tool of Realthunder "axial move"...
Yes, this one is indeed better for assemblies.


jpg87 wrote: ...If you haven't yet compared the 2, give it a try and tell me what you think...
I think "transform" from the context menu, should be disabled for assemblies?


jpg87 wrote:I had prepared a screenshot to answer your question ... which you removed!
I am sorry :oops:
I shouldn't have submitted my reply before being totally sure of what I am trying to say.
Plus, I am so used to you replying very late in the evening ;) that I didn't think I would cause this...
Yes, I know about bind modes - my question really was:
if you detach, there is no option to re-attach? (only, as shown on your screenshot - synchronised, frozen and detached)


jpg87 wrote:...I also tried on my website a comparison between ShapeBinder and SubShapeBinder which is not convincing :
http://help-freecad-jpg87.fr/01506_pi_astucesPdN.php
Yes, I am spending lot of time trying to expand my knowledge of sub shape binders and shape binders.
sub shape binder seems more powerful and useful, but in some instances shape binder would be most appriopriate, but...
it cannot be used with "Links"
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: Assembly 3 - using Shape binder with Link objects?

Post by adrianinsaval »

what advantage does the shapebinder has over the subshapebinder? IMO shapebinder should be deprecated in favor of subshapebinder. If the only advantage is that it cannont be moved, can't you solve that by using an expression to set the subshapebinder placement to always be (0, 0, 0)?
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly 3 - using Shape binder with Link objects?

Post by bambuko »

adrianinsaval wrote: Wed May 05, 2021 12:17 pm ...can't you solve that by using an expression to set the subshapebinder placement to always be (0, 0, 0)?
What expression are you suggesting?
I have tried without success, but that could be just me? ;)
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
jpg87
Posts: 809
Joined: Thu Mar 16, 2017 7:16 am
Location: Limoges - France
Contact:

Re: Assembly 3 - using Shape binder with Link objects?

Post by jpg87 »

bambuko wrote: Wed May 05, 2021 9:45 am I am spending lot of time trying to expand my knowledge of sub shape binders and shape binders.
I had also tried an example of a completed design since assembly :

http://help-freecad-jpg87.fr/025c5_ass_ ... eption.php


But I rarely have comments (positive or negative) !
My website : http://help-freecad-jpg87.fr updated 2023/11/06
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly 3 - using Shape binder with Link objects?

Post by bambuko »

jpg87 wrote: Fri May 07, 2021 10:18 am ...But I rarely have comments (positive or negative) !
I didn't get that far yet ... ;)
You will defintely get comments/questions from me (as usual :P )

One thing is for sure - I like your videos better than realthunder's .gif in his wiki.
With your videos, you can pause, return and easily watch bits of it again
(I only wish there was a facility to watch it 50% speed as well - I am slow :lol: )

None of it is possible (at least as far as I know) with .gif, so the illustrations in Assembly 3 wiki are hard work (at least for me) :oops:
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
User avatar
bambuko
Veteran
Posts: 2185
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: Assembly 3 - using Shape binder with Link objects?

Post by bambuko »

and... a final post in this thread.

After a lot of help both from jpg87 (here in this thread) and realthunder (on Github: https://github.com/realthunder/FreeCAD_ ... issues/595)
I finally got my head round the idea that Transform command from subcontext menu is good for setting offset or changing placement,
but for moving part/sub-assembly in Assembly 3, one needs to use the Assembly mover.

Do NOT use the Transform command for moving assemblies, because Assembly mover is aware of assembly hierarchies and will modify the the Placement property of the correct assembly/part object in the hierarchy, while the Transform command only works for the selected object.

Thank you both for your patience :geek:
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
Post Reply