Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

I can’t open it even though HFSS 2025R2 is installed with PyAEDT

    • ancan9360
      Subscriber

      Hello first of all, thank you for your quick responses on other issues. I’m using PyAEDT 0.22.0 (I updated today) with HFSS 2025 R2 (full version installed).When I open HFSS manually on campus, it correctly uses the full license from the network server.However, when launching via PyAEDT, it always opens in student version mode, even when I explicitly set student_version=False . If I add a version parameter version="2025.2" or 25.2 or 252 it fails. Additionally, if I remove the version argument entirely, PyAEDT still launches HFSS 2024 R2 Student, despite student_version=False . The same machine can open HFSS 2025 R2 manually without any license issues.

      Is PyAEDT 0.22.0 currently incompatible with HFSS 2025 R2, or is there a known way to force it to use the full campus license instead of the student version?

      Code : 

      from ansys.aedt.core.hfss import Hfss

      hfss = Hfss(project = "New_Project", design = "HFSS_Design_1", solution_type = "Modal", student_version=False, version=252)
       
      Output: 
      PyAEDT ERROR: Specified version 2025.2 is not installed on your system on __init__
      PyAEDT ERROR: Method arguments:
      PyAEDT ERROR:     version = 252
      ...
      PyAEDT ERROR: __init__() should return none, not 'bool' on __init__
      PyAEDT ERROR: Method arguments:
      PyAEDT ERROR:     project = New_Project
      PyAEDT ERROR:     design = HFSS_Design_1
      PyAEDT ERROR:     solution_type = Modal
      PyAEDT ERROR:     version = 252
      Traceback (most recent call last):
        File "new_dc.py", line 4, in
          hfss.modeler.model_units = "mm"
      AttributeError: 'Hfss' object has no attribute '_odesign'
    • ancan9360
      Subscriber

      Problem solved. There was only the student version in the system variables, so I had to add this as well.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.