Now for the bug.
issue #4039
If in PartDesign you Edit menu...Duplicate an existing sketch (don't duplicate dependencies), then use "map to Face" to attach that duplicate sketch to a different axis plane it will appear to work. However when you enter sketch edit mode by double clicking, then exit edit mode, the duplicated sketch will appear to go back and attach itself to a different axis plane. If you click on re-compute, it returns to its correct new axis plane.
Note that if you just create the sketch on the desired Axis Plane to begin with then you will not see this bug.
Here is a file create in FreeCAD 0.19 from the daily PPA. I did also create another file in the same manner, with similar contents, in 0.18.1 from the FreeCAD Release PPA and it had the same issue.
In the FreeCAD project file above I have created three sketches that contain a rectangle, for clarity the duplicate and third sketches also have other geometry added within their rectangle for easy visual identification.
To replicate
1)I first created "Sketch" on XY plane
2) edit menu ...duplicate "Sketch" to create "Sketch001"
3) Use PartDesign "Map to Face" to move its attachment to XZ plane
4) create a new sketch "Sketch002" on the ZY axis
5)Enter edit mode for sketch001 then exit, it will appear to have moved back to XY plane, (although depending on which sketch I entered first it did sometimes go to ZY plane)
6)click recompute, "sketch001" appears to move back to XZ where it attachment should be.
7) note that on occasions it appear on ZY plane on exiting edit mode, rather than its proper XZ or the original copied "Sketch" attachment XY plane, when it did this a recompute was required twice to move it to its correct attachment plane XZ,
8) After some more testing, it would seem that the system is remembering the attachment plane of the last few sketches that were in edit mode, and with each recompute it cycles back through them all until you get to the correct one. To see this, enter then exit edit mode for "Sketch", then "Sketch002", and then do the same for "Sketch001" (which is the sketch created by "Duplicate"), then after exiting edit mode for Sketch001 notice its apparent change in attachment plane...click on recompute repeatedly and watch "sketch001" apparently cycle through the attachment planes of the other two in the order in which you had entered/exited edit mode for each.
9) I noticed that the Attachment Map Mode property for the first and last sketches that I created on their correct planes is " Flat Face" where as Sketch001 (the duplicated sketch I moved with the "Map to face" tool) says "ObjectYZ" which is what I had selected. That means the YZ of "Body" right? I had selected the appropriate plane from the create new sketch dialogue for the other two on creation so shouldn't they say ObjectXY or XZ?
This first screen shot shows what the three sketches should look like...note that the rectangle containing one small circle is the Sketch001 which is the one that was created by duplication and moves around. It is shown here correctly in the XZ plane.

- Screenshot_20190627_094056.png (51.41 KiB) Viewed 480 times
In this next screen shot you can see sketch001 has moved to the same plane (XY) as, and is overlapping, sketch,

- Screenshot_20190627_093855.png (54.55 KiB) Viewed 480 times
In this last screen shot you can see sketch001 has moved to the same plane (ZY) as, and is overlapping, sketch002,

- Screenshot_20190627_094011.png (45.98 KiB) Viewed 480 times
OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.1.
Build type: Release
Python version: 3.6.7
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
bug still in 0.19
OS: Ubuntu 18.04.2 LTS (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Top