How to get min via diameter in an ECAD using PyEDB?
Start with import pyedb which is a python library to handle ECAD files.
pyedb
import pyedb
Import ECAD using pyedb. The session is run in a non-graphical mode.
edb = pyedb.Edb(ecad_path, edbversion=2024.2)
Get the min via diameter using the following lines
unique_padstack_defs = {via.padstack_definition for via in edb.padstacks.vias.values()} min_via_dia = min(edb.padstacks.definitions[name].hole_diameter for name in unique_padstack_defs)
Close the edb session
edb
edb.close()
Thanks @ansys-satyajeet, I guess you posted this code for sharing the information ? If you are interested I can also add you as contributor in PyEDB and you could write examples on PyEDB online doc. Thanks