MCPcopy
hub / github.com/scottbez1/splitflap / copy

Method copy

thirdparty/panelize.py:687–700  ·  view source on GitHub ↗
( self, trans )

Source from the content-addressed store, hash-verified

685 return True
686
687 def copy( self, trans ):
688 obj = Zone( self.obj_name )
689 obj.set( "net", trans.net( self.net ) )
690 obj.set( "net_name", trans.net( self.net_name ) )
691 obj.set( "layer", trans.layer( self.layer ) )
692 obj.set( "tstamp", self.tstamp.clone() )
693 obj.set( "hatch", self.hatch.clone() )
694 obj.set( "connect_pads", self.connect_pads.clone() )
695 obj.set( "min_thickness", self.min_thickness.clone() )
696 obj.set( "keepout", self.keepout.clone() )
697 obj.set( "fill", self.fill.clone() )
698 for p in self.polygons:
699 obj.polygons.append( p.copy( trans ) )
700 return obj
701
702
703class Via( KicadFatObj ):

Callers

nothing calls this directly

Calls 7

ZoneClass · 0.85
setMethod · 0.80
netMethod · 0.80
layerMethod · 0.80
cloneMethod · 0.45
appendMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected