get_faceid_from_position

Primitives2D.get_faceid_from_position(position, obj_name=None, units=None)

Retrieve a face ID from a position.

Parameters
positionlist

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

obj_namestr, optional

Name of the object. The default is None, in which case all objects are searched.

unitsstr, optional

Units, such as "m". The default is None, in which case the model units are used.

Returns
int

Face ID of the first object touching this position.

References

>>> oEditor.GetFaceByPosition