Part-o-magic [New: Selection tools, container duplication]

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Part-o-magic [New: Selection tools, container duplication]

Post by DeepSOIC »

New tools:

* select children
* select children (recursive)
* select all
* invert selection
* selection buffer swap

Select children and select all react to holding Ctrl by not clearing the previous selection.

Select children (recursive) was mainly made to make deep copies of containers. For example, to duplicate a body, do this:
0. Deactivate all containers, or suspend PoM observer. (otherwise, "Object can only be in a single GeoFeatureGroup" error)
1. select the body.
2. holding Ctrl, invoke "select children (recursive)"
3. Edit->Duplicate. Answer "NO" to whether you want dependencies copied.
Thanks to recent fix by Werner, this will also work on part-o-magic containers (since v0.18.15994).
duplication-demo.gif
duplication-demo.gif (854.15 KiB) Viewed 867 times
Selection buffer swap is a tool to help with complicated selection. For example, if you are selecting a long sequence of edges for a sweep, and in the middle of the work you realized you need to hide an object that gets in the way, the tool can help. You click the buffer swap, and what you've selected so far is saved to a buffer. Then you hide the offending object. Then clicking buffer-swap again restores the selection, and you can continue on selecting the edges.

I am still working on FCStd import-export, and container-aware object duplication. FCStd export is now available in File->Export dialog, but it gives FCStd1 extension (FreeCAD blocks .FCStd there). Export is more-or-less good, but import is very buggy.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Part-o-magic [New: Selection tools, container duplication]

Post by DeepSOIC »

DeepSOIC wrote: Fri Mar 01, 2019 12:49 pm Select children (recursive) was mainly made to make deep copies of containers. For example, to duplicate a body, do this: ...
No, scratch that.

New tool!
* Duplicate
Can duplicate (deep copy) Parts, Bodies, PoM containers, and just objects.

EDIT: not so fast, the tool brings sketches into an uneditable state. Can be fixed by saving and reopening the project, but that's quite a serious bug right there.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Part-o-magic [New: Selection tools, container duplication]

Post by Kunda1 »

Mod edit: @DeepSOIC (author of this thread and dev behind Part-o-magic) has asked this thread be locked in favor of the one specified in the OP.
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
Locked