Part#

class ansys.geometry.core.designer.part.Part(id: str, name: str, components: beartype.typing.List[MasterComponent], bodies: beartype.typing.List[ansys.geometry.core.designer.body.MasterBody])#

Represents a part master.

This class should not be accessed by users. The Part class holds fundamental data of an assembly.

Parameters:
idstr

Unique identifier for the part.

namestr

Name of the part.

componentsList[MasterComponent]

List of MasterComponent children that the part contains.

bodiesList[MasterBody]

List of MasterBody children that the part contains. These are master bodies.

Overview#

id

ID of the part.

name

Name of the part.

components

MasterComponent children that the part contains.

bodies

MasterBody children that the part contains.

__repr__

Represent the part as a string.

Import detail#

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

Property detail#

property Part.id: str#

ID of the part.

property Part.name: str#

Name of the part.

property Part.components: beartype.typing.List[MasterComponent]#

MasterComponent children that the part contains.

property Part.bodies: beartype.typing.List[ansys.geometry.core.designer.body.MasterBody]#

MasterBody children that the part contains.

These are master bodies.

Method detail#

Part.__repr__() str#

Represent the part as a string.