Fix not working sdip_wizard.py
This commit is contained in:
parent
b71c2e5edf
commit
a4d4d9a241
|
@ -105,11 +105,12 @@ class RowedFootprint(FootprintWizardBase.FootprintWizard):
|
||||||
|
|
||||||
# Courtyard
|
# Courtyard
|
||||||
self.draw.SetLayer(pcbnew.F_CrtYd)
|
self.draw.SetLayer(pcbnew.F_CrtYd)
|
||||||
sizex = (pin1posX + cmargin) * 2 + pad_Hsize + thick
|
cclearance = pcbnew.FromMM(0.25)
|
||||||
sizey = (pin1posY + cmargin) * 2 + pad_Vsize + thick
|
sizex = (-pin1_posX + cclearance) * 2 + pad_width
|
||||||
# round size to nearest 0.1mm, rectangle will thus land on a 0.05mm grid
|
sizey = (-pin1_posY + cclearance) * 2 + pad_length
|
||||||
sizex = pcbnew.PutOnGridMM(sizex, 0.1)
|
# round size to nearest 0.02mm, rectangle will thus land on a 0.01mm grid
|
||||||
sizey = pcbnew.PutOnGridMM(sizey, 0.1)
|
sizex = pcbnew.PutOnGridMM(sizex, 0.02)
|
||||||
|
sizey = pcbnew.PutOnGridMM(sizey, 0.02)
|
||||||
# set courtyard line thickness to the one defined in KLC
|
# set courtyard line thickness to the one defined in KLC
|
||||||
self.draw.SetLineThickness(pcbnew.FromMM(0.05))
|
self.draw.SetLineThickness(pcbnew.FromMM(0.05))
|
||||||
self.draw.Box(0, 0, sizex, sizey)
|
self.draw.Box(0, 0, sizex, sizey)
|
||||||
|
|
Loading…
Reference in New Issue