Part#

class ansys.geometry.core.designer.part.Part(id: str, name: str, components: list[MasterComponent], bodies: 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: list[MasterComponent]#

MasterComponent children that the part contains.

property Part.bodies: 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.