Group#

class ansys.edb.core.hierarchy.group.Group(msg)#

Represents a group object.

Methods

Group.add_member(member)

Add an object to the group.

Group.cast()

Cast the group object to the correct concrete type.

Group.create(layout, name)

Create a group.

Group.create_3d_comp()

Create a 3D composite model from an MCAD file.

Group.create_hfss()

Create an HFSS model from an MCAD file.

Group.create_stride()

Create a Stride model from an MCAD file.

Group.delete()

Delete the layout object.

Group.find(layout, name)

Find a group by name.

Group.find_by_id(layout, uid)

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

Group.get_product_property(prod_id, attr_id)

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

Group.get_product_property_ids(prod_id)

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

Group.remove_member(member)

Remove an object from the group.

Group.set_product_property(prod_id, attr_id, ...)

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

Group.ungroup(recursive)

Dissolve the group.

Attributes

Group.component

ComponentGroup: Component of the Connectable object.

Group.component_def

ComponentDef: Component definition for the hierarchy object if it exists, None otherwise.

Group.edb_uid

int: Unique, persistent ID for the Connectable object.

Group.group

Group object.

Group.id

int: Unique ID of the EDB object.

Group.is_mcad

bool: Flag indicating if this is an MCAD model.

Group.is_mcad_3d_comp

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

Group.is_mcad_hfss

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

Group.is_mcad_stride

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

Group.is_null

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

Group.layout

Layout: Layout owning the object.

Group.layout_obj_type

Group.location

tuple (Value, Value): Location [x, y] of the hierarchy object on the placement_layer object.

Group.members

list of Connectables: All group members.

Group.msg

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

Group.name

str: Name of the hierarchy object.

Group.net

Net: Net of the Connectable object.

Group.obj_type

LayoutObjType: Layout object type.

Group.placement_layer

Layer: Placement layer for the hierarchy object.

Group.solve_independent_preference

bool: Flag indicating if the object is assigned to solve independent of its parent context.

Group.transform

Transform: Transformation information of the hierarchy object.