LayerMap#

class ansys.edb.core.utility.layer_map.LayerMap(msg)#

Represents a two-way layer map where the key and value is the layer ID.

Methods

LayerMap.clear()

Clear the entrties of the layer map.

LayerMap.create(direction)

Create a layer map object.

LayerMap.get_mapping_backward(layer_id)

Get a list of IDs mapped backward with the given ID (value).

LayerMap.get_mapping_forward(layer_id)

Get the list of IDs mapped forward with the given ID (key).

LayerMap.set_mapping(from_id, to_id)

Create an entry in the layer map object.

Attributes

LayerMap.id

int: Unique ID of the EDB object.

LayerMap.is_null

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

LayerMap.msg

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