get_pin_location#

TwinBuilderComponents.get_pin_location(assignment: int, pin: str) list#

Retrieve the location of a pin.

Parameters:
assignmentint

ID of the part.

pin

Name of the pin.

Returns:
List

List of axis values [x, y].

References

>>> oEditor.GetComponentPinLocation

Examples

>>> from ansys.aedt.core import Circuit
>>> aedtapp = Circuit()
>>> sch = aedtapp.modeler.schematic
>>> components = aedtapp.modeler.schematic.components
>>> c = components[1]
>>> c_location = sch.get_pin_location(c.id, c.name)