Updating a Sub-shape Binder object

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!
Post Reply
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Updating a Sub-shape Binder object

Post by leoheck »

Hey guys, I use the Sub-shape binder a lot and I never updated this kind of object because I did not know how to do it until today. I used to remove it and create it again.

I am sharing here I video I found showing how to use it.

This is how Part Design > Sub-shape Binder can be updated.
https://youtu.be/MCY5IrWrHrU?t=488

Do you know if there is any plan to have a better way to update sub-shape binder objects?
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: Updating a Sub-shape Binder object

Post by chrisb »

leoheck wrote: Mon Oct 25, 2021 7:56 pm Do you know if there is any plan to have a better way to update sub-shape binder objects?
It would be nice to have something similar to what e.g. the Part->Loft offers for editing the Sections property.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Updating a Sub-shape Binder object

Post by leoheck »

Yeah, this would help a bit!
leoheck
Veteran
Posts: 1222
Joined: Tue Mar 13, 2018 5:56 pm
Location: Coffee shop

Re: Updating a Sub-shape Binder object

Post by leoheck »

Yeah, this would help a bit! Even if it is just to visualize things that are being used. Actually, maybe just a single list would be easier.
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Updating a Sub-shape Binder object

Post by TheMarkster »

Enable the python console.
Select the green ShapeBinder, press Ctrl+Shift+P.
In the python console enter:

Code: Select all

obj.setEditorMode("Support",0)
Click the Support property, then the [...] button to bring up the editor.
Move the dialog window out of the way if it's in the way.
Select the subobjects (faces, edges, vertices) in the 3D View.
Press Ok to close the dialog.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: Updating a Sub-shape Binder object

Post by chrisb »

Great workaround! Can it be set by default in master?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
TheMarkster
Veteran
Posts: 5505
Joined: Thu Apr 05, 2018 1:53 am

Re: Updating a Sub-shape Binder object

Post by TheMarkster »

I suppose it could be made normal mode (not readonly) by default. Why was it made readonly in the first place? Maybe there was a good reason.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: Updating a Sub-shape Binder object

Post by chrisb »

Realthunder, did you implement this?
realthunder wrote: pinged by pinger macro
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
realthunder
Veteran
Posts: 2190
Joined: Tue Jan 03, 2017 10:55 am

Re: Updating a Sub-shape Binder object

Post by realthunder »

The reason for it being readonly is that the sub shape binder relies heavily on tree view drag and drop to determine the relative hierarchy of the dropped object, so that it can sync the placement properly. It is possible to drop the same object in different hierarchy which results in different placements. I add the readonly flag to discourage user from updating the support directly, but didn't forbid it completely. Besides using python code to change that, you can also right click the 'Support' property, and select 'Show all', and then right click again, uncheck the 'ReadOnly' option.
Try Assembly3 with my custom build of FreeCAD at here.
And if you'd like to show your support, you can donate through patreon, liberapay, or paypal
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: Updating a Sub-shape Binder object

Post by chrisb »

realthunder wrote: Sun Oct 31, 2021 3:33 am you can also right click the 'Support' property, and select 'Show all', and then right click again, uncheck the 'ReadOnly' option.
Thanks, that should do the job.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply