# Connector XX on Part YY should have both copper top and bottom layers, but the svg only specifies one layer

**URL:** <https://forum.fritzing.org/t/connector-xx-on-part-yy-should-have-both-copper-top-and-bottom-layers-but-the-svg-only-specifies-one-layer/19838>\
**Category:** parts help\
**Created:** [July 2, 2023, 12:02pm UTC](https://forum.fritzing.org/t/connector-xx-on-part-yy-should-have-both-copper-top-and-bottom-layers-but-the-svg-only-specifies-one-layer/19838 "2023-07-02T12:02:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [July 2, 2023, 2:59pm UTC](https://forum.fritzing.org/t/connector-xx-on-part-yy-should-have-both-copper-top-and-bottom-layers-but-the-svg-only-specifies-one-layer/19838/4 "2023-07-02T14:59:09Z")

</div>

First of there is already a part for this:

> [@KY-040 Rotary Encoder breakout board part](https://forum.fritzing.org/t/ky-040-rotary-encoder-breakout-board-part/11073/):
>
> Hello everyone, I was searching for a Fritzing part for a KY-040 rotary encoder. They usually come on a breakout board. But I wasn’t able to find one, or rather a working one. Interestingly enough, one does find plenty Frintzing sketch images with one such part, but nowhere an actual part. So I set out to create one myself. [KY-040\_AZ\_Rotary\_encoder\_v0.fzpz](https://forum.fritzing.org/uploads/short-url/bN5n4wTJwT4cgNHyY3Omdc8aznC.fzpz) (13.8 KB) This is the first time I created a part. Apart from encountering some weird behaviour on Fritzings part, it is working fine. T…

which has an improved version later in the post. That said, as @roboteach said your zip file is the entire folder which is why the part won’t load. To correct that zip only the files to a .fzpz file and it will work. Doing that indicates a number of errors: schematic lacks terminalIds which causes this:

 ![capture](https://forum.fritzing.org/uploads/default/original/3X/f/1/f1027b1912b124a1303110eb80f3056108fcd5c7.jpeg)

where the wire connects to the middle of the connector rather than the end as it should. As well in pcb the hole sizes are incorrect (and inconsistent):

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/d/4/d40079930204bcf7747d41bfc6d20003a03542fe.jpeg)

which shows in the gerber drill.txt file like this

; NON-PLATED HOLES START AT T1  
; THROUGH (PLATED) HOLES START AT T100  
M48  
INCH  
T100C0.035870  
T101C0.035871  
T102C0.038000  
%  
T100  
X009111Y012777  
T101  
X009111Y010777  
X009110Y011777  
X009111Y013777  
X009111Y014777  
T102  
X005111Y010777  
X005111Y013777  
X005111Y011777  
X005111Y014777  
X005111Y012777  
T00  
M30

The top two entries

T100C0.035870  
T101C0.035871

should match the third

T102C0.038000

which is the correct size for a 0.1in header. The 0.035in holes are too small. Running your part through FritzingCheckPart.py flags these errors:

Error 69: File  
‘svg.breadboard.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_breadboard.svg.bak’  
At line 22

Found a drawing element before a layerId (or no layerId)

Error 69: File  
‘svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak’  
At line 30

Found a drawing element before a layerId (or no layerId)

Error 77: File  
‘svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak’  
At line 227

terminalId connector13terminal can’t be a g as it won’t work.

Error 18: File  
‘part.KY-040\_M274\_Encoder\_9c03b2867a9e0537c22532e90d8f3222\_4.fzp.bak’

Connector connector8terminal is in the fzp file but not the svg file. (typo?)

svg svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak

Error 18: File  
‘part.KY-040\_M274\_Encoder\_9c03b2867a9e0537c22532e90d8f3222\_4.fzp.bak’

Connector connector9terminal is in the fzp file but not the svg file. (typo?)

svg svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak

Error 18: File  
‘part.KY-040\_M274\_Encoder\_9c03b2867a9e0537c22532e90d8f3222\_4.fzp.bak’

Connector connector10terminal is in the fzp file but not the svg file. (typo?)

svg svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak

Error 18: File  
‘part.KY-040\_M274\_Encoder\_9c03b2867a9e0537c22532e90d8f3222\_4.fzp.bak’

Connector connector11terminal is in the fzp file but not the svg file. (typo?)

svg svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak

Error 18: File  
‘part.KY-040\_M274\_Encoder\_9c03b2867a9e0537c22532e90d8f3222\_4.fzp.bak’

Connector connector12terminal is in the fzp file but not the svg file. (typo?)

svg svg.schematic.KY-040\_M274\_Encoder\_d33e40f98d1af7a1907cc6ccb62876a1\_3\_schematic.svg.bak

The no layerId errors mean that your part won’t export as an image, the rest should be self explanatory. The following tutorial may help you in correcting the errors:

[Part creation howto part 1 breadboard and pcb](https://forum.fritzing.org/t/part-creation-howto-part-1-breadboard-and-pcb/7692)

Peter

---

_[View the full topic](https://forum.fritzing.org/t/connector-xx-on-part-yy-should-have-both-copper-top-and-bottom-layers-but-the-svg-only-specifies-one-layer/19838)._
