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

Need help, or want to share a macro? Post here!
User avatar
DeepSOIC
Posts: 7291
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

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

Post by DeepSOIC » Fri Mar 01, 2019 12:49 pm

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 229 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
Posts: 7291
Joined: Fri Aug 29, 2014 12:45 am
Location: Saint-Petersburg, Russia

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

Post by DeepSOIC » Fri Mar 01, 2019 11:47 pm

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
Posts: 6355
Joined: Thu Jan 05, 2017 9:03 pm

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

Post by Kunda1 » Wed Jan 08, 2020 6:01 pm

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.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Locked

Who is online

Users browsing this forum: No registered users and 3 guests