diff --git a/ViaStitching/FillAreaAction.py b/ViaStitching/FillAreaAction.py
index 71795e6..cd21c31 100644
--- a/ViaStitching/FillAreaAction.py
+++ b/ViaStitching/FillAreaAction.py
@@ -51,14 +51,20 @@ class FillAreaAction(pcbnew.ActionPlugin):
def Run(self):
a = FillAreaDialogEx(None)
- a.m_SizeMM.SetValue("0.8")
+ #a.m_SizeMM.SetValue("0.8")
a.m_StepMM.SetValue("2.54")
- a.m_DrillMM.SetValue("0.3")
+ #a.m_DrillMM.SetValue("0.3")
#a.m_Netname.SetValue("GND")
- a.m_ClearanceMM.SetValue("0.2")
+ #a.m_ClearanceMM.SetValue("0.2")
a.m_Star.SetValue(True)
a.m_bitmapStitching.SetBitmap(wx.Bitmap( os.path.join(os.path.dirname(os.path.realpath(__file__)), "stitching-vias-help.png") ) )
self.board = pcbnew.GetBoard()
+ 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.SetMinSize(a.GetSize())
+
PopulateNets("GND",a)
modal_result = a.ShowModal()
if modal_result == wx.ID_OK:
diff --git a/ViaStitching/FillAreaDialog.py b/ViaStitching/FillAreaDialog.py
index 853d380..48b8409 100644
--- a/ViaStitching/FillAreaDialog.py
+++ b/ViaStitching/FillAreaDialog.py
@@ -17,7 +17,7 @@ import wx.xrc
class FillAreaDialog ( wx.Dialog ):
def __init__( self, parent ):
- wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Fill Area parameters", pos = wx.DefaultPosition, size = wx.Size( 402,580 ), style = wx.DEFAULT_DIALOG_STYLE )
+ wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Fill Area parameters", pos = wx.DefaultPosition, size = wx.Size( 402,580 ), style = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER )
import sys
if sys.version_info[0] == 2:
diff --git a/ViaStitching/FillAreaTpl.fbp b/ViaStitching/FillAreaTpl.fbp
index 3e72245..fa064c4 100644
--- a/ViaStitching/FillAreaTpl.fbp
+++ b/ViaStitching/FillAreaTpl.fbp
@@ -46,7 +46,7 @@
FillAreaDialog
402,580
- wxDEFAULT_DIALOG_STYLE
+ wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER
Fill Area parameters
diff --git a/ViaStitching/stitching-vias-help.png b/ViaStitching/stitching-vias-help.png
index 7153eaf..b307d2d 100644
Binary files a/ViaStitching/stitching-vias-help.png and b/ViaStitching/stitching-vias-help.png differ
diff --git a/ViaStitching/stitching-vias-help.svg b/ViaStitching/stitching-vias-help.svg
index 16a5bfa..5aa37a8 100644
--- a/ViaStitching/stitching-vias-help.svg
+++ b/ViaStitching/stitching-vias-help.svg
@@ -7,14 +7,14 @@
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- height="45.245544"
- width="73.978897"
+ height="40.400002"
+ width="73.133354"
version="1.1"
id="svg2"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="stitching-vias-help.svg"
- viewBox="0 0 69.355216 42.417698"
- inkscape:export-filename="C:\Users\userC\AppData\Roaming\kicad\scripting\plugins\ViaStitching\stitching-vias-help.png"
+ viewBox="0 0 68.56252 37.875002"
+ inkscape:export-filename="/home/mau/.kicad_plugins/ViaStitching/stitching-vias-help.png"
inkscape:export-xdpi="270.51999"
inkscape:export-ydpi="270.51999">
+ originx="27.34375"
+ originy="11.937501" />
@@ -98,13 +98,13 @@
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3872"
- d="m 4.146349,3.208849 v 36 h 62.000018 l -1.8e-5,-36 z"
+ d="m 1.875,0.9375 v 36 h 62.000018 l -1.8e-5,-36 z"
style="opacity:0.69599998;fill:#dfbd8a;fill-opacity:1;stroke:none;stroke-width:4.54269791;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:export-xdpi="82.105263"
inkscape:export-ydpi="82.105263" />
+ transform="translate(3.087584,3.5878498)">