Examples#
End-to-end examples show how you can use PyMotorCAD. If PyMotorCAD is installed on your machine, you can download these examples as Python files or Jupyter notebooks and run them locally.
Note
Some examples require additional Python packages.
Adaptive templates examples#
Library of adaptive templates examples for setting up custom geometries in Motor-CAD. These scripts can be loaded into the Motor-CAD Adaptive Templates tab.
Note
Adaptive Templates in Motor-CAD require v2024.1.2 (Motor-CAD 2024 R1 Update) or later.
Note
For more information on the use of Adaptive Templates in Motor-CAD, and how to create, modify and debug Adaptive Templates Scripts, see Motor-CAD adaptive templates scripting in the User guide.
Advanced examples#
These examples show you how to use the basic functionality of PyMotorCAD.
Basic examples#
These examples show you how to use the basic functionality of PyMotorCAD.
Internal scripting examples#
These examples show you how to use the internal scripting functionality of PyMotorCAD.
Linking examples#
These examples show how you can link PyMotorCAD to other Ansys products.