xsrf / easyeda-svg-import

Simple SVG Importer for EasyEDA PCB that doesn't convert everything to Comic Sans 😄
85 stars 8 forks source link

<FR> Import multiple layers using label tags #26

Open ithinkido opened 1 year ago

ithinkido commented 1 year ago

As the manufacturing abilities of the PCB houses keep getting better, it is possible to create very complex artistic PCBs that take advantage of the effects of overlapping layers to get varying colors and tones. The import at the moment work great on single layer basis. some of these designs require 7 or more separate layers to be imported, and this can be quite tedious to do one at a time, not to mention the alignment. One possible solution would be to be able to tag the layer for import using the layer name within the svg. for example F.Cu
B.Cu
F.SilkS
B.SilkS
F.Mask
B.Mask
Edge.Cuts

This is a demo of how I would image such an SVG world look like to show the layer naming LOGO_demo

arduino12 commented 1 year ago

@xsrf This will save so much time!

Instead of manually exporting each SVG layer to a seperate SVG file, then importing every SVG file to a different layer using your extension- It could be automated in the extension..!

As @ithinkido wrote, the name of each SVG layer will be the target EasyEDA layer, (I think its better to go with EasyEDA layers names like "TopLayer", "TopSilkLayer", "BoardOutLine"...) Import all layers as "SVG Node" except the "BoardOutLine" that needs to be imported as a "Track".

Hope you find some time to add this useful feature!🙏