get_connection_pt#

PadstackDefData.get_connection_pt(layer)#

Get connection point position and direction by layer name.

Parameters:
layerstr

Layer name.

Returns:
tuple[PointData, ConnectionPtDirection]

The tuple is in a (position, direction) format:

  • position: Position of the connection point.

  • direction: Direction of the connection point.