ViaStitching 1.3: checks against poured copper, snap grid, skip markers
- clearances checked with exact shapes (round via) against pads, tracks, vias, copper drawings, other zones' poured copper and keepouts; Rectangular no longer uses square box tests - Outline follows the poured copper edge, vias on the grid - same-net pads: only thermal relief gap and hole-to-hole spacing - optional zone refill before placing vias - snap grid option (disables Grid Origin choice) - via group mode: per net, per net and pattern, new group per run - optional markers of skipped vias on User.Drawings with reason letter - option to keep vias out of footprint references - warning when "Only under selected Zone" has no zone of the net selected - dialog: options in two columns, narrower window
This commit is contained in:
1 parent
ae5f101eda
commit
bb6815b9b2
6 files changed
+1406
-309
No files matched your search
@@ -17,13 +17,14 @@ 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,663 ), style = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER )
|
||||
wx.Dialog.__init__ ( self, parent, id = wx.ID_ANY, title = u"Fill Area parameters", pos = wx.DefaultPosition, size = wx.Size( 350,663 ), style = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER )
|
||||
|
||||
self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )
|
||||
|
||||
bSizer3 = wx.BoxSizer( wx.VERTICAL )
|
||||
|
||||
fgSizer1 = wx.FlexGridSizer( 0, 2, 0, 0 )
|
||||
fgSizer1.AddGrowableCol( 1 )
|
||||
fgSizer1.SetFlexibleDirection( wx.BOTH )
|
||||
fgSizer1.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
|
||||
|
||||
@@ -33,8 +34,6 @@ class FillAreaDialog ( wx.Dialog ):
|
||||
fgSizer1.Add( self.m_staticText3, 1, wx.ALL|wx.EXPAND, 5 )
|
||||
|
||||
self.m_SizeMM = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_SizeMM.SetMinSize( wx.Size( 1000,-1 ) )
|
||||
|
||||
fgSizer1.Add( self.m_SizeMM, 1, wx.ALL|wx.EXPAND, 5 )
|
||||
|
||||
self.m_staticText9 = wx.StaticText( self, wx.ID_ANY, u"Via drill size (mm)", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
@@ -61,6 +60,14 @@ class FillAreaDialog ( wx.Dialog ):
|
||||
self.m_StepMM = wx.TextCtrl( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_StepMM, 1, wx.ALL|wx.EXPAND, 5 )
|
||||
|
||||
self.m_staticTextSnap = wx.StaticText( self, wx.ID_ANY, u"Snap grid (mm, 0 = off)", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticTextSnap.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticTextSnap, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_SnapMM = wx.TextCtrl( self, wx.ID_ANY, u"0", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_SnapMM, 1, wx.ALL|wx.EXPAND, 5 )
|
||||
|
||||
self.m_staticTextGridType = wx.StaticText( self, wx.ID_ANY, u"Grid Origin", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticTextGridType.Wrap( -1 )
|
||||
|
||||
@@ -96,48 +103,88 @@ class FillAreaDialog ( wx.Dialog ):
|
||||
self.m_cbFillType.SetSelection( 3 )
|
||||
fgSizer1.Add( self.m_cbFillType, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticTextGroupMode = wx.StaticText( self, wx.ID_ANY, u"Via group", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticTextGroupMode.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticTextGroupMode, 0, wx.ALL, 5 )
|
||||
|
||||
m_cbGroupModeChoices = [ u"Per net", u"Per net and pattern", u"New group per run" ]
|
||||
self.m_cbGroupMode = wx.ComboBox( self, wx.ID_ANY, u"Per net", wx.DefaultPosition, wx.DefaultSize, m_cbGroupModeChoices, wx.CB_READONLY )
|
||||
self.m_cbGroupMode.SetSelection( 0 )
|
||||
fgSizer1.Add( self.m_cbGroupMode, 0, wx.ALL, 5 )
|
||||
|
||||
bSizer3.Add( fgSizer1, 1, wx.EXPAND, 5 )
|
||||
|
||||
fgSizerOpts = wx.FlexGridSizer( 0, 4, 0, 0 )
|
||||
fgSizerOpts.SetFlexibleDirection( wx.BOTH )
|
||||
fgSizerOpts.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
|
||||
|
||||
self.m_staticText8 = wx.StaticText( self, wx.ID_ANY, u"Random it", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticText8.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticText8, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_staticText8, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_Random = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_Random, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_Random, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticText81 = wx.StaticText( self, wx.ID_ANY, u"Only under selected Zone", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticText81.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticText81, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_staticText81, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_only_selected = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_only_selected, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_only_selected, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticText71 = wx.StaticText( self, wx.ID_ANY, u"Ignore areas on other layers", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticText71.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticText71, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_staticText71, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_viaThroughAreas = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_viaThroughAreas, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_viaThroughAreas, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticText72 = wx.StaticText( self, wx.ID_ANY, u"Also on tracks with same net", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticText72.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticText72, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_staticText72, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_sameNetTracks = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_sameNetTracks, 0, wx.ALL, 5 )
|
||||
fgSizerOpts.Add( self.m_sameNetTracks, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticTextRefill = wx.StaticText( self, wx.ID_ANY, u"Refill zones before run", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticTextRefill.Wrap( -1 )
|
||||
|
||||
fgSizerOpts.Add( self.m_staticTextRefill, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_refillZones = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizerOpts.Add( self.m_refillZones, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticTextMarkSkipped = wx.StaticText( self, wx.ID_ANY, u"Mark skipped vias (User.Drawings)", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticTextMarkSkipped.Wrap( -1 )
|
||||
|
||||
fgSizerOpts.Add( self.m_staticTextMarkSkipped, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_markSkipped = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizerOpts.Add( self.m_markSkipped, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticTextSkipRef = wx.StaticText( self, wx.ID_ANY, u"Skip references (silkscreen)", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticTextSkipRef.Wrap( -1 )
|
||||
|
||||
fgSizerOpts.Add( self.m_staticTextSkipRef, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_skipReference = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizerOpts.Add( self.m_skipReference, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_staticText7 = wx.StaticText( self, wx.ID_ANY, u"Debug mode", wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
self.m_staticText7.Wrap( -1 )
|
||||
|
||||
fgSizer1.Add( self.m_staticText7, 1, wx.ALL|wx.EXPAND, 5 )
|
||||
fgSizerOpts.Add( self.m_staticText7, 0, wx.ALL, 5 )
|
||||
|
||||
self.m_Debug = wx.CheckBox( self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0 )
|
||||
fgSizer1.Add( self.m_Debug, 1, wx.ALL|wx.EXPAND, 5 )
|
||||
fgSizerOpts.Add( self.m_Debug, 0, wx.ALL, 5 )
|
||||
|
||||
|
||||
bSizer3.Add( fgSizer1, 1, wx.EXPAND, 5 )
|
||||
bSizer3.Add( fgSizerOpts, 0, wx.EXPAND, 5 )
|
||||
|
||||
bSizer1 = wx.BoxSizer( wx.HORIZONTAL )
|
||||
|
||||
@@ -158,7 +205,7 @@ class FillAreaDialog ( wx.Dialog ):
|
||||
bSizer1.Add( self.m_button3_delete, 0, wx.ALL, 5 )
|
||||
|
||||
|
||||
bSizer3.Add( bSizer1, 0, wx.EXPAND|wx.ALIGN_RIGHT, 5 )
|
||||
bSizer3.Add( bSizer1, 0, wx.EXPAND, 5 )
|
||||
|
||||
|
||||
self.SetSizer( bSizer3 )
|
||||
@@ -167,6 +214,7 @@ class FillAreaDialog ( wx.Dialog ):
|
||||
self.Centre( wx.BOTH )
|
||||
|
||||
# Connect Events
|
||||
self.m_SnapMM.Bind( wx.EVT_TEXT, self.onSnapChanged )
|
||||
self.m_button3_delete.Bind( wx.EVT_BUTTON, self.onDeleteClick )
|
||||
|
||||
def __del__( self ):
|
||||
@@ -174,6 +222,9 @@ class FillAreaDialog ( wx.Dialog ):
|
||||
|
||||
|
||||
# Virtual event handlers, override them in your derived class
|
||||
def onSnapChanged( self, event ):
|
||||
event.Skip()
|
||||
|
||||
def onDeleteClick( self, event ):
|
||||
event.Skip()
|
||||
|
||||
|
||||
Reference in new issue
Block a user