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

Method copy

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

Source from the content-addressed store, hash-verified

1406 return True
1407
1408 def copy( self, trans ):
1409 obj = Module( self.obj_name )
1410 obj.set( "name", self.name )
1411 obj.set( "locked", self.locked )
1412 obj.set( "layer", trans.layer( self.layer ) )
1413 obj.set( "tedit", self.tedit.clone() )
1414 obj.set( "tstamp", self.tstamp.clone() )
1415 obj.set( "at", trans.vector( self.at ) )
1416 obj.set( "descr", self.descr.clone() )
1417 obj.set( "tags", self.tags.clone() )
1418 obj.set( "path", self.path.clone() )
1419 for graphic in self.graphics:
1420 obj.graphics.append( graphic.copy( trans ) )
1421 for pad in self.pads:
1422 obj.pads.append( pad.copy( trans ) )
1423 return obj
1424
1425
1426class NetClass( KicadFatObj ):

Callers

nothing calls this directly

Calls 7

ModuleClass · 0.85
setMethod · 0.80
layerMethod · 0.80
vectorMethod · 0.80
cloneMethod · 0.45
appendMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected