FreeCAD_FastenersWB icon indicating copy to clipboard operation
FreeCAD_FastenersWB copied to clipboard

[Feature Request] Single Button with all Fasteners

Open leoheck opened this issue 3 years ago • 8 comments

Not sure if this doesn't exist already. It would be nice to have a button that is a menu where we can select Fasteners from there. This way, other Workbenches could just embed a single button to access the whole workbench.

For instance, Assembly 4 has some buttons taken from this workbench, but They are just a generic Screw, Nut, Washer and the one to change the Fastener parameters. It is missing a lot of other futures like Spaces and others types of fasteners.

leoheck avatar Oct 03 '22 16:10 leoheck

Right now the only possible grouping is a single button per group. Since there are too many fasteners, they can not be grouped into a single list, and I do not know if freecad supports sub menus under buttons.

shaise avatar Oct 03 '22 20:10 shaise

Yeah, I could not find this either. But I am trying to find if this is possible, and how.

leoheck avatar Oct 03 '22 23:10 leoheck

What's an example of a submenu under a button ?

luzpaz avatar Oct 05 '22 11:10 luzpaz

Right now if you select in the preferences of fasteners that the icon grouping type is "drop down" then you will get only one toolbar button per group (instead of showing all of the fasteners). But still you as many buttons as there are groups: image

If you want to have a single fastener toolbar button, this button needs to drop down a sub menu of groups and each group will open a sub list of fasteners. Much like it works on the main fastener menu: image

shaise avatar Oct 05 '22 17:10 shaise

Exactly. A button with a dropdown list and each item with sub-items. Same behavior we have for Menus but on the Toolbar buttons.

leoheck avatar Oct 05 '22 17:10 leoheck

Someone shared this, but I am not sure how it works

https://github.com/ebrahimraeyat/civilTools/blob/7171aacbaf3f4a0f4a27f3eac389489eaa50d1c1/gui_civiltools/define/gui_create_load_combinations.py#L124

Source: https://forum.freecadweb.org/viewtopic.php?f=10&t=72324#p630639

leoheck avatar Oct 08 '22 02:10 leoheck

@ebrahimraeyat can you perhaps weigh-in on this ? (it's not related to your workbenches but is FreeCAD related :stuck_out_tongue_closed_eyes:)

luzpaz avatar Mar 06 '23 10:03 luzpaz

@luzpaz , It doesn't work for nested commands. Maybe @wwmayer can help. thanks.

ebrahimraeyat avatar Mar 08 '23 22:03 ebrahimraeyat