Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

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
[bingo_chatbox]