set_default_instance#

ansys.motorcad.core.rpc_client_core.set_default_instance(port)#

Set the Motor-CAD instance to use as the default when running scripts from MotorCAD.

For Motor-CAD internal use only. Do not use this function.

Parameters:
portint

Port number of the Motor-CAD instance to set as the default.