Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

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!
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Ellipse issues imported from SVG files

Post by renatorivo »

Here's my FreeCAD file, only I have not found with Ikscape path 5645, 5557 and 5043, the up arrow, I do not know why it appears.
Bug-renato.FCStd
(39.45 KiB) Downloaded 36 times
renato
renatorivo
Veteran
Posts: 2611
Joined: Tue Feb 21, 2012 8:07 pm
Location: Torino - Italy

Re: Ellipse issues imported from SVG files

Post by renatorivo »

Hi,
QCAD import the same thing as FreeCAD
bug-qcad.png
bug-qcad.png (7.39 KiB) Viewed 1690 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ellipse issues imported from SVG files

Post by Kunda1 »

what's the status of this issue?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
oldmachine
Posts: 243
Joined: Wed May 31, 2017 11:49 pm

Re: Ellipse issues imported from SVG files

Post by oldmachine »

I use CNC mill to machine PCB’s. It’s the reverse of what you’re doing, meaning, I generate an SVG in Freecad, then, open it in Inkscape (or EZDraw) and create a silkscreen layer (if I want one).

I tried using PartDesign and Part workbenches and exporting the SVG. But, always had mixed results until I discovered the main problem: Exporting SVG from PartDesign or Part workbenches does not provide an SVG file type option but, the Draft workbench does and the file opens correctly in Inkscape. (In Draft wb, open Preferences, and set the Import/Export>SVG to Raw for CAM).

Now I can draw what I want in Draft, Export the full list of my drawn items, and Export the SVG. Then, I can open the file in Inkscape and do what I need for a PCB.

The Freecad Draft pref’s also has options for Import - perhaps that’s something you can try…
MAC OSX Sierra
3D Parts & Links (made using FreeCad and Solidworks): https://www.thingiverse.com/Still_Breathing/designs
Android App & Links: https://play.google.com/store/apps/deta ... .bestknots
EdgarRobles
Posts: 72
Joined: Fri Jul 31, 2015 1:35 pm
Location: Mexico
Contact:

Re: Ellipse issues imported from SVG files

Post by EdgarRobles »

oldmachine wrote: Fri Jan 26, 2018 10:07 pm The Freecad Draft pref’s also has options for Import - perhaps that’s something you can try…
I tested bug.svg file again and it seems better import as geometry option result and some extra points i think those points are from deformed arrow shapes.
Captura de pantalla de 2018-01-28 14-19-28.png
Captura de pantalla de 2018-01-28 14-19-28.png (217.21 KiB) Viewed 1458 times
Ellipses apper in segments
Captura de pantalla de 2018-01-28 14-19-57.png
Captura de pantalla de 2018-01-28 14-19-57.png (192.72 KiB) Viewed 1458 times
OS: Ubuntu 16.04.3 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13125 (Git)
Build type: None
Branch: master
Hash: 59dedd12751a3f5730734741ae6258a4ea4f5745
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: Spanish/Mexico (es_MX)
also i tested bug-renato.svg file. May be bug.svg file is a damage file because renato's file looks much better.
bug-renato.jpeg
bug-renato.jpeg (14.49 KiB) Viewed 1458 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ellipse issues imported from SVG files

Post by Kunda1 »

Sorry to necrobump, but issue #2488 references this thread.
I tried using PartDesign and Part workbenches and exporting the SVG. But, always had mixed results until I discovered the main problem: Exporting SVG from PartDesign or Part workbenches does not provide an SVG file type option but, the Draft workbench does and the file opens correctly in Inkscape. (In Draft wb, open Preferences, and set the Import/Export>SVG to Raw for CAM).

Now I can draw what I want in Draft, Export the full list of my drawn items, and Export the SVG. Then, I can open the file in Inkscape and do what I need for a PCB.
Devs, can you shed light on how to proceed here? Keep the ticket open because of the different SVG export behavior between ParDesign/Part and Draft or close ?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Syres
Veteran
Posts: 2891
Joined: Thu Aug 09, 2018 11:14 am

Re: Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

Post by Syres »

Kunda1 wrote: Wed Jan 19, 2022 5:55 pm Bumping again issue #2488 as part of an effort to clean up the bugtracker
Is this not the fix, certainly looks like it? https://github.com/FreeCAD/FreeCAD/pull ... a7cc238262
User avatar
yorik
Founder
Posts: 13630
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

Post by yorik »

Maybe, but I'm not sure. The fix is for misplaced objects, while here it seems more like a precision problem. But we need to test the attached file again to see
User avatar
Roy_043
Veteran
Posts: 8409
Joined: Thu Dec 27, 2018 12:28 pm

Re: Ticket #2488: Standard paths issues from import SVG to FreeCAD (was: Ellipse issues imported from SVG files)

Post by Roy_043 »

Ellipses are fixed.
But arrow heads are not.

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of FreeCAD: 64-bit
Version: 0.20.27129 (Git)
Build type: Release
Branch: master
Hash: fcaa698be874323ae26b20d7adf92214989c2d38
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Dutch/Netherlands (nl_NL)
Attachments
svg-ellipses-arrows.png
svg-ellipses-arrows.png (6.84 KiB) Viewed 1027 times
Post Reply