component
Sunon FG-4 40 mm fan guard
Public Made by Adomby adom
Metal fan guard with 32 mm mounting pitch; approximate drawing-led mechanical assets.
main
import pcbnew,json,pathlib
p=pathlib.Path(__file__).parent
f=pcbnew.FootprintLoad(str(p),"FG-4")
assert f is not None
assert len(list(f.Pads()))==0
assert len(list(f.Models()))==1
print(json.dumps({"nativeVersion":pcbnew.GetBuildVersion(),"pads":len(list(f.Pads())),"models":len(list(f.Models())),"graphics":len(list(f.GraphicalItems()))}))