Rectangle#

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

Represents a rectangle object.

Methods

Rectangle.add_void(hole)

Add a void to the primitive.

Rectangle.cast()

Cast the primitive object to the correct concrete type.

Rectangle.create(layout, layer, net, ...)

Create a rectangle.

Rectangle.create_3d_comp()

Create a 3D composite model from an MCAD file.

Rectangle.create_hfss()

Create an HFSS model from an MCAD file.

Rectangle.create_stride()

Create a Stride model from an MCAD file.

Rectangle.delete()

Delete the layout object.

Rectangle.find_by_id(layout, uid)

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

Rectangle.get_hfss_prop()

Get HFSS properties.

Rectangle.get_parameters()

Get coordinate parameters.

Rectangle.get_product_property(prod_id, attr_id)

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

Rectangle.get_product_property_ids(prod_id)

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

Rectangle.make_zone_primitive(zone_id)

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

Rectangle.remove_hfss_prop()

Remove HFSS properties.

Rectangle.render(rep_type, ...[, is_hole])

Get the polygon data of a rectangle.

Rectangle.set_hfss_prop(material, solve_inside)

Set HFSS properties.

Rectangle.set_parameters(rep_type, param1, ...)

Set coordinate parameters.

Rectangle.set_product_property(prod_id, ...)

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

Attributes

Rectangle.can_be_zone_primitive

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

Rectangle.component

ComponentGroup: Component of the Connectable object.

Rectangle.edb_uid

int: Unique, persistent ID for the Connectable object.

Rectangle.group

Group object.

Rectangle.has_voids

bool: Flag indicating if a primitive has voids inside.

Rectangle.id

int: Unique ID of the EDB object.

Rectangle.is_mcad

bool: Flag indicating if this is an MCAD model.

Rectangle.is_mcad_3d_comp

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

Rectangle.is_mcad_hfss

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

Rectangle.is_mcad_stride

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

Rectangle.is_negative

bool: Flag indicating if the primitive is negative.

Rectangle.is_null

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

Rectangle.is_parameterized

bool: Whether the primitive is parametrized.

Rectangle.is_void

bool: Flag indicating if a primitive is a void.

Rectangle.is_zone_primitive

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

Rectangle.layer

Layer: Layer that the primitive object is on.

Rectangle.layout

Layout: Layout owning the object.

Rectangle.layout_obj_type

Rectangle.msg

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

Rectangle.net

Net: Net of the Connectable object.

Rectangle.obj_type

LayoutObjType: Layout object type.

Rectangle.owner

Primitive: Owner of the primitive object.

Rectangle.polygon_data

PolygonData: Polygon data object of the rectangle.

Rectangle.primitive_type

PrimitiveType: Primitive type of the primitive.

Rectangle.voids

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