check_if_geometry_is_valid#

MotorCAD.check_if_geometry_is_valid(edit_geometry)#

Check if the Motor-CAD geometry is valid.

Parameters:
edit_geometryint

Indicates if Motor-CAD can try to reset the geometry within constraints if the geometry is invalid. Options are:

  • 1: Yes. Try and reset the geometry

  • 0: No. Do not try to reset the geometry.

Returns:
int

1 if an attempt to reset the geometry has been made, O otherwise.