realthunder / fcad_pcb

FreeCAD scripts for PCB CAD/CAM
MIT License
126 stars 25 forks source link

generating pads: wrong geometry on custom pad with multiple primitives #65

Closed easyw closed 7 months ago

easyw commented 1 year ago

please find attached 3 fp model with multiple custom pads that will not be built correctly KWDPLS32EC6H6J4C8E1-kv6.zip Custom_pad_demo-kv6.zip soic-8-mask-tenting-0.25-4-kv6.zip

cp-3-c cp-2-c cp-1-c

the code to generate pads:

import fcad_pcb
from fcad_pcb import kicad
from kicad_parser import KicadPCB

filename= r'D:\temp\soic-8-tenting-thermal/s8.kicad_pcb'
pcb = kicad.KicadFcad(filename,via_skip_hole=False,via_bound=0)
pcb.setLayer(0) #'F.Cu')
topP=pcb.makePads(shape_type='solid',thickness=0.01,holes=True,fit_arcs=True)