Ticket #4133 - Sometimes face / sketch exports to flattened svg or dxf incorrectly

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!
Posts: 1
Joined: Thu Sep 19, 2019 12:18 am

Ticket #4133 - Sometimes face / sketch exports to flattened svg or dxf incorrectly

Postby bug_reporter_00342 » Thu Sep 19, 2019 12:28 am

This forum post is associated with the following Bug Tracker ticket:
issue #4133

I've been seeing this bug very occasionally I believe since 0.16, seemingly at random. Trying to export a particular sketch as a flattened svg or dxf truly flattens the constituent paths such that they lie on top of each other when they should not. It may be that the paths are being projected along the wrong (90deg) axis to produce the exported vector image.
Trying to export a clone or facebinder of the relevant sketch then exporting produces the same results.

Steps To Reproduce:
Open this FCStd file
(39.58 KiB) Downloaded 2 times
, try to export Sketch002 as Flattened SVG or DXF. View exported file in Inkscape or similar, visually compare to original sketch.
For reference, Sketch001 exports fine. Rotating the body of Sketch002 by 90deg to lie parallel to the plane of Sketch001 does not solve the issue.
I have tried in 0.17, 0.18, and 0.19 Daily with the same results.

Pad the sketch, export the pad as a STEP file, open the STEP file in a new FreeCAD document, recreate the original sketch by tracing out the face using external geometry, then export the new sketch as SVG or DXF.
This workaround does not support sketches that cannot currently be padded, such as those which would produce multiple solids.
Last edited by Kunda1 on Thu Sep 19, 2019 2:52 am, edited 1 time in total.
Reason: Added ticket number to thread title and used bug tag in post
Posts: 504
Joined: Thu Dec 27, 2018 12:28 pm

Re: Ticket #4133 - Sometimes face / sketch exports to flattened svg or dxf incorrectly

Postby Roy_043 » Thu Sep 19, 2019 8:11 pm

I don't think the bug is random. If you change (fix?) the alignment of Sketch002 itself (instead of that of its solid) the sketch will export correctly as a 2D DXF.
Map Mode: Deactivated
Angle: 0

Same issue discussed here: