Skip to content

Simple SVG Importer for EasyEDA PCB that doesn't convert everything to Comic Sans πŸ˜„

Notifications You must be signed in to change notification settings

xsrf/easyeda-svg-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

66 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SVG Import Extension for EasyEDA

This is an extension for EasyEDA that can import SVG files / paths into EasyEDA without any distorions that the internal Image import produces. It also allows to import SVGs as solid regions or tracks/outline.

This is work in progress and not at all finished or polished!

Installation

Download the latest extension.zip from Releases and extract the files. Then in EasyEDA go to "Advanced" -> "Extensions" -> "Extensions Setting" -> "Load Extension..." -> "Select Files..." and select all extracted files from the extension directory.

Extension Installation

Updates

There is no update function for extensions in EasyEDA. Please remove the extension from the "Extensions Setting" and install the new version.

Usage

Demo

Issues

To be fair, I wrote this for a single usecase: Importing procedurally generated SVGs from OpenSCAD into EasyEDA. And it works fine. OpenSCAD creates very simple SVGs just using path elements.

SVG however supports more primitives than just path. Other primitives, like line, circle, polyline, rect etc. are not supported. The main reason for this is that all of these primitives can also be expressed as path - which is the most powerful primitive in SVG.

Preparing SVGs using Inkscape

Convert objects to paths

As mentioned, the SVGs are required to use path elements to be properly imported. If your imported SVG is missing some parts or you get the message "No path-Tags found πŸ˜•" you may need to convert it.

An easy way is by using the free software Inkscape and opening your SVG with it. After that, select all elements of your Drawing (CTRL+A) - or just those missing after import - and convert them to paths using Path -> Object to Path or Stroke to Path (depends on your drawing, try it). Then just save it as a new file.

Inkscape Path-Menu

Path -> Union or Simplify may also help reducing complexity if you have an SVG with lots of overlapping shapes.

Translating/Moving objects/groups

When you translate/move objects or a group of objects, the translation may actually not show up in the imported SVG. To fix this, just select the group of objects and hit Object -> Ungroup and (if you want) Object -> Group again.

Working with text

To import Text, it has to be converted with Object to Path. This will generate one object for each letter of the text which will get hard to work with in EasyEDA. Use Path -> Combine to combine all letters to a single path.

What the import will look like

Example screenshot of Shapes in Inkscape and EasyEDA

Still issues?

If you still have issues importing an SVG, feel free to open an issue.