automatically change device type if 3 or more pin on a capacitor/resistor/inductor in EDB #4149
Ronaldo-SIPI
started this conversation in
Ideas
Replies: 1 comment
-
@ring630 @svandenb-dev |
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.
-
some customer struggle to change the capacitor/resistor/inductor to other device by hand, if the read in passives have more then 2 pins
may we can implement a automatic routine to filter these out and automatically change the device type to "others"
like that:
from pyaedt import Edb # import Edb class object from library
edb = Edb(r"C:???\XYZ.aedb", edbversion="2022.2") # point to the folder where you edb file reside
edb_components = edb.core_components.components
for i, j in edb.core_components.resistors.items(): # this is the example for resistors but you can change this to capacitor/inductor key word
if j.numpins > 2:
j.type="Other" # change type to other device instead of resistor
'''
or you search for a proper part name
for i, j in edb_core_components.components.items(): # this is the example for all parts with a search for known part names
if j.partname in ["part name1", "part name 2"]:
if j.numpins > 2:
j.type="Other"
'''
edb.save_edb_as(r"C:???\XYZ.aedb") # replace or copy the new edb to read that file in SIwave/HFSS 3DL
cheers Ronaldo
Beta Was this translation helpful? Give feedback.
All reactions