get_edge_midpoint#
- Modeler2D.get_edge_midpoint(assignment: int | str) list#
Retrieve the midpoint coordinates of a given edge ID or edge name.
- Parameters:
- Returns:
listList of midpoint coordinates. If the edge is not a segment with two vertices, an empty list is returned.
Examples
>>> from ansys.aedt.core import Hfss >>> app = Hfss() >>> app.modeler.get_edge_midpoint(assignment="Box1")