I create a part by modifying an existing one and change the connectors from holes to pads. So far, so good. But the PAD Connector types are seen on both top and bottom layers, whereas I need them to appear on the top layer only where I place the part. When uploading to manufacturer, I see in the part preview that the bottom layer is also showing the pads.
I wish to place the component to the top layer, with the connector pads showing on the top layer only.
You can (using an older but still supported for backwards comparability pcb layout) , but it is complex to do and usually not worth it. The normal case is only one of SMD or through hole.
That is likely intentional. It is possible to drill the holes (by using nonconn definitions in the copper layers) but normally only done on silkscreen (where you can drag a core parts–>pcb→hole part in to your sketch if you want the mounting holes to drill them) to avoid having to modify the part if you don’t want the mounting holes.
So I made 2 parts. One for the through Holes for the shaft and the screws, and one for the 3 Pads on the Top layer only. I just place both one on top of the other, perfectly aligned. The sum of both is the part I wanted.
As noted in the first post, that is easy. Just use nonconn to make the holes (which works on SMD parts) like this:
First I ungrouped the svg (in Inkscape in this case) then renamed the holes to nonconn0 to nonconn2, and set the stroke-width to 0 (so as to not create a copper ring) note that will have reduced the size of the hole diameter by the stroke-width so you will need to check the size of the holes as they will be too small in this part.
Note that I did not change the moduleId, so in order to load this part you will need to delete the current PADs part, then shutdown Fritzing answering yes to save parts and save parts bin (no to save sketch is fine.) Then restart Fritzing (which has now really deleted the part, you may already be aware of this or may not.) Then it will let you load the new part.
I see what happened, above I asked “Can I mix both “through holes” and “pads on top only” in one.svg?”
Which means mix both “Through-hole components” and “Pads (i.e. on the Top) only”.
Whereas I should have asked for the Core Parts’ “Hole” which I intended to mix with the Pads.
The stroke-widths set to 0 didn’t reduce the size of the hole.
I then hit the “only one of “SMD” or “Through-hole” components” paradigm in the Edit Part (new parts editor…) under Connectors, the checkboxes are labelled “Set all to:”. N.B. ALL.
Objects with ID “nonconn(x)” placed in copper1 in the .svg, are drilled correctly as desired as holes in the PCB, even though the part is set as to SMD (as opposed to “Through-hole”) in the “new parts editor”.
I get these warnings:
Copper0 layer export is empty.
exported mask layer Mask0 is empty
exported paste mask is empty
when exporting to Gerber. I don’t get these warnings under Export Etchable (SVG).
You always get those messages if your sketch only has SMD parts (as there is nothing on the copper0 layer, but any through hole part in the sketch will create a copper0 layer and thus remove the messages) so that is normal and expected (if surprising if you aren’t aware of the cause!)