MasterComponent#

class ansys.geometry.core.designer.part.MasterComponent(id: str, name: str, part: Part, transform: ansys.geometry.core.math.matrix.Matrix44 = IDENTITY_MATRIX44)#

Represents a part occurrence.

Parameters:
idstr

Unique identifier for the transformed part.

namestr

Name of the transformed part.

partPart

Reference to the transformed part’s master part.

transformMatrix44

4x4 transformation matrix from the master part.

Notes

This class should not be accessed by users. It holds the fundamental data of an assembly. Master components wrap parts by adding a transform matrix.

Overview#

id

ID of the transformed part.

name

Name of the transformed part.

occurrences

List of all occurrences of the component.

part

Master part of the transformed part.

transform

4x4 transformation matrix from the master part.

__repr__

Represent the master component as a string.

Import detail#

from ansys.geometry.core.designer.part import MasterComponent

Property detail#

property MasterComponent.id: str#

ID of the transformed part.

property MasterComponent.name: str#

Name of the transformed part.

property MasterComponent.occurrences: beartype.typing.List[ansys.geometry.core.designer.component.Component]#

List of all occurrences of the component.

property MasterComponent.part: Part#

Master part of the transformed part.

property MasterComponent.transform: ansys.geometry.core.math.matrix.Matrix44#

4x4 transformation matrix from the master part.

Method detail#

MasterComponent.__repr__() str#

Represent the master component as a string.