TechDraw: scripting

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!
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: TechDraw: scripting

Post by vocx »

vanuan wrote: Wed Aug 05, 2020 1:30 am ...
I think the very ability to select sub-elements without dedicated keyboard modifiers is harmful. It doesn't educate the newbie user about the topo-naming issue. ...
This is debatable and introduces complexity that may not be needed.

It is the creator of the Gui Commands who must define what operations use a Face or the entire object, when he or she uses getSelection or getSelectionEx. Realthunder, in his own branches, has added more code to select individual objects or subelements that are hidden by others; so probably this will make it to the main branch in the future.

Menu System Enhancement

And not only that. Getting a consistent selection system is hard.

Homogeneize general selection and picking all across Freecad.
Multi-Geometry Modal Selection and Deselection
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw: scripting

Post by wandererfan »

vanuan wrote: Wed Aug 05, 2020 1:33 am That's unfortunate. There should be another way to identify selected sub-elements, without relying on the hacky name parsing.
We have that for CosmeticEdges - getCosmeticEdgeBySelection("Edge1"). Should implement getEdgeBySelection("Edge1") sometime.
Post Reply