Porting to via creation in master branch (target: v6)

Know issues

 - Unable to delete VIA (since The old method - used in 5.1 - don't
   work anymore)
 - Via are invisible after plugin run. Need to save and reopen file to
   see them
This commit is contained in:
Jean-Samuel Reynaud
2021-02-01 12:27:34 +01:00
parent 176bc80599
commit c863e5e6a8
3 changed files with 42 additions and 23 deletions

View File

@ -65,7 +65,7 @@ class FillAreaAction(pcbnew.ActionPlugin):
self.boardDesignSettings = self.board.GetDesignSettings()
a.m_SizeMM.SetValue(str(pcbnew.ToMM(self.boardDesignSettings.GetCurrentViaSize())))
a.m_DrillMM.SetValue(str(pcbnew.ToMM(self.boardDesignSettings.GetCurrentViaDrill())))
a.m_ClearanceMM.SetValue(str(pcbnew.ToMM(self.boardDesignSettings.GetDefault().GetClearance())))
a.m_ClearanceMM.SetValue(str(pcbnew.ToMM(self.boardDesignSettings.GetSmallestClearanceValue())))
a.SetMinSize(a.GetSize())
PopulateNets("GND", a)