get_pad_parameters#

PadstackDefData.get_pad_parameters(layer, pad_type)#

Get pad parameters by layer name and pad type.

Parameters:
layerstr or int

Layer name or ID.

pad_typePadType

Pad type.

Returns:
tuple of (PadGeometryType, list of Value, Value, Value, Value) or tuple of (PolygonData, Value, Value, Value)
  • The tuple is in this format for non-polygonal pad geometry: (pad_type, Pad Geometry Parameters, offset_x, offset_y, rotation).

  • For polygonal pad geometry, the tuple is in this format: (poly, offset_x, offset_y, rotation).