Feature request: Layers on Sketcher

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature request: Layers on Sketcher

Post by chrisb »

If you need layers your sketch is too complicated. make another sketch with another feature. Pro/Engineer used to propagate the 7-7-7 rule (thanks freecad-heini-1 for bringing to our attention) which says a sketch should

- have no more than 7 elements
- have no more than 7 dimensions
- take no longer than 7 minutes.

It is widely agreed in the FreeCAD community that nowadays these numbers can be raised, but the idea of simple sketches is worth some more thoughts.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Feature request: Layers on Sketcher

Post by ckl6767 »

Sorry to throw in, with my two cents penny.. :oops:
One of the advantage to work with several layers, is for example to have one layer only with constructions lines.
For example, in the following sketch, above the Blue Lines, there are white lines, but no way to distinct it, nor to hide the Blue (construction lines)
Capture.PNG
Capture.PNG (69.61 KiB) Viewed 883 times
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Feature request: Layers on Sketcher

Post by vocx »

ckl6767 wrote: Tue Dec 17, 2019 1:43 pm One of the advantage to work with several layers, ...
There is something like this already. In the task panel, you can find the "Elements" section which can be used to filter the types of elements, "All", "Normal", "Construction", "External". You can't hide the geometry, but you can select the geometry that you want. You can also change the rendering order in the "Edit controls" section.

I am not against having actual layers in the Sketcher, however, at the same time, I don't think it's very difficult to use at the moment. Sketches shouldn't be extremely complex. Having sketches with many details, and with hundreds of constraints is in general bad practice.
Last edited by vocx on Wed Dec 18, 2019 1:12 am, edited 1 time in total.
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.
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Feature request: Layers on Sketcher

Post by ckl6767 »

Oupps, I havent' been aware of this trick :oops: ...
Trying to create my front door I faced some difficulty on the sketcher.
Searching on the Forum, I came across this topic

What I nevertheless observed, is that it is not possible to view only the selected parts.
Capture.PNG
Capture.PNG (52.73 KiB) Viewed 863 times
Is that the expected behavior ?
or
an Issue with FC I'm using ?
Version: 0.19.18831 (Git)

Thanks in advance
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Feature request: Layers on Sketcher

Post by vocx »

ckl6767 wrote: Tue Dec 17, 2019 6:30 pm ...
What I nevertheless observed, is that it is not possible to view only the selected parts.
...
vocx wrote: Tue Dec 17, 2019 6:00 pm ...to filter the types of elements, "All", "Normal", "Construction", "External". You can't hide the geometry, ...
No, you cannot hide and show only some types.
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.
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Feature request: Layers on Sketcher

Post by ckl6767 »

vocx wrote: Wed Dec 18, 2019 1:14 am No, you cannot hide and show only some types.
This is really pity . :oops:
All is there in the "Elements", picking the selected one, should only show the selected one.
Would be so helpful, and shouldn't cost a lot of effort :roll: (I'm supposing .. :roll: )
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature request: Layers on Sketcher

Post by chrisb »

It is not recommended to make sketches too complicated. So I don't see a need for such functionality. If you have the feeling you want to hide something it is a good indicator that your sketch became too complicated. A new layer is like adding a new sketch.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
ckl6767
Posts: 92
Joined: Tue Apr 16, 2019 12:14 pm

Re: Feature request: Layers on Sketcher

Post by ckl6767 »

This is meaning, that I might use several sketches to create on element ?
Is that also the case for a Windows.
I didn't find. :cry:

Also, as highlighted above, when construction lines and lines overlaps, it is difficult to distinguish the right one.

If you think it is not a good idea, I have to leave with that.
User avatar
saso
Veteran
Posts: 1920
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: Feature request: Layers on Sketcher

Post by saso »

hiding different elements in the sketch would IMO be ok to have, it is already possible to hide the constraints and it is the "normal" workflow of how everything else can be shown/hidden in FreeCAD. but I would say that for sketcher this should work only inside the sketcher to help the user in creating the sketch, so to say if one hides some elements of the sketch, then when closing the sketch all the elements should be visible again. with other words, this functionality should only help the user while working inside the sketch, not controlling the actual sketch geometry (and other geometry that depend on the sketch) outside the sketch.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Feature request: Layers on Sketcher

Post by vocx »

saso wrote: Wed Dec 18, 2019 11:37 am hiding different elements in the sketch would IMO be ok to have, it is already possible to hide the constraints ...
I agree. It seems the required pieces to hide and show only some elements are there, but somebody has to go into the code and do it.
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.
Post Reply