.. _ref_API_Reference: .. currentmodule:: ansys.motorcad API reference ============= Motor-CAD API ------------- The ``MotorCAD`` object is used by default for PyMotorCAD scripting. For descriptions of this object's single class and its many methods, see :ref:`ref_MotorCAD_object`. Motor-CAD compatibility API --------------------------- The ``MotorCADCompatibility`` object is used for running old ActiveX scripts. For information on backwards compatibility, see :ref:`ref_backwards_compatibility`. For descriptions of this object, its single class, and its many methods, see :ref:`ref_MotorCADCompatibility_object`. .. note:: In addition to giving the available methods, their replacement functions have been commented. Geometry objects and functions ------------------------------ The ``ansys.motorcad.core.geometry`` library contains geometry objects and functions that provide geometry capability in Python. Geometry objects and functions are used for defining and modifying Adaptive Templates geometries in Python. For descriptions of the objects and functions, see :ref:`ref_geometry_functions`. Geometry shapes ------------------------------ The ``ansys.motorcad.core.geometry_shapes`` library contains geometry functions that provide geometry calculations in Python. Geometry shapes functions are used for defining and modifying Adaptive Templates geometries in Python. For descriptions of the functions, see :ref:`ref_geometry_shapes`. .. toctree:: :maxdepth: 1 :hidden: MotorCAD_object MotorCADCompatibility_object geometry_functions geometry_shapes