Two quick questions about selecting lines and constraints

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!
User avatar
tre4b
Posts: 74
Joined: Tue Oct 20, 2020 7:43 am

Two quick questions about selecting lines and constraints

Post by tre4b »

When I am working with Freecad sketches I keep running into situations where I want to do one of the following:

1) Select one line that is on top or below another line. This often happens if I have a construction line and I am then adding a solid line over part of this (reall wish construction lines were dotted ;-) ) Currently I just keep trying until it selects.

2) Select a constraint for a specific point i.e. I have two lines joined at a corner with a coincident constraint and I want to delete that coincident constraint to extend one of the lines. This works fine if the constraint shows next to the point, in a lot of cases they do not though and the only way to find them sems to be to go through the constraint list clicking on them until the point you want goes green. Works but it is pretty tedious as the sketch gets bigger. I know I can name them but I am willing to be nobody puts a name to every Constraint. In this case I want to leave the blue construction line where it is and extend the white line to the longer line to its right.
Screenshot 2021-09-02 173324.png
Screenshot 2021-09-02 173324.png (15.78 KiB) Viewed 951 times
I have no specific case to share and I am happily creating what I want, it just occurred to me though I might be doing it the hard one and someone will tell me if I do ... it will just work ;-) So does anyone have any tips for me about how to cope best with this?
User avatar
Shalmeneser
Veteran
Posts: 9560
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Two quick questions about selecting lines and constraints

Post by Shalmeneser »

+1

* select in the constrain list
* suppress one item
* use Sketcher_Extend
* use Sketcher_Split
* ...
User avatar
thomas-neemann
Veteran
Posts: 11925
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Two quick questions about selecting lines and constraints

Post by thomas-neemann »

tre4b wrote: Thu Sep 02, 2021 4:34 pm
if you drive the restriction with the mouse. the name lights up at the bottom of the screen. is that helpful?

1.jpg
1.jpg (43.06 KiB) Viewed 931 times
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Two quick questions about selecting lines and constraints

Post by TheMarkster »

If you have a construction line coincident with a normal line and the construction line is hidden below the normal line you can change the order of rendering by dragging the top item down.
Snip macro screenshot-a6434b.png
Snip macro screenshot-a6434b.png (73.19 KiB) Viewed 908 times
Snip macro screenshot-7ef324.png
Snip macro screenshot-7ef324.png (73.92 KiB) Viewed 908 times
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Two quick questions about selecting lines and constraints

Post by kisolre »

When you select a point and want to delete since you can not delete any of the coincident points sketcher is smart enough to find the corresponding coincidence constraint and delete that.
To find a specific constraint or sketcher entity you can use Sketcher_SelectConstraints or Sketcher_SelectElementsAssociatedWithConstraints

Edit: added Wiki links for commands.
Last edited by kisolre on Sat Sep 04, 2021 10:18 am, edited 1 time in total.
chrisb
Veteran
Posts: 54225
Joined: Tue Mar 17, 2015 9:14 am

Re: Two quick questions about selecting lines and constraints

Post by chrisb »

You can use the rectangle selection of the point. That selects the coincidence and you can delete it.

Or you select a line and use "Select associated constraints".
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Two quick questions about selecting lines and constraints

Post by GeneFC »

tre4b wrote: Thu Sep 02, 2021 4:34 pm 1) Select one line that is on top or below another line. This often happens if I have a construction line and I am then adding a solid line over part of this (reall wish construction lines were dotted ;-) ) Currently I just keep trying until it selects.
This is an added control that I would find very useful. In another program that I used extensively in my career, PowerPoint, hitting the TAB key after any element is selected changes the selection to the next element. I don't know exactly how the elements are ordered, but hitting TAB enough times will cycle through everything, even those that are difficult to select by point and click.

Gene
User avatar
tre4b
Posts: 74
Joined: Tue Oct 20, 2020 7:43 am

Re: Two quick questions about selecting lines and constraints

Post by tre4b »

Many thanks all,

Some really useful tips in your replies that I can try and use. I had missed the Extend tool altogether!

Just hitting delete on the point worked. I had assumed that this would delete the point and the lines etc. Now I know better :-) I've shifted my construction lines to the bottom (Had never noticed this rendering option as I don't usually drop down that menu). @Kisolre I've not figured out how to do the select associated constraints option yet. Will have a peruse of the help later when I have a moment though I have found select constraints if I click on the item in the elements list.

Thanks for giving me some of your time on this.
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Two quick questions about selecting lines and constraints

Post by kisolre »

tre4b wrote: Sat Sep 04, 2021 9:49 am I've not figured out how to
Sorry, I was lazy to find the wiki pages. Edited the previous post and here they are again: Sketcher_SelectConstraints, Sketcher_SelectElementsAssociatedWithConstraints
User avatar
tre4b
Posts: 74
Joined: Tue Oct 20, 2020 7:43 am

Re: Two quick questions about selecting lines and constraints

Post by tre4b »

No apology necessary, you did your job pointing me at the concept :-) Thanks for the links though as it does make it easier to find.
Post Reply