Part
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.Part#
Bases:
object
Defines a Part.
Overview#
Activate the current object. |
|
Creates a new child Comment. |
|
Creates a new child Figure. |
|
Creates a new child Image. |
|
Run the ClearGeneratedData action. |
|
Copies all visible properties from this object to another. |
|
Creates a new parameter for a Property. |
|
Creates a copy of the current DataModelObject. |
|
Run the GenerateMesh action. |
|
Gets the list of children, filtered by type. |
|
Gets the parameter corresponding to the given property. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Run the PreviewInflation action. |
|
Run the PreviewSurfaceMesh action. |
|
Get a property by its API name. |
|
Get a property by its unique name. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Run the Update action. |
Gets the ApproximateSurfaceArea. |
|
Gets or sets the Assignment. |
|
Gets the Average. |
|
Gets the CentroidX. |
|
Gets the CentroidY. |
|
Gets the CentroidZ. |
|
Gets the list of children. |
|
Gets the list of associated comments. |
|
Gets the related Result Mesh's ConfigurationId. |
|
Gets or sets the CoordinateSystem. |
|
Gets the current DataModelObject's category. |
|
Gets the Elements. |
|
Gets the list of associated figures. |
|
Hide or show the body. |
|
Gets the list of associated images. |
|
Gets the internal object. For advanced usage only. |
|
Gets the LengthX. |
|
Gets the LengthY. |
|
Gets the LengthZ. |
|
Gets the Mass. |
|
Gets or sets the Material. |
|
Gets or sets the MaterialName. |
|
Gets the Maximum. |
|
Gets the MeshMetric. |
|
Gets the Minimum. |
|
Gets the MomentOfInertiaIp1. |
|
Gets the MomentOfInertiaIp2. |
|
Gets the MomentOfInertiaIp3. |
|
Gets the Nodes. |
|
Gets the list of properties for this object. |
|
Gets or sets the ReadOnly. |
|
Gets the related Result Mesh's ObjectId. |
|
Gets the StandardDeviation. |
|
Gets or sets the Suppressed. |
|
Gets or sets the Visible. |
|
Gets the list of properties that are visible for this object. |
|
Gets the Volume. |
Property detail#
- property Part.Children: List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None#
Gets the list of children.
- property Part.Comments: Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None#
Gets the list of associated comments.
- property Part.CoordinateSystem: Ansys.ACT.Automation.Mechanical.CoordinateSystem | None#
Gets or sets the CoordinateSystem.
- property Part.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None#
Gets the current DataModelObject's category.
- property Part.Figures: Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None#
Gets the list of associated figures.
- property Part.Images: Iterable[Ansys.ACT.Automation.Mechanical.Image] | None#
Gets the list of associated images.
- property Part.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSBodyGroupAuto | None#
Gets the internal object. For advanced usage only.
- property Part.MeshMetric: Ansys.Mechanical.DataModel.Enums.MeshMetricType | None#
Gets the MeshMetric.
- property Part.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties for this object.
Method detail#
- Part.AddComment() Ansys.ACT.Automation.Mechanical.Comment #
Creates a new child Comment.
- Part.AddFigure() Ansys.ACT.Automation.Mechanical.Figure #
Creates a new child Figure.
- Part.AddImage(filePath: str) Ansys.ACT.Automation.Mechanical.Image #
Creates a new child Image.
If a filePath is provided, the image will be loaded from that file,
if not, the image will be a screen capture of the Geometry window.
- Part.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) None #
Copies all visible properties from this object to another.
- Part.CreateParameter(paramPath: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Creates a new parameter for a Property.
- Part.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject #
Creates a copy of the current DataModelObject.
- Part.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType] #
Gets the list of children, filtered by type.
- Part.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter #
Gets the parameter corresponding to the given property.
- Part.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder #
Run the GroupSimilarObjects action.
Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.
- Part.PropertyByName(name: str) Ansys.ACT.Automation.Mechanical.Property #
Get a property by its unique name.