Layer#

class ansys.edb.core.layer.layer.Layer(msg)#

Provides the base class representing a layer.

Methods

Layer.cast()

Cast the layer object to the correct concrete type.

Layer.clone([copy_id])

Create a clone of the layer.

Layer.create(name, lyr_type)

Create a non-stackup layer.

Layer.get_product_property(prod_id, attr_it)

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

Layer.get_product_property_ids(prod_id)

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

Layer.is_in_zone(zone)

Determine if the layer exists in the given zone.

Layer.set_is_in_zone(zone[, in_zone])

Set whether the layer exists in a given zone.

Layer.set_product_property(prod_id, attr_it, ...)

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

Attributes

Layer.color

tuple[int, int, int]: Color of the layer in (R,G,B) format.

Layer.draw_override

DrawOverride: Draw override of the layer.

Layer.id

int: Unique ID of the EDB object.

Layer.is_null

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

Layer.is_stackup_layer

bool: Flag indicating if the layer is a StackupLayer instance.

Layer.is_via_layer

bool: Flag indicating if the layer is a ViaLayer instance.

Layer.layer_id

int: Layer ID.

Layer.layout_obj_type

Layer.locked

bool: Flag indicating if the layer is locked.

Layer.msg

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

Layer.name

str: Name of the layer.

Layer.top_bottom_association

TopBottomAssociation: Top-bottom association of the layer.

Layer.transparency

int: Transparency value of the layer.

Layer.type

LayerType: Type of the layer.

Layer.visibility_mask

int: Visibility mask of the layer.

Layer.zone

int: Zone index associated with the owning layer collection.

Layer.zones

list[int]: IDs of all zones containing the layer.