unable to retrive nets information using edb and how to find primitve ID of a net #1035
Replies: 1 comment
-
Hello @srinithkumar99, from pyedb import Edb
from pyedb.generic.general_methods import generate_unique_folder_name
from pyedb.misc.downloads import download_file
output_project = r"D:\Temp\demo.aedb"
temp_folder = generate_unique_folder_name()
targetfile = download_file("edb/ANSYS-HSD_V1.aedb", destination=temp_folder)
ansys_version = "2ß25.1"
edb = Edb(edbpath=targetfile, edbversion=ansys_version)
edb.nets.power["GND"].primitives |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on a project which retrives nets information using edb but facing issues with the library. can someone help me with this query .
import os
import pyaedt
from pyaedt import Edb
import time
edb_path = "path" # Your path
try:
edb = Edb(edb_path) # Or with edbversion if needed
time.sleep(2)
if edb:
all_nets = edb.nets.nets
if all_nets:
print("Nets found:", list(all_nets.keys())) # <--- Critical check
else:
print("No nets found.")
edb.close_edb()
else:
print("Failed to load EDB.")
except Exception as e:
import traceback
traceback.print_exc()
print(f"Error: {e}")
Beta Was this translation helpful? Give feedback.
All reactions