obj_explain_pin
Explains why a schematic pin is assigned to a net by reporting its root and connection points and listing objects at each point, helping debug unexpected connectivity and mislabeled nets.
Instructions
Explain WHY a schematic pin is on the net it is on.
proj_get_nets gives the verdict but never the evidence, so a
surprising net assignment can only be debugged by reconstructing
Altium's connectivity by hand from raw geometry. This returns the
evidence directly.
Reports the pin's ROOT (Pin.Location, body side) and its
CONNECTION point (Location + PinLength along Orientation),
then lists every schematic object sitting on each point.
Reading the result:
at_connectionis what actually drives the pin's net. Two net labels with differenttextthere is a short between two named nets, and the usual symptom is one of them reporting zero pins.at_rootis electrically INERT. A net label there is the classic "sheet looks wired but the pin floats on an auto-net" bug.An empty
at_connectionwith a populatedat_rootmeans the label must move bypin_length_milsalong the pin's orientation; the target is given asconnect_x_mils/connect_y_mils.
Hits are filtered by the object's Location (or a pin's electrical
end, or a wire vertex), not by bounding box. Altium's
AddFilter_Area matches text boxes, which extend hundreds of
mils from a net label; without the Location check this tool
reports labels that are merely nearby.
Args: designator: Component designator, e.g. "U10". pin: Pin NUMBER (not pin name), e.g. "5".
Returns:
Dict with {designator, pin, pin_name, sheet, orientation, pin_length_mils, root_x_mils, root_y_mils, connect_x_mils, connect_y_mils, compiled_net, at_connection[], at_root[]}.
Each object entry carries {kind, text, x_mils, y_mils}
where kind is one of net_label, power_object, port, wire,
junction, pin, other. compiled_net is the pin's net from
the compiled netlist, so geometry and compile can be compared
in one response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pin | Yes | ||
| designator | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||