Primitive#

class ansys.edb.core.primitive.primitive.Primitive(msg)#

Represents a primitive object.

Methods

Primitive.add_void(hole)

Add a void to the primitive.

Primitive.cast()

Cast the primitive object to the correct concrete type.

Primitive.create_3d_comp()

Create a 3D composite model from an MCAD file.

Primitive.create_hfss()

Create an HFSS model from an MCAD file.

Primitive.create_stride()

Create a Stride model from an MCAD file.

Primitive.delete()

Delete the layout object.

Primitive.find_by_id(layout, uid)

Find a Connectable object by database ID in a given layout.

Primitive.get_hfss_prop()

Get HFSS properties.

Primitive.get_product_property(prod_id, attr_id)

Get the product property of the layout object for a given product ID and attribute ID.

Primitive.get_product_property_ids(prod_id)

Get a list of attribute IDs given a product ID for the layout object.

Primitive.make_zone_primitive(zone_id)

Make the primitive a zone primitive with a zone specified by the provided ID.

Primitive.remove_hfss_prop()

Remove HFSS properties.

Primitive.set_hfss_prop(material, solve_inside)

Set HFSS properties.

Primitive.set_product_property(prod_id, ...)

Set the product property of the layout object for a given product ID and attribute ID.

Attributes

Primitive.can_be_zone_primitive

bool: Flag indicating if the primitive can be a zone.

Primitive.component

ComponentGroup: Component of the Connectable object.

Primitive.edb_uid

int: Unique, persistent ID for the Connectable object.

Primitive.group

Group object.

Primitive.has_voids

bool: Flag indicating if a primitive has voids inside.

Primitive.id

int: Unique ID of the EDB object.

Primitive.is_mcad

bool: Flag indicating if this is an MCAD model.

Primitive.is_mcad_3d_comp

bool: Flag indicating if this is a 3D composite MCAD model.

Primitive.is_mcad_hfss

bool: Flag indicating if this is an HFSS MCAD model.

Primitive.is_mcad_stride

bool: Flag indicating if this is a Stride MCAD model.

Primitive.is_negative

bool: Flag indicating if the primitive is negative.

Primitive.is_null

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

Primitive.is_parameterized

bool: Whether the primitive is parametrized.

Primitive.is_void

bool: Flag indicating if a primitive is a void.

Primitive.is_zone_primitive

bool: Flag indicating if the primitive object is a zone.

Primitive.layer

Layer: Layer that the primitive object is on.

Primitive.layout

Layout: Layout owning the object.

Primitive.layout_obj_type

Primitive.msg

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

Primitive.net

Net: Net of the Connectable object.

Primitive.obj_type

LayoutObjType: Layout object type.

Primitive.owner

Primitive: Owner of the primitive object.

Primitive.primitive_type

PrimitiveType: Primitive type of the primitive.

Primitive.voids

list of Primitive: List of void primitive objects inside the primitive.