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