I am trying to control, HFSS from the Python editor Spyder.
I tried the following but it gave me the error
`# -*- coding: utf-8 -*-
"""
Created on Wed Jun 01 16:53:18 2022
@author: Owner_Local
"""
import sys
sys.path.append("C://Program Files//AnsysEM//AnsysEM21.1//Win64//PythonFiles//DesktopPlugin//")
# Activate HFSS enviroment
import ScriptEnv
ScriptEnv.Initialize("Ansoft.ElectronicsDesktop")
oDesktop.RestoreWindow()
oProject = oDesktop.GetActiveProject()
oDesign = oProject.SetActiveDesign("HFSSDesign1")
oModule = oDesign.GetModule("ReportSetup")`
error: import error: "no module named clr".
I understand that the ScriptEnv.py asks for a clr library, but I have no idea where to find it. It is supposed to be provided by Ansys, so I am reluctant to install it myself and create an additional mess. So, anybody has a script that works? All I need is get access to an open HFSS file.