PrimitiveInstanceCollection#

class ansys.edb.core.primitive.primitive_instance_collection.PrimitiveInstanceCollection(msg)#

Efficiently represents large quantities of geometry as numerous instantiations of the same geometry at different locations.

Methods

PrimitiveInstanceCollection.create(layout, ...)

Create a primitive instance collection containing the specified geometry instantiated at the provided locations.

PrimitiveInstanceCollection.decompose()

Decompose into individual primitives.

PrimitiveInstanceCollection.delete()

Delete the layout object.

PrimitiveInstanceCollection.get_product_property(...)

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

PrimitiveInstanceCollection.get_product_property_ids(prod_id)

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

PrimitiveInstanceCollection.set_product_property(...)

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

Attributes

PrimitiveInstanceCollection.geometry

PolygonData: The geometry that the primitive instance collection instantiates.

PrimitiveInstanceCollection.id

int: Unique ID of the EDB object.

PrimitiveInstanceCollection.instantiated_geometry

list of PolygonData: The geometry instantiated at each location in the primitive instance collection.

PrimitiveInstanceCollection.is_null

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

PrimitiveInstanceCollection.layout

Layout: Layout owning the object.

PrimitiveInstanceCollection.layout_obj_type

PrimitiveInstanceCollection.msg

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

PrimitiveInstanceCollection.obj_type

LayoutObjType: Layout object type.

PrimitiveInstanceCollection.positions

list of PointData: The positions geometry is instantiated at.