Need help. Sketcher opens with 90dergee flip

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!
Post Reply
Lycosa
Posts: 2
Joined: Fri Jul 30, 2021 4:01 pm

Need help. Sketcher opens with 90dergee flip

Post by Lycosa »

Anyone able to see what what this noob has borked?
Creating a new sketch on a face of a body (interior face of my box) opens sketcher on it's side (X flipped vertical, Z horizontal). Clicking on the orientation box thing in the corner flips the sketch the right way up, but also flips the constraint tools 90degrees, so a line drawn on the X axis is considered vertical.

I'm a complete beginner so it is unlikely to be a bug and hopefully has an obvious solution.
Thanks

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (not a german, just learning)
Attachments
Test Box.FCStd
(58.09 KiB) Downloaded 23 times
Screenshot (11).png
Screenshot (11).png (451.93 KiB) Viewed 873 times
User avatar
Shalmeneser
Veteran
Posts: 9580
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Need help. Sketcher opens with 90dergee flip

Post by Shalmeneser »

It's normal.
If you select a face for a sketch, it will be 'reversed' if you are looking the backside of a regular plane.

Front face of XY = normal sketch
Backside face of XY = 'reversed' sketch

btw, first pocket could be replace with PartDesign_Thickness. You should not use more than once the same dimension.
freedman
Veteran
Posts: 3472
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Need help. Sketcher opens with 90dergee flip

Post by freedman »

Not sure why it's doing that but it's not like opening a text document where the app always knows what to do, that being said you might need to deal with some irregularities.
Most everyone has seen Sketcher open in a different orientation but typically not at 90 degrees.

Sketcher has a property to map to reverse.
Lycosa
Posts: 2
Joined: Fri Jul 30, 2021 4:01 pm

Re: Need help. Sketcher opens with 90dergee flip

Post by Lycosa »

Thanks for checking it out.

After watching some more tutorials, I've decided to just start over rather than attempt to fix this model since I hadn't really done that much and the lack of symmetry and formulas is going to make further work harder than necessary. Hopefully won't get myself quite so lost this time.
chrisb
Veteran
Posts: 54281
Joined: Tue Mar 17, 2015 9:14 am

Re: Need help. Sketcher opens with 90dergee flip

Post by chrisb »

If you have a 90° flip, you can change the AttachmentOffset and turn the sketch by ±90° around ist z axis.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
ubiquity
Posts: 63
Joined: Fri Nov 03, 2017 7:40 pm

Re: Need help. Sketcher opens with 90dergee flip

Post by ubiquity »

As you say Chris B. setting a 90 degree attachment offset solves the behaviour for constraints when editing the sketch in both the example file and another that I have looked at.
What I don't understand is why the 90 degree flip occurs and is expected behaviour, or why once the flip has occurred the behaviour of the constraints should change.
Is it something to do with local coordinates and normals and why?
OS - Linux Mint 19 & Win10 (both 64bit)
IT Training & Support (retired)
Cheers Paul
freedman
Veteran
Posts: 3472
Joined: Thu Mar 22, 2018 3:02 am
Location: Washington State, USA

Re: Need help. Sketcher opens with 90dergee flip

Post by freedman »

I'm not sure exactly what happened to the OP but I wrote a macro once that makes a new property at sketch creation/edit time and saves the current camera view and zoom level prior to sketcher opening. If anyone wants this I could post it. I always thought it would be useful on some big model with a bunch of small features or if you need to model off normal.
chrisb
Veteran
Posts: 54281
Joined: Tue Mar 17, 2015 9:14 am

Re: Need help. Sketcher opens with 90dergee flip

Post by chrisb »

I don't really know how the orientation is calculated; I take it as granted. If I need more, I have to use an attachment where I can control the orientation.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
ubiquity
Posts: 63
Joined: Fri Nov 03, 2017 7:40 pm

Re: Need help. Sketcher opens with 90dergee flip

Post by ubiquity »

Ok thanks Chris
Cheers
Paul
OS - Linux Mint 19 & Win10 (both 64bit)
IT Training & Support (retired)
Cheers Paul
Post Reply