Skip to content

Connectivity

Call Returns / behavior What it does and why
a.min_separation(b, 0.5, nets=nets, net_relation="different") Net-filtered EdgePairs; also on min_space() Only reports close pairs belonging to different nets. Use it when material on the same net may sit closer together than unrelated conductors.
deck.connectivity("routing") Named Connectivity Starts a named connection model for this deck. Use it as the base for describing which pieces of material belong to the same net.
nets.connect(a) Connect touching / overlapping objects within a Connects touching or overlapping shapes within a. Use it to treat connected pieces on one conductor layer as one net.
nets.connect(a, b, contact="interacting") Connect two conductors with contact="interacting" Connects shapes from a to shapes from b under the chosen contact rule. Use it where the two conductor sets may directly join.
nets.connect(a, b, through=contacts) Via-mediated connection Connects a and b through the contact shapes. Use it to describe vias between conductor layers rather than a direct connection.
nets.same_net(a, b), nets.different_net(a, b) Net membership Predicate same_net() tests whether the inputs share a net; different_net() tests the opposite. Use these runtime conditions in rules that depend on connection.

Save the value returned by connect(). Unknown or ambiguous net membership is an execution error. Per-net aggregation, antenna, and LVS are outside this API.