get_edge_midpoint

Primitives2D.get_edge_midpoint(partID)

Retrieve the midpoint coordinates of a given edge ID or edge name.

Parameters
partIDint or str

Object ID or object name.

Returns
list

List of midpoint coordinates. If the edge is not a segment with two vertices, an empty list is returned.