save_script#

MotorCAD.save_script(file_path)#

Save the internal Python script to a Python file.

Parameters:
file_pathstr

Absolute filepath for the Python file, including the file name and a PY extension. The default filepath is the Windows directory on the C: drive. Use the r'filepath' syntax to force Python to ignore special characters.