Polygon#

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

Represents a polygon object.

Methods

Polygon.add_void(hole)

Add a void to the primitive.

Polygon.cast()

Cast the primitive object to the correct concrete type.

Polygon.create(layout, layer, net, polygon_data)

Create a polygon.

Polygon.create_3d_comp()

Create a 3D composite model from an MCAD file.

Polygon.create_hfss()

Create an HFSS model from an MCAD file.

Polygon.create_stride()

Create a Stride model from an MCAD file.

Polygon.delete()

Delete the layout object.

Polygon.find_by_id(layout, uid)

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

Polygon.get_hfss_prop()

Get HFSS properties.

Polygon.get_product_property(prod_id, attr_id)

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

Polygon.get_product_property_ids(prod_id)

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

Polygon.make_zone_primitive(zone_id)

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

Polygon.remove_hfss_prop()

Remove HFSS properties.

Polygon.set_hfss_prop(material, solve_inside)

Set HFSS properties.

Polygon.set_product_property(prod_id, ...)

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

Attributes

Polygon.can_be_zone_primitive

bool: Flag indicating if a polygon can be a zone.

Polygon.component

ComponentGroup: Component of the Connectable object.

Polygon.edb_uid

int: Unique, persistent ID for the Connectable object.

Polygon.group

Group object.

Polygon.has_voids

bool: Flag indicating if a primitive has voids inside.

Polygon.id

int: Unique ID of the EDB object.

Polygon.is_mcad

bool: Flag indicating if this is an MCAD model.

Polygon.is_mcad_3d_comp

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

Polygon.is_mcad_hfss

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

Polygon.is_mcad_stride

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

Polygon.is_negative

bool: Flag indicating if the primitive is negative.

Polygon.is_null

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

Polygon.is_parameterized

bool: Whether the primitive is parametrized.

Polygon.is_void

bool: Flag indicating if a primitive is a void.

Polygon.is_zone_primitive

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

Polygon.layer

Layer: Layer that the primitive object is on.

Polygon.layout

Layout: Layout owning the object.

Polygon.layout_obj_type

Polygon.msg

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

Polygon.net

Net: Net of the Connectable object.

Polygon.obj_type

LayoutObjType: Layout object type.

Polygon.owner

Primitive: Owner of the primitive object.

Polygon.polygon_data

PolygonData: Outer contour of the polygon.

Polygon.primitive_type

PrimitiveType: Primitive type of the primitive.

Polygon.voids

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