McadModel#

class ansys.edb.core.layout.mcad_model.McadModel(msg)#

Class representing an MCAD mdel.

Methods

McadModel.create_3d_comp([connectable, ...])

Create a 3D component model.

McadModel.create_hfss([connectable, layout, ...])

Create an HFSS model.

McadModel.create_stride([connectable, ...])

Create a Stride model.

McadModel.is_mcad(connectable)

Determine if a connectable object is an MCAD model.

McadModel.is_mcad_3d_comp(connectable)

Determine if a connectable object is a 3D component model.

McadModel.is_mcad_hfss(connectable)

Determine if a connectable object is an HFSS model.

McadModel.is_mcad_stride(connectable)

Determine if a connectable object is a Stride model.

McadModel.material(index)

Get the material name of the MCAD model part at a given index.

McadModel.modeled(index)

Determine if an MCAD model part at a given index is included in the analysis.

McadModel.part_count()

Get the MCAD model part count.

McadModel.part_index(name)

Get the index of an MCAD model part with a given name.

McadModel.part_name(index)

Get the name of an MCAD model part at a given index.

McadModel.set_material(index, material)

Set material name of a MCAD model part at a given index.

McadModel.set_modeled(index, modeled)

Set if an MCAD model part at a given index is to be modeled.

McadModel.set_rotation(axis_from, axis_to, angle)

Set rotation from/to the axis and the angle in radians.

McadModel.set_visible(index, visible)

Set visibility of an MCAD model part at a given index.

McadModel.visible(index)

Get visibility of a MCAD model part at a given index.

Attributes

McadModel.cell_instance

CellInstance: Cell instance of the MCAD model.

McadModel.design_name

str: Design name of the MCAD model.

McadModel.id

int: Unique ID of the EDB object.

McadModel.is_null

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

McadModel.model_name

str: Name of the MCAD model.

McadModel.msg

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

McadModel.origin

Point3DData: Origin 3D point of the MCAD model.

McadModel.rotation

tuple[Point3DData, Point3DData, float]: Rotation from/to the axis and the angle.

McadModel.scale

float: Scale of the MCAD model.