AbstractAssemblyChild#

class AbstractAssemblyChild(element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine)#

Bases: ansys.modelcenter.workflow.grpc_modelcenter.abstract_workflow_element.AbstractWorkflowElement, ansys.modelcenter.workflow.api.IAssemblyChild, abc.ABC

Defines an abstract base class for children of assemblies.

Overview#

get_analysis_view_position

Get the position of the assembly within the analysis view.

index_in_parent

Index of the assembly within its parent assembly.

parent_assembly

Parent assembly of the assembly.

control_type

Control type of the item.

Import detail#

from ansys.modelcenter.workflow.grpc_modelcenter.abstract_assembly_child import AbstractAssemblyChild

Property detail#

property AbstractAssemblyChild.index_in_parent: int#

Index of the assembly within its parent assembly.

property AbstractAssemblyChild.parent_assembly: ansys.modelcenter.workflow.api.IAssembly | None#

Parent assembly of the assembly.

Returns:
Optional[IAssembly]

Parent assembly or None if this assembly is the root of the workflow.

property AbstractAssemblyChild.control_type: str#

Control type of the item.

Returns:
str

Control type of the item.

Method detail#

AbstractAssemblyChild.get_analysis_view_position() Tuple[int, int]#

Get the position of the assembly within the analysis view.

Returns:
Tuple[int, int]

Two-element tuple where the first element is the x coordinate and the second element is the y coordinate.