Feature request: 2D sketch in 3D view

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
Posts: 21410
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature request: 2D sketch in 3D view

Postby chrisb » Fri Oct 25, 2019 9:10 am

freedman wrote:
Fri Oct 25, 2019 8:36 am
OK! I looked all over :) , where is that icon "View sketch perpendicular to sketch plane"? Do you know?
It's in Sketcher. Looks similar to the CreateSketch icon.
freedman
Posts: 1144
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Feature request: 2D sketch in 3D view

Postby freedman » Fri Oct 25, 2019 9:43 am

It's in Sketcher. Looks similar to the CreateSketch icon.
There it is! That is perfect. Thanks, great idea. Feature request #3.
triplus
Posts: 9136
Joined: Mon Dec 12, 2011 4:45 pm

Re: Feature request: 2D sketch in 3D view

Postby triplus » Fri Nov 01, 2019 10:49 pm

If i understand correctly, what you would like to do, while in the Sketcher edit mode, try this macro command:

Code: Select all

try:
    ActiveSketch.ViewObject.TempoVis.restore()
except:
    pass
https://www.freecadweb.org/wiki/Customize_Toolbars
freedman
Posts: 1144
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Feature request: 2D sketch in 3D view

Postby freedman » Sun Nov 03, 2019 8:30 pm

@ triplus, I see where your headed but I tried both of these and they did nothing while in Sketcher.

Code: Select all

ActiveSketch.ViewObject.TempoVis.restore()
ActiveSketch.ViewObject.TempoVis.restoreCamera()
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16085 (Git)
Build type: Release
Branch: master
triplus
Posts: 9136
Joined: Mon Dec 12, 2011 4:45 pm

Re: Feature request: 2D sketch in 3D view

Postby triplus » Sun Nov 03, 2019 11:41 pm

While in Sketcher workbench or while in Sketcher edit mode (editing sketch)?
freedman
Posts: 1144
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Feature request: 2D sketch in 3D view

Postby freedman » Mon Nov 04, 2019 3:13 am

I tried in Sketcher WB and and thru Part Design. And yes while in edit mode. What I'm doing; I go into sketcher, paste the command into the Python console and hit enter. I don't see anything change in the sketch window. I presume your seeing the view return to the original 3D saved view while in sketcher. I'm in gesture mouse mode. Anyone else out there that can try this.
Thanks
chrisb
Posts: 21410
Joined: Tue Mar 17, 2015 9:14 am

Re: Feature request: 2D sketch in 3D view

Postby chrisb » Mon Nov 04, 2019 6:55 am

I tried triplus' code while in Sketcher.
I had skewed the sketch using Alt+Mouse. Executing the code did the same as "view sketch perpendicular to sketch plane". But it worked only once. Further tries of doing the same did nothing (visible).
User avatar
bejant
Posts: 6061
Joined: Thu Jul 11, 2013 3:06 pm

Re: Feature request: 2D sketch in 3D view

Postby bejant » Mon Nov 04, 2019 1:35 pm

freedman wrote:
Fri Oct 25, 2019 4:25 am
I would like to get your thoughts;

1) The way I see Sketcher currently working (without the feature request); Let's say you have a 10 story building and your zoomed in at the first floor, in the tree you click on a sketch of a unique 10th floor item and sketcher opens a sketch window, the issue here is the fact that the sketch items are up on the 10th floor and sketcher opens at the current location. Sketcher does not select a sketch center when opening.
Sometimes it would be handy to have Sketcher open with the same view that existed when Sketcher was closed, in the same manner that Part Design can return to the same view that existed just before a Sketch is edited in Sketcher.

I suppose that if that was the default behavior then people would set the desired view just before closing the Sketch, although it could alternatively be a future Preference setting (I wonder if one day the number of Preferences settings will become overwhelming).
freedman
Posts: 1144
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Feature request: 2D sketch in 3D view

Postby freedman » Mon Nov 04, 2019 4:15 pm

I have linked 3 feature requests to this thread so I would like to close it (unless there is additional info about the topic) so it doesn't get too long :) . I will start another post with some thoughts about sketcher transitions.
Thanks