realthunder / fcad_pcb

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

Castellated holes import #67

Open ONLYA opened 1 year ago

ONLYA commented 1 year ago

I created castellated holes by putting them at the edge of the PCB. When I import the PCB by pcb.make(...), the entire holes are imported at the edge instead of semi-cut holes as shown in the KiCad's internal 3D viewer. Screenshot_20230414_170802

Is there an already made feature that I do not know or it is still awaiting to be implemented?

realthunder commented 7 months ago

Could you please provide a sample file with this feature?

realthunder commented 6 months ago

Just added this feature. It's experimental at the moment. You're welcome to test it. The turn it on, pass in castellated=True when load your pcb file, as shown below,

pcb = kicad.KicadFcad('/path/to/some.kicad_pcb', castellated=True)

After which any of the pcb.makeXXX() functions shall produce castellated coppers.