get_edges_for_circuit_port_from_sheet#
- Modeler2D.get_edges_for_circuit_port_from_sheet(assignment: int | str | list, xy_plane: bool = True, yz_plane: bool = True, xz_plane: bool = True, allow_perpendicular: bool = False, tolerance: float = 1e-06) list#
Retrieve two edge IDs that are suitable for a circuit port from a sheet.
One edge belongs to the sheet passed in the input, and the second edge is the closest edge’s coplanar to the first edge (aligned to the XY, YZ, or XZ plane). This method creates new lines for the detected edges and returns the IDs of these lines.
This method accepts one or more sheet objects as input, while the method
Primitives.get_edges_for_circuit_port()accepts a face ID.- Parameters:
- assignment
int,str,orlist ID or name for one or more sheets.
- xy_planebool,
optional Whether the edge’s pair are to be on the XY plane. The default is
True.- yz_planebool,
optional Whether the edge’s pair are to be on the YZ plane. The default is
True.- xz_planebool,
optional Whether the edge’s pair are to be on the XZ plane. The default is
True.- allow_perpendicularbool,
optional Whether the edge’s pair are to be perpendicular. The default is
False.- tolerance
float,optional Geometric tolerance. The default is
1e-6.
- assignment
- Returns:
listList of edge IDs.