missing feature to change loft section order
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
missing feature to change loft section order
For lofts it makes a difference in what order the sections are lofted. However, it is correctly not easily possible to change the sections order.
This is now possible with this PR: https://github.com/FreeCAD/FreeCAD/pull/3871
Here is how it works now (used testfile: )
(The code the change the sorting is taken from the feature transform dialogs.)
This is now possible with this PR: https://github.com/FreeCAD/FreeCAD/pull/3871
Here is how it works now (used testfile: )
(The code the change the sorting is taken from the feature transform dialogs.)
Re: missing feature to change loft section order
Can this be added to the sweep too? Or is TheMarkster's pull request already handling this?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: missing feature to change loft section order
Good question, I will add the sorting to the sweep dialog with another PR this evening.
Themarkster's PR does not handle sweeps. I think when his PR went in, he will probably extend it to sweeps too .
TheMarkster wrote: .
Re: missing feature to change loft section order
Thanks for working on this!
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: missing feature to change loft section order
Here is a PR that add this: https://github.com/FreeCAD/FreeCAD/pull/3874
However, I cannot find a case where the section order for sweeps makes a difference. Can you please attach a file where it does that I can properly test the PR?
Re: missing feature to change loft section order
I am sorry to have this brought up. I wasn't aware that the sections are just taken as they occur along the path. This can come very handy when adding an additional section in the middle. Until now I always have rearranged the sections.
Thanks for the find.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: missing feature to change loft section order
That's what I have observed. However, I'm looking at it just as a user, perhaps some initiated developer can judge better, if there are cases where the order matters, from looking at the code.
And even if it doesn't matter, it may be convenient to reorder the sections just to keep the tree tidy.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: missing feature to change loft section order
I want to point to https://forum.freecadweb.org/viewtopic.php?f=19&t=47722.
There you will find a short script creating an AdditiveLoft and a workflow how to use it. If you comment the line
There you will find a short script creating an AdditiveLoft and a workflow how to use it. If you comment the line
the sections are taken in the order you selected it in the model tree. Therefore you can select the order of sections as you want.Sketches.sort(key=name)
Re: missing feature to change loft section order
Thanks. I know that one can change the sketch order. I am looking for an example in which one can see the difference of a changed sketch order. If you could create such an example with your macro, could you please attach the resulting FC file here?