I read a forum post some time ago about parts that have no pins, or fewer pins, in the PCB view. It described a method of hiding the unused pins by defining them like this:
<pcbView>
<p layer="copper0" svgId="connector11pin" hybrid="yes"/>
<p layer="copper1" svgId="connector11pin" hybrid="yes"/>
</pcbView>
Peter pointed out at the time that this caused the connector labels to be displayed incorrectly.
Could it be that this method now works correctly with the current version of Fritzing?
This is what I did:
I added the pins that should not be visible to the PCB SVG:
<circle
id="connector7pin"
cx="39"
cy="903"
fill="none"
r="29"
stroke="none" />
Then I marked the corresponding connectors as hybrid="yes" in the .fzp file:
<pcbView>
<p layer="copper0" svgId="connector7pin" hybrid="yes"/>
<p layer="copper1" svgId="connector7pin" hybrid="yes"/>
</pcbView>
fzp_checker.py reports no errors, the part imports into Fritzing without any warnings, and the Parts Editor no longer reports any unconnected pins.
Would you recommend this approach, or is there a better way to handle parts that intentionally have fewer (or no) PCB connectors?
Here is the Part:
4_kanal_solid_state_relay.fzpz (31,0 KB)
Gruß Harald!