PyEDB: how to get minimum via diameter?
ansys-satyajeet
Member, Employee Posts: 14
✭✭✭
Answers
-
Start with import
pyedb
which is a python library to handle ECAD files.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
sessionedb.close()
0 -
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. Thanks0