get_face_center#

Modeler2D.get_face_center(assignment: int) → list#

Retrieve the center position for a given planar face ID.

Parameters:
assignmentint

ID of the face.

Returns:
List

A list of [x, y, z] coordinates for the planar face center position.

References

>>> oEditor.GetFaceCenter

Examples

>>> from ansys.aedt.core import Hfss
>>> app = Hfss()
>>> app.modeler.get_face_center(assignment="Box1")