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:
- position
list List of
[x,y,z]coordinates for the position.- units
Units for the position, such as
"m". The default isNone, which means the model units are used.
- position
- Returns:
intEdge 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])