MATLAB & Ansys Student Electronics Desktop (Ansoft Maxwell) integration

I want to integrate the two software. I tried this:
>> iMaxwell=actxserver('AnsoftMaxwell.MaxwellScriptInterface');
Error using actxserver (line 93)
Server creation failed. Invalid ProgID 'AnsoftMaxwell.MaxwellScriptInterface'.
But getting the above error. If anyone could help me out how to find correct progid for Ansys Student Electronics Desktop....
TIA

10 commentaires

The IDs that I can find at this time are
"AnsoftHfss.HfssScriptInterface"
"AnsysDesigner.DesignerScript"
"Q3DExtractor.ScriptInterface"
"AnsoftMaxwell.MaxwellScriptInterface"
>> iMaxwell = actxserver ('AnsoftMaxwell.MaxwellScriptInterface');
Error using actxserver (line 93)
Server creation failed. Invalid ProgID 'AnsoftMaxwell.MaxwellScriptInterface'.
>> iMaxwell = actxserver ('Q3DExtractor.ScriptInterface');
Error using actxserver (line 93)
Server creation failed. Invalid ProgID 'Q3DExtractor.ScriptInterface'.
Same error. None of them are working. :-(
Ashishkumar Gupta
Ashishkumar Gupta le 28 Fév 2023
Modifié(e) : Ashishkumar Gupta le 28 Fév 2023
Hi @Walter Roberson Thanks for ur response. I tried that but unfornutaley could not found progid for Ansoft/Ansys.
But as attached in screenshot, I can see progid for Ansoft MAxwell. I do not understand where I am going wrong. Thanks!!!
Try using Ansoft.ElectronicsDesktopStudent.2022.2 as the progid.
Hi, I tried all but nothing worked out....
Ansoft.ElectronicsDesktopStudent.2022.2 ; Ansoft.ElectronicsDesktopStudent.2022 ;Ansoft.ElectronicsDesktopStudent ; Ansoft.ElectronicsDesktop
Sorry, I do not know.
I do not run Windows at all often, and I am not a student so I am not eligible to download it for testing.
Okay.. Thanks though for ur quick response and help!!! Much appreciated :-)
In https://forum.ansys.com/forums/topic/questions-about-python-scripting-in-ansys-electronics-desktop-products/ someone (who seems to know what they are doing) used Ansoft.ElectronicsDesktop.2021.1 . The 2021 appears to be year and the 1 appears to be version within the year, so if the same format applied for you then possibly Ansoft.ElectronicsDesktop.2022.2
It might be interesting to see if you can get https://aedt.docs.pyansys.com/release/0.6/ to work inside Python -- if so then there would be the potential for tracking down which ID it uses.
Actually I am not well versed with Python !!
Also yeah, I am using ANsys EDT student version 2022.2 .
I tried using 'Ansoft.ElectronicsDesktop.2022.2', 'Ansoft.ElectronicsDesktop.2022', 'Ansoft.ElectronicsDesktopStudent.2022', 'Ansoft.ElectronicsDesktop', 'Ansoft.ElectronicsDesktopStudent' but none of them seems to work.

Connectez-vous pour commenter.

Réponses (1)

Shree Charan
Shree Charan le 5 Sep 2023
Modifié(e) : Shree Charan le 5 Sep 2023
Hi Ashishkumar, I’m assuming that you’re using Windows based on the comments.
Using the Windows “reg query” (https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/reg-query) may be useful in finding the ProgID.
1) Open Ansys Student Electronics Desktop.
2) Open MATLAB and execute the following in the command window.
!reg query HKCR /f "Ansys.Student.ElectronicsDesktop"
This command will query the Windows registry for the ProgID associated with Ansys Student Electronics Desktop.
3) The command will display the registry information related to the ProgID. Look for the line that starts with "HKEY_CLASSES_ROOT\Ansys.Student.ElectronicsDesktop". The value next to it will be the correct ProgID for Ansys Student Electronics Desktop.
It may also be useful to try using “Ansoft.ElectronicsDesktopStudent.2022.2” as the “data” parameter in the “req query”.
!reg query HKCR /f "Ansoft.ElectronicsDesktopStudent.2022.2"

Catégories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by