Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def rodCreateRect(name,layer,width,length,origin,elementsX=1,spaceX=0):
print layer
l1 = layermap[ (layer[0],layer[1]) ]
l1 = layout.layer(l1[0], l1[1])
r = db.DBox.new(origin[0],origin[1],origin[0]+width,origin[1]+length)
top.shapes(l1).insert(r)
return { "lL" : [origin[0],origin[1]],
"uL" : [origin[0],origin[1]+length],
'lR' : [origin[0]+width,origin[1]],
'uR' : [origin[0]+width,origin[1]+length],
'lC' : [origin[0],origin[1]+length/2],
'uC' : [origin[0]+width/2,origin[1]+length],
'dbId' : {'pin' : None}}