ComponentModel#

class ansys.edb.core.definition.component_model.ComponentModel(msg)#

Represents a component model.

Methods

ComponentModel.cast()

Cast the component model object to the correct concrete type.

ComponentModel.find_by_id(comp_def, value)

Find a component model by ID in a given component def.

ComponentModel.find_by_name(comp_def, value)

Find a component model by name in a given component def.

Attributes

ComponentModel.component_model_id

int: The id of the component model.

ComponentModel.component_model_type

ComponentModelType: The type of the component model.

ComponentModel.id

int: Unique ID of the EDB object.

ComponentModel.is_null

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

ComponentModel.msg

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

ComponentModel.name

str: The name of the component model.

ComponentModel.reference_file

str: Name of the reference file associated with the component model.