Process Integration and Design Optimization

Process Integration and Design Optimization

Ansys OptiSlang & MotorCAD Integration Regarding

    • Theja Sai
      Subscriber

      Hello there,

      I have designed  a BPM motor in the motorCAD and I am trying to optimize it using OptiSlang.

      When I click Setup Optimization in ANSYS OptiSlang, a new window pops-up with the following error:


      I could really understand what is causing the issue. Please help.Thank you in advance.

    • Oleg
      Ansys Employee

      Dear Theja Sai,

      The warning regarding the changed reference values is not of a trouble itself (click on "Re-read reference values"). My concerns are about the red error messages you see in the background. Looks like the Motor-CAD executable could not be located (please, hover over the “Traceback most recent call” message to see the contents). Could you please check the path in the Motor-CAD GUI under “Defaults > Automation > ActiveX” and adjust it if needed; then re-execute the export procedure. Let us know about your findings.

      Kindest regards — Oleg

       

    • Theja Sai
      Subscriber

      Here is the error codes:

      2023-May-26 10:19:45.915248 ERROR Input integration functionality missing although expected.
      2023-May-26 10:19:45.873571 ERROR Running script source failed.
      2023-May-26 10:19:45.873571 ERROR Traceback (most recent call last):
        File "c:/Ansys_Motor-CAD/2023_1_1/Motor-CAD Data/optiSLang/Integration/MotorCAD_ci.py", line 33, in
          import MotorCAD.MotorCAD_integration as integ
      ImportError: No module named MotorCAD.MotorCAD_integration
       
      2023-May-26 10:19:45.450491 ERROR Input integration functionality missing although expected.
      2023-May-26 10:19:45.411492 ERROR Running script source failed.
      2023-May-26 10:19:45.411492 ERROR Traceback (most recent call last):
        File "c:/Ansys_Motor-CAD/2023_1_1/Motor-CAD Data/optiSLang/Integration/MotorCAD_ci.py", line 33, in
          import MotorCAD.MotorCAD_integration as integ
      ImportError: No module named MotorCAD.MotorCAD_integration
       
      2023-May-26 10:19:45.109321 ERROR Input integration functionality missing although expected.
      2023-May-26 10:19:45.067529 ERROR Running script source failed.
      2023-May-26 10:19:45.067529 ERROR Traceback (most recent call last):
        File "c:/Ansys_Motor-CAD/2023_1_1/Motor-CAD Data/optiSLang/Integration/MotorCAD_ci.py", line 33, in
          import MotorCAD.MotorCAD_integration as integ
      ImportError: No module named MotorCAD.MotorCAD_integration

      This is activeX window that I have configured:

    • Theja Sai
      Subscriber

      Could anyone respond on this?

    • Oleg
      Ansys Employee

      Dear Theja Sai,

      The file manager reports that it can't find the needed integration script. That is an uncommon error. Could you, please, check the contents of the folder: {Motor-CAD install dir}\Motor-CAD Data\optiSLang\Integration\MotorCAD and see whether the file "MotorCAD_integration.py" is there (this one looks to be missing). If it is not there, please, reinstall Motor-CAD on your machine.

      Kindest regards

    • Theja Sai
      Subscriber

      I have the file already.

    • Oleg
      Ansys Employee

       

      Dear Theja Sai,

      Got that. Now let’s check whether you have the optiSLang license on your machine as well. Can you open and run optiSLang GUI (Start menu > Search “optiSLang” > run the application)? If yes, can you follow the license check routine on the pic below (optiSLang GUI > Menu "Project" > License management)?

      Kindest regards

       

Viewing 6 reply threads
  • The topic ‘Ansys OptiSlang & MotorCAD Integration Regarding’ is closed to new replies.