get_pad_parameters#

PadstackDefData.get_pad_parameters(layer, pad_type)#

Get pad parameters by layer name and pad type in their original values in the database.

Parameters:
layerUnion[str, int, None]

Layer name.

pad_typePadType

Pad type.

Returns:
tuple[PadGeometryType, list of Value, Value, Value,
Value]
or
tuple[PolygonData, Value, Value, Value]

The tuple is in this format for other than polygons: (pad_type, sizes, offset_x, offset_y, rotation).

For polygons, the tuple is in this format: (fp, offset_x, offset_y, rotation).

  • pad_type: Pad type

  • sizes: Pad parameters

  • offset_x: X offset

  • offset_y: Y offset

  • rotation: Rotation

  • fp: Polygon geometry