# Part requires both copper top and bottom layers?

**URL:** <https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167>\
**Category:** parts help\
**Created:** [February 11, 2022, 4:14am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167 "2022-02-11T04:14:25Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 11, 2022, 4:14am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/1 "2022-02-11T04:14:25Z")

</div>

I wonder if anyone can help clarify the cause of the following problem with a part I created (  
[MT3608 Module.fzpz](https://forum.fritzing.org/uploads/short-url/a1jQYXnH17Ofl5ntlvHx3Vkdkms.fzpz) (31.1 KB)).

The intent was for the [top] copper layer to appear as shown:

![MT3608 pcb](https://forum.fritzing.org/uploads/default/original/2X/5/528f12c417acb4a6547503e5c4f64dccdb54755e.svg)

with regular PTH connections, but with ‘enlarged’ pads.

When attempting to create a PCB to support this module, Fritzing reports the following for each of the 4 pins of the module when performing the DRC:

> Part MT3608 Module ‘M1’ is overlapping (top layer)  
> Connector Pin1 on Part MT3608 Module ‘M1’ should have both copper top and bottom layers, but the svg only specifies one layer

I can probably reason why the part components are reported as overlapping. The part effectively includes ‘pads’ around the pin holes in the top copper layer [as separate elements], but there was no intent to include these pads on both sides of the PCB.

The part file includes both copper0 and copper1 layers, but everything [in the svg] is indeed defined on just one layer.

Should I have done things differently?

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [February 11, 2022, 5:46am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/2 "2022-02-11T05:46:43Z")

</div>

The fzp has both copper0 and copper1 defined, which is needed for a THT part. So the pcb needs both as well. To get something on one side but not the other, it needs to be in only one of those 2 groups. The fix here is to change the inner “copper0\_1\_” group to just “copper0”. That gets the 2 groups to match what the fzp says. To get the extended pads on only one side, move them from inside the «renamed» copper0 group, to just the copper1 group.

```xml
  <g
    id="copper1"
    gorn="0.2">
    <path
      fill="#FFBD00"
      d="M0.723,29.392v8.788h15.874v-8.788H0.723z M8.66,36.868c-1.703,0-3.083-1.379-3.083-3.082s1.38-3.082,3.083-3.082s3.083,1.379,3.083,3.082S10.363,36.868,8.66,36.868z"
    />
    <path
      fill="#FFBD00"
      d="M0.723,10.012v8.788h15.874v-8.788H0.723z M8.66,17.488c-1.703,0-3.083-1.38-3.083-3.083c0-1.702,1.38-3.082,3.083-3.082s3.083,1.38,3.083,3.082C11.743,16.108,10.363,17.488,8.66,17.488z"
    />
    <path
      fill="#FFBD00"
      d="M85.449,10.012v8.788h15.874v-8.788H85.449z M93.386,17.488c-1.702,0-3.082-1.38-3.082-3.083c0-1.702,1.38-3.082,3.082-3.082c1.703,0,3.083,1.38,3.083,3.082C96.469,16.108,95.089,17.488,93.386,17.488z"
    />
    <path
      fill="#FFBD00"
      d="M85.449,29.392v8.788h15.874v-8.788H85.449z M93.386,36.868c-1.702,0-3.082-1.379-3.082-3.082s1.38-3.082,3.082-3.082c1.703,0,3.083,1.379,3.083,3.082S95.089,36.868,93.386,36.868z"
    />
    <g
      id="copper0"
      gorn="0.2.0">
      <circle
…

```

I edited the svg files manually (text editor), but the same is possible with inkscape or Illustrator. Now the circle elements, which need to be on both sides, are all that is left in the copper0 group.

There is a separate problem with the breadboard and schematic svg files. At least according to FritzingCheckPart. You (or Illustrator) have the proper breadboard and schematic layer ids in the svg elements. I do not know if that works properly (did not test it), but FritzingCheckPart says those should be the id of a group. I created groups to wrap the content of everything after the `desc` elements, and moved the id those to keep FCP happy. I also added a “\_test” suffix to the moduleId in the fzp file, so you can load this along side your existing part, to compare the difference in how Fritzing handles them. Here is my modified part, plus the pcb svg I used.

[MT3608\_Module\_test.fzpz](https://forum.fritzing.org/uploads/short-url/qo3OngXR3hGrT2KZO07PusbgmCL.fzpz) (30.9 KB)

![svg.pcb.MT3608_Module_pcb](https://forum.fritzing.org/uploads/default/original/2X/b/bc718e4a0d2346ef4bfe34e846d3f6f2b6b4e2e8.svg)

---

<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:** [February 11, 2022, 6:59am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/3 "2022-02-11T06:59:58Z")

</div>

My only question is do you want the holes to be 0.087in? That seems a little large to me. A header is only 0.038in and a 1n4001 diode is 0.042in. That may be as intended though as it is about right for 14ga wire.

Peter

---

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 11, 2022, 8:03am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/4 "2022-02-11T08:03:56Z")

</div>

Yes, I just made the holes the same size as those in the module.

Everything seems to work now with @microMerlin’s fixes. I’m not sure I can see any way around the problem in general, which will probably be related to how Illustrator manages things, other than manually editing the svg file as has been done in the present case. I generally have to edit the svg file in any case to correct inevitable floating point variations with hole sizes.

I also regularly get the warning messages mentioned when running FCP, which are presumably yet again the result of the way Illustrator does things, but on previous advice I’ve never worried about them. They’ve not had any noticeable negative impact on anything I’ve done to date.

---

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 11, 2022, 11:08am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/5 "2022-02-11T11:08:14Z")

</div>

The ‘overlapping issue’ still seems to be there (still reported by DRC). Is that going to cause trouble somewhere down the track?

---

<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:** [February 11, 2022, 3:38pm UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/6 "2022-02-11T15:38:33Z")

</div>

Doesn’t appear for me on Fritzing 0.9.9 on Win10:

 ![capture](https://forum.fritzing.org/uploads/default/original/2X/2/20b2b132680cde31cb633d63eaaae1265456200b.jpeg)

with @microMerlin 's part above.

As an aside, I’m not sure the holes will be plated through without copper on the bottom of the board (I’m not sure they won’t be either as I have never done this!)

Peter

---

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 11, 2022, 10:08pm UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/7 "2022-02-11T22:08:31Z")

</div>

OK, good. I was using an older version (0.9.3) on an old Mac (that runs an old version of Illustrator that is not subject to subscription fees!) that I use for the design work.

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [February 12, 2022, 12:32am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/8 "2022-02-12T00:32:32Z")

</div>

> [@vanepp](#):
>
> As an aside, I’m not sure the holes will be plated through without copper on the bottom of the board

There should be copper on the bottom from the standard circle element. The top is just getting “extra” copper to expand the pads.

---

<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:** [February 12, 2022, 1:01am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/9 "2022-02-12T01:01:56Z")

</div>

Somethings wrong:

 ![capture](https://forum.fritzing.org/uploads/default/original/2X/1/17016762c31636903796e8aa710be610cefeb7de.jpeg)

the bottom copper pads are misplaced which I had missed (I thought they weren’t there intentionally ). This would usually be translates but it doesn’t appear to be in this case. I think I would just put the larger pads on both sides of the board as being the easiest fix unless there is a reason for only wanting them on the top of the board. All looks well in Inkscape, but not in the gerber output.

 ![capture1](https://forum.fritzing.org/uploads/default/original/2X/7/70128c19e3b39c052203436dd20f6ebd4925e9d2.jpeg)

Peter

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [February 12, 2022, 1:56am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/10 "2022-02-12T01:56:54Z")

</div>

Very odd. There is not so much as a single transform in the pcb svg. Nothing that should cause an offset. If I had done this from scratch myself, the paths would be a bit different. What is there looks valid. I dislike the mixing of absolute and relative coordinates like that, but there is nothing wrong.

I tried on my system:  
5.14.18-100.fc33.x86\_64  
Flatpak 1.10.5  
Fritzing org.fritzing.Fritzing 0.9.6 stable user  
Fritzing Version 0.9.6 (b0.9.6 2021-02-21) 64 [Qt 5.15.3]

It works here.

 ![MT3608_test_gerbv](https://forum.fritzing.org/uploads/default/original/2X/3/35fd994cab4776f429bddcab4344d2f69eb88e4f.png)

 ![MT3608_test_gerber_top](https://forum.fritzing.org/uploads/default/original/2X/4/4cb188893c80ad341348037e4456242b7f13c777.png)

 ![MT3608_test_gerber_bottom](https://forum.fritzing.org/uploads/default/original/2X/2/2db3e77327fa79dc710468f272906a7684a54ef6.png)

As an extra test, I moved the copper1 path elements to after the copper0 group

```xml
<g id="copper1>
  <g id="copper0>
    …
  </g>
  <path …

```

[MT3608\_Module\_test2.fzpz](https://forum.fritzing.org/uploads/short-url/nXuHdbWSGMTDfoR5NvNmNnU3EQP.fzpz) (30.9 KB)

That worked for me as well.

I think this is a bug in the greber export introduced in one of the most recent versions. My flatpack version is a bit older.

---

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 12, 2022, 2:07am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/11 "2022-02-12T02:07:59Z")

</div>

I just did an export from 0.9.3 and all seemed OK in the [arbitrary] Gerber viewer I located on the Web:

 ![Screen Shot 2022-02-12 at 1.04.36 PM](https://forum.fritzing.org/uploads/default/original/2X/6/6918c0c321c7133da75d3bffc61609502b4eee37.jpeg)

---

<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:** [February 12, 2022, 2:09am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/12 "2022-02-12T02:09:09Z")

</div>

> [@microMerlin](#):
>
> I think this is a bug in the greber export introduced in one of the most recent versions. My flatpack version is a bit older.

Yep, this was generated on Fritzing version 0.9.9. I too don’t see any problems in the xml.

Peter

---

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 12, 2022, 2:13am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/13 "2022-02-12T02:13:37Z")

</div>

I just generated the gerbers from 0.9.9 and they display exactly the same as my 0.9.3 export…

---

<div class="post-metadata">

**Author:** ![microMerlin](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@microMerlin](https://forum.fritzing.org/u/microMerlin)\
**Post date:** [February 12, 2022, 2:21am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/14 "2022-02-12T02:21:51Z")

</div>

> [@UniquePete](#):
>
> I just generated the gerbers from 0.9.9 and they display exactly the same as my 0.9.3 export

> [@vanepp](#):
>
> Yep, this was generated on Fritzing version 0.9.9. I too don’t see any problems in the xml.

So maybe not a Fritzing bug at all. Or it is only in the Windows version. Maybe something unique in the environment @vanepp is using. Blame the gerber viewer? Though I think I am using the linux version of the same program.

```txt
gerbv version 2.7.0

```

---

<div class="post-metadata">

**Author:** ![UniquePete](https://forum.fritzing.org/user_avatar/forum.fritzing.org/uniquepete/32/6048_2.png) [@UniquePete](https://forum.fritzing.org/u/UniquePete)\
**Post date:** [February 12, 2022, 2:24am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/15 "2022-02-12T02:24:51Z")

</div>

I’m just using the first browser-based gerber viewer I found on the Web ([https://www.elecrow.com/gerberviewer.html](https://www.elecrow.com/gerberviewer.html)).

---

<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:** [February 12, 2022, 2:25am UTC](https://forum.fritzing.org/t/part-requires-both-copper-top-and-bottom-layers/15167/16 "2022-02-12T02:25:35Z")

</div>

Some screw up here. I just reloaded your .fzpz and exported it and this time the export works fine. Don’t know why the first one screwed up though.

Peter
