[BUG][0.20] "Open sketch in Section View mode" preference has no effect

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!
Lupin
Posts: 76
Joined: Sat Mar 13, 2021 10:55 am

[BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by Lupin »

It seems that the Sketcher preference "Open sketch in Section View mode" has no effect. I always have to select "view section" (or hotkey Q, S) after opening a sketch even when the option is set.

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.26858 (Git)
Build type: Release
Branch: master
Hash: e209bc706d35121098f9bac779bc6b09c24ddd95
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: German/Austria (de_AT)
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by openBrain »

Will have a look.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by openBrain »

Lupin wrote: Fri Jan 21, 2022 8:17 pm It seems that the Sketcher preference "Open sketch in Section View mode" has no effect. I always have to select "view section" (or hotkey Q, S) after opening a sketch even when the option is set.
Can't reproduce.
Could you :
* update FreeCAD ?
* screenshot your Sketcher/Display preferences ?
* look at Property pane 'View/Section View' when you just open the sketch (need to select the sketch in the tree) ?

Can another one confirm bug ?
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by kisolre »

This is VisibilityAutomation option as per each sketch. Did you press "Apply to existing sketches" button?

Works as expected here:

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.27188 (Git)
Build type: Release
Branch: master
Hash: ad24b32fefe5a7be6afb9e238ab2eeee53d15170
Python version: 3.8.8
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Bulgarian/Bulgaria (bg_BG)
Lupin
Posts: 76
Joined: Sat Mar 13, 2021 10:55 am

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by Lupin »

I tried this version (with the same result):
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.27129 (Git)
Build type: Release
Branch: master
Hash: fcaa698be874323ae26b20d7adf92214989c2d38

I am depending on "weekly-builds" or uwestoehr's installer builds though, so I can't test every version.

Here's a screenshot of the settings:
preferences_sketcher_display.png
preferences_sketcher_display.png (65.09 KiB) Viewed 1777 times
The property "View/Section View" is set to whatever value is set in the preferences on new sketches and correctly applied to existing ones when pushing the "apply to sketches" button. But even when set to true, section view is not applied when opening a sketch. The property does not change when I select "View Section" from the "Sketch" menu. It's as if the the property and what Sketcher looks for are two different things.

There aren't any messages appearing in the console while doing all of this.
domad
Veteran
Posts: 2090
Joined: Mon Jun 22, 2020 12:16 pm

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by domad »

Hi Lupin, greetings to the Community!
My version works perfectly.
Isn't it that your sketch does not intersect any object or does the sketch lie on a lower plane?
Consider that only the objects that are behind the sketch plane will be displayed, so if the sketch intersects an object you will see the sectioning of the part behind it, if the sketch is above the object but does not intersect it you will see the whole object , if the sketch is below the object without intersecting it, the object will not be seen.
Attachments
Open_sketch_section_view_mode.png
Open_sketch_section_view_mode.png (342.18 KiB) Viewed 1754 times
Lupin
Posts: 76
Joined: Sat Mar 13, 2021 10:55 am

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by Lupin »

domad wrote: Mon Jan 24, 2022 11:22 am Isn't it that your sketch does not intersect any object or does the sketch lie on a lower plane?
The sectioning itself isn't broken, it's just that it isn't applied when opening a sketch.

Look at this simple model:
Unbenannt.png
Unbenannt.png (16.06 KiB) Viewed 1742 times


Opening the sketch it looks like this (even though the "Section View" property of the sketch is set):
Zwischenablage-1.png
Zwischenablage-1.png (2.08 KiB) Viewed 1742 times
Zwischenablage-3.png
Zwischenablage-3.png (17.91 KiB) Viewed 1742 times


After pressing Q,S it looks like this (as it should by itself after opening the sketch):
Zwischenablage-2.png
Zwischenablage-2.png (2.67 KiB) Viewed 1742 times
Zwischenablage-4.png
Zwischenablage-4.png (16.82 KiB) Viewed 1742 times
domad
Veteran
Posts: 2090
Joined: Mon Jun 22, 2020 12:16 pm

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by domad »

Lupin wrote: Mon Jan 24, 2022 11:43 am
The sectioning itself isn't broken, it's just that it isn't applied when opening a sketch.
.....
Hi
.... on my build I confirm no problem
chrisb
Veteran
Posts: 54143
Joined: Tue Mar 17, 2015 9:14 am

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by chrisb »

I have the same behaviour here: In the sketch the property "SectionView" is True. Yet Sketcher doesn't start in Section view.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.27078 (Git)
Build type: Release
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [BUG][0.20] "Open sketch in Section View mode" preference has no effect

Post by openBrain »

Lupin wrote: Mon Jan 24, 2022 10:25 am The property "View/Section View" is set to whatever value is set in the preferences on new sketches and correctly applied to existing ones when pushing the "apply to sketches" button. But even when set to true, section view is not applied when opening a sketch. The property does not change when I select "View Section" from the "Sketch" menu. It's as if the the property and what Sketcher looks for are two different things.
It means that you can have an existing sketch, not in edit mode, where View/Section View is 'true', and when you edit this sketch the section view isn't applied ?
Post Reply