We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Electronics

Electronics

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

ANSYS HFSS 3DLayout 22R2 EDBErrorException: Definition in use.

TAGGED: 

    • nkumar
      Subscriber

      Hello,

      I'm running a script to set up a module in 3DLayout. I get the following error and the script execution fails:

      *Global - Messages
        [info] OpenGL Version: 4.6.0 - Build 31.0.101.1999
        [warning] C:\Program Files\AnsysEM\v222\Win64
        [warning] processPCB.py started
        [warning] top_level_directory = C:\Users\nkumar\Desktop\XXXXX\YYYYY\ExampleFolder
        [warning] made directories
        [warning] copied input files to directory_1_input_files
        [warning] Imported .aedb at 2023-05-18 11:04:20
        [error] EDBErrorException: Definition in use. [D:\AnsysDev\nextgen\lib\EDBKern\source\ComponentDef.cpp 609]  In file "C:/Users/nkumar/Desktop/XXXXX/YYYYY/setupScript.py", line 450 ---- While executing script: C:/Users/nkumar/Desktop/XXXXX/YYYYY/setupScript.py
        [error] Error executing script in C:\Users\nkumar\Desktop\XXXXX\YYYYY\setupScript.py:

      The line (line 450) the error is pointing to in the script is:

      236 >>> clr.AddReference('Ansys.Ansoft.Edb)

      237 >>> import Ansys.Ansoft.Edb as edb

      ...

      450 >>> db = edb.Database.Open(aedb_folder_3_updated_stackup, False)

       

      If I run the script again, the script works. I'm trying to figure out why this is happening. Any help would be greatly appreciated.

      Thanks,

      Nithin

    • Aymen Mzoughi
      Ansys Employee

      Please have a look at the PyAEDT examples, especially the example concering EDB creation:

      https://aedt.docs.pyansys.com/version/stable/examples/index.html

      This should give an idea about how to properly create an EDB using automation. If you think there is an issue with PyAEDT, please file it here:

      https://github.com/ansys/pyaedt/issues

      • nkumar
        Subscriber

        Hi Aymen,

        This script was written in IronPython and doesn't use PyAEDT.

        Thanks,

        Nithin

Viewing 1 reply thread
  • The topic ‘ANSYS HFSS 3DLayout 22R2 EDBErrorException: Definition in use.’ is closed to new replies.