:class:`MasterComponent` ======================== .. py: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: **id** : :class:`python:str` Unique identifier for the transformed part. **name** : :class:`python:str` Name of the transformed part. **part** : :obj:`Part` Reference to the transformed part's master part. **transform** : :obj:`Matrix44` 4x4 transformation matrix from the master part. .. rubric:: 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. .. !! processed by numpydoc !! .. py:currentmodule:: MasterComponent Overview -------- .. tab-set:: .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~id` - ID of the transformed part. * - :py:attr:`~name` - Name of the transformed part. * - :py:attr:`~occurrences` - List of all occurrences of the component. * - :py:attr:`~part` - Master part of the transformed part. * - :py:attr:`~transform` - 4x4 transformation matrix from the master part. .. tab-item:: Special methods .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~__repr__` - Represent the master component as a string. Import detail ------------- .. code-block:: python from ansys.geometry.core.designer.part import MasterComponent Property detail --------------- .. py:property:: id :type: str ID of the transformed part. .. !! processed by numpydoc !! .. py:property:: name :type: str Name of the transformed part. .. !! processed by numpydoc !! .. py:property:: occurrences :type: list[ansys.geometry.core.designer.component.Component] List of all occurrences of the component. .. !! processed by numpydoc !! .. py:property:: part :type: Part Master part of the transformed part. .. !! processed by numpydoc !! .. py:property:: transform :type: ansys.geometry.core.math.matrix.Matrix44 4x4 transformation matrix from the master part. .. !! processed by numpydoc !! Method detail ------------- .. py:method:: __repr__() -> str Represent the master component as a string. .. !! processed by numpydoc !!