get_closest_edgeid_to_position#

Modeler3D.get_closest_edgeid_to_position(position: list, units: str = None) int#

Get the edge ID closest to a given position.

Parameters:
positionlist

List of [x,y,z] coordinates for the position.

units

Units for the position, such as "m". The default is None, which means the model units are used.

Returns:
int

Edge ID of the edge closest to this position.

Examples

>>> from ansys.aedt.core.modeler.cad.primitives import GeometryModeler
>>> obj = GeometryModeler()
>>> obj.get_closest_edgeid_to_position(position=[0, 0, 0])