Datum and Multitransform

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!
ChemicalCoal
Posts: 24
Joined: Sun May 09, 2021 3:38 am

Datum and Multitransform

Post by ChemicalCoal »

I created the following part, It uses pad to create a square, pocket to cutout a plus, and MultiTransform+PolarPattern on the pocket feature using DatumLine as a reference.

If I add a second datumLine (DatumLine001) after the Multitransform I can't use DatumLine001 as a reference for MultiTransform. When i change the Axis selection box to "select refrence..." I can't select DatumLine001. I think this is expected since DatumLine001 was created after the MultiTransform feature.

My question is if I use the "move object after other object" to move DatumLine001 before MultiTransform, I still can't use DatumLine001 as a reference. I would expect this to work since DatumLine001 is now before MultiTransform in the tree, so I would expect to be able to refrence it. Why does this happen?

If I delete MultiTransform and add it back in, both DatumLine and DatumLine001 work properly. The tree looks identical to when it didn't work.

Here is a photo, the top is the prior "move object after other object", the bottom is after. The figure in both have a MultiTransform+PolarPattern applied on the pocket feature with DatumLine as a reference.
Image

This is the object before the MultiTransform and DatumLine001:
Image
chrisb
Veteran
Posts: 54168
Joined: Tue Mar 17, 2015 9:14 am

Re: Datum and Multitransform

Post by chrisb »

You probably have attached the DatumLine to some generated geometry of the MultiTransform (which isn't a good idea anyway, see this page, especially the paragraph about creating stable models). If you would select it in the MultiTransformm you would create a cyclic dependency. If you attach the DatumLine to one of the main plains or axes, it should work.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Datum and Multitransform

Post by Bance »

chrisb wrote: Sun May 09, 2021 4:30 am attached the DatumLine
The screens show an unattached datum.

The line is in fact able to be used, but it must be selected from the treeview.

I think there are some bugs in multitransform, I know for instance that converting a Std (pattern)transform to a multi does not work.
chrisb
Veteran
Posts: 54168
Joined: Tue Mar 17, 2015 9:14 am

Re: Datum and Multitransform

Post by chrisb »

Bance wrote: Sun May 09, 2021 8:31 am The screens show an unattached datum.
I should have seen that from the overlay :oops: .
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Datum and Multitransform

Post by Willem »

I think Chemicalcoal has something wrong in his model. Without any problem I can make this model with multitransform
Attachments
Multipattern.FCStd
(75.68 KiB) Downloaded 10 times
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Datum and Multitransform

Post by Bance »

I didn't look at Willem's solution, but a better way to model would be to pad symmetric then use Std axes for multi-trans forms, from a single rectangular pocket.
User avatar
Willem
Veteran
Posts: 1854
Joined: Fri Aug 12, 2016 3:27 pm
Location: Lisse, The Netherlands

Re: Datum and Multitransform

Post by Willem »

I agree with you Bance that using the standard axis is the most simple solution, but I wanted to check or there is a bug as you insulted on your previous post
ChemicalCoal
Posts: 24
Joined: Sun May 09, 2021 3:38 am

Re: Datum and Multitransform

Post by ChemicalCoal »

chrisb wrote: Sun May 09, 2021 4:30 am You probably have attached the DatumLine to some generated geometry of the MultiTransform
This originally was the case, it was attached to a piece of geometry generated by MultiTransform, but I would have expected to get an error when moved it earlier in the tree than the geometry that it references. Is this the expected behavior? Is the tree really a tree, or is it more of a suggestion?

I recreated the issue and took photos when it happened instead of afterward, this is a picture of the tree and DatumLine001.
Image
Image
Bance wrote: Sun May 09, 2021 8:31 am
chrisb wrote: Sun May 09, 2021 4:30 am attached the DatumLine
The screens show an unattached datum.
I assume this is the purple thing, this is a byproduct of me messing around before taking the photos.

The datum line was attached to the multi-transform body after the first Multitransform + PolarPattern + Pocket has been applied but before the second. Referencing the datum001 at this point would have been a cyclic relationship, which is why I assume that it didn't work.

After thinking about it my question is really about the behavior of datum001 referencing geometry after it in the tree, and not about the model itself.
Bance
Veteran
Posts: 4250
Joined: Wed Feb 11, 2015 3:00 pm
Location: London

Re: Datum and Multitransform

Post by Bance »

Unfortunately without the actual model, it's very difficult to know exactly what has happened here.

In reality the model might've been padded symmetrically, then all axes for patterns would've been available as std. without effort.

That does not solve the conundrum, but might serve as advice for further models..... :lol:
chrisb
Veteran
Posts: 54168
Joined: Tue Mar 17, 2015 9:14 am

Re: Datum and Multitransform

Post by chrisb »

So it is indeed as I had guessed. In the image of the attachment dialog you see that the Multitransform is selected.

The tree is not showing all dependencies. For that, use the DpendencyGraph. The graph is directed and acyclic.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply