ComponentDef#

class ansys.edb.core.definition.component_def.ComponentDef(msg)#

Represents a component definition.

Methods

ComponentDef.add_component_model(value)

Add a component model to this component def.

ComponentDef.create(db, comp_def_name, fp)

Create a component definition in a given database.

ComponentDef.find(db, comp_def_name)

Find a component definition in a given database.

ComponentDef.remove_component_model(value)

Remove a component model from this component def.

Attributes

ComponentDef.component_models

list of ComponentModel: All component models associated with the component definition.

ComponentDef.component_pins

list of ComponentPin: All component pins of the component definition.

ComponentDef.definition_type

DefinitionObjType: Definition type.

ComponentDef.footprint

Cell: Footprint of the component definition.

ComponentDef.id

int: Unique ID of the EDB object.

ComponentDef.is_null

bool: Flag indicating if the object exists in the database.

ComponentDef.msg

EDBObjMessage: Protobuf message that represents the object's ID.

ComponentDef.name

str: Name of the component definition.