Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem] Draft: Sometimes face/sketch exports to flattened SVG or DXF incorrectly #5990

Open
FreeCAD-Bug-Importer opened this issue Feb 7, 2022 · 3 comments
Labels

Comments

@FreeCAD-Bug-Importer
Copy link
Collaborator

FreeCAD-Bug-Importer commented Feb 7, 2022

Issue imported from https://tracker.freecad.org/view.php?id=4133

  • Reporter: bug_reporter_00342
  • Date submitted: 9/17/2019

Original report text

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.

Additional information

OS: Ubuntu 18.04.3 LTS (ubuntu:GNOME/ubuntu)
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/UnitedStates (en_US)

Steps to reproduce

Open attached FCStd file, cant_export_Sketch002.zip

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.

Tried in 0.17, 0.18, and 0.19 Daily with the same results.

Discussion from Mantis ticket

Comment by bug_reporter_00342 2019-09-17 17:21

Workaround is to 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.


Comment by Kunda1 2019-09-19 02:53

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=39441


Comment by Kunda1 2019-09-27 10:48

Apparently, similiar discussion at https://forum.freecadweb.org/viewtopic.php?f=3&t=33708

@FreeCAD-Bug-Importer FreeCAD-Bug-Importer added Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Bug This issue or PR is related to a bug labels Feb 7, 2022
@luzpaz luzpaz added the Missing: confirmation Missing confirmation from other testers label May 16, 2022
@luzpaz luzpaz changed the title Sometimes face / sketch exports to flattened svg or dxf incorrectly Sometimes face/sketch exports to flattened SVG or DXF incorrectly Mar 15, 2023
@luzpaz luzpaz added Help wanted and removed Missing: confirmation Missing confirmation from other testers labels Mar 15, 2023
@Roy-043 Roy-043 added WB Draft Related to the Draft Workbench and removed Bug This issue or PR is related to a bug Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD File format: SVG Help wanted labels Jul 16, 2023
@luzpaz luzpaz changed the title Sometimes face/sketch exports to flattened SVG or DXF incorrectly [Problem] Draft: Sometimes face/sketch exports to flattened SVG or DXF incorrectly Nov 18, 2023
@Roy-043
Copy link
Contributor

Roy-043 commented Dec 28, 2023

See also: #11224

@Roy-043
Copy link
Contributor

Roy-043 commented Jan 27, 2024

#11890 has fixed the issue for the C++ DXF exporter.
Let's leave this open for the legacy DXF exporter and SVG export.

@jnweiger
Copy link

jnweiger commented Apr 26, 2024

Here is a potential fix for the SVG exporter: #13652

For anybody who wants to try this with 0.21.2, here is a backport #13658
fix-export-svg-direction-0212-diff.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

4 participants