Copy link to clipboard
Copied
Cheers,
I'm using Illustrator 2020 V 24.0.3 with a file including 29 icon artboards. When I click Save As -> Select an artboard like no. 15 and save as .svg the output code of the .svg file includes the other 28 layers as well but empty. Check the example below. I would expect only the code of artboard 15 which I selected previously.
Thanks in advance,
Alex
...
<style type="text/css">
.st0{display:none;}
.st1{display:inline;}
</style>
<g id="Ebene_29">
</g>
<g id="Ebene_21">
</g>
<g id="Ebene_22">
</g>
<g id="Ebene_24">
</g>
<g id="Ebene_23">
</g>
<g id="Ebene_27">
</g>
<g id="Ebene_28">
</g>
<g id="Ebene_26">
</g>
<g id="Ebene_25">
</g>
<g id="Ebene_15">
<!-- The actual artboard i wanted to export --->
</g>
<g id="Ebene_17">
</g>
<g id="Ebene_18">
</g>
<g id="Ebene_20">
</g>
<g id="Ebene_19">
</g>
<g id="Ebene_12">
</g>
...
Copy link to clipboard
Copied
I am not able to mimick the problem. You could just open the .svg in text editor and delete out the unnecessary <g> tag layers.
Copy link to clipboard
Copied
Thanks for the reply! That, of course, would work with one icon. The icon library currently includes at least 30 icons so that workaround on every single icon would be very inconvenient. I'll probably try to set up from scratch 🙂