EDBComponentDef#

class pyedb.dotnet.database.definition.component_def.EDBComponentDef(pedb, edb_object=None)#

Bases: pyedb.dotnet.database.utilities.obj_base.ObjBase

Manages EDB functionalities for component definitions.

Parameters:
pedbpyedb.edb

Inherited AEDT object.

edb_objectobject

Edb ComponentDef Object

Overview#

assign_rlc_model

Assign RLC to all components under this part name.

assign_s_param_model

Assign S-parameter to all components under this part name.

assign_spice_model

Assign Spice model to all components under this part name.

add_n_port_model

create

get_properties

set_properties

part_name

Retrieve component definition name.

type

Retrieve the component definition type.

components

Get the list of components belonging to this component definition.

reference_file

component_models

Import detail#

from pyedb.dotnet.database.definition.component_def import EDBComponentDef

Property detail#

property EDBComponentDef.part_name#

Retrieve component definition name.

property EDBComponentDef.type#

Retrieve the component definition type.

Returns:
str
property EDBComponentDef.components#

Get the list of components belonging to this component definition.

Returns:
dict of EDBComponent
property EDBComponentDef.reference_file#
property EDBComponentDef.component_models#

Method detail#

EDBComponentDef.assign_rlc_model(res=None, ind=None, cap=None, is_parallel=False)#

Assign RLC to all components under this part name.

Parameters:
resint, float

Resistance. Default is None.

indint, float

Inductance. Default is None.

capint, float

Capacitance. Default is None.

is_parallelbool, optional

Whether it is parallel or series RLC component.

EDBComponentDef.assign_s_param_model(file_path, model_name=None, reference_net=None)#

Assign S-parameter to all components under this part name.

Parameters:
file_pathstr

File path of the S-parameter model.

namestr, optional

Name of the S-parameter model.

Returns:
EDBComponentDef.assign_spice_model(file_path, model_name=None, sub_circuit_name=None, terminal_pairs=None)#

Assign Spice model to all components under this part name.

Parameters:
file_pathstr

File path of the Spice model.

model_namestr, optional

Name of the Spice model.

sub_circuit_namestr, optional

Name of the sub circuit.

terminal_pairslist, optional

list of terminal pairs.

Returns:
EDBComponentDef.add_n_port_model(fpath, name=None)#
EDBComponentDef.create(name)#
EDBComponentDef.get_properties()#
EDBComponentDef.set_properties(**kwargs)#