The Ansys Innovation Space website recently experienced a database corruption issue. While service has been restored there appears to have been some data loss from November 13. We are still investigating and apologize for any issues our users may have as a result.

Ansys Learning Forum Forums Discuss Simulation Electronics MotorCad Scripting Reply To: MotorCad Scripting

HDLI
Ansys Employee

I am not sure why you use this command. Here are some information.
1). Please review scripting tutorial "ActiveX_Scripting.pdf" and Matlab scripting example folder "ActiveX", located in MotorCAD installation folder, C:\ANSYS_Motor-CAD\14_1_17\Tutorials.
2). Find parameter names of winding factor and mmf in Help, or select value while clicking F2 to get the parameter name.
3). Use the command like [success,ShaftTorque] = invoke(mcad,'GetVariable','ShaftTorque'); to get parameter value.
Thanks.
HDLI