Part
#
- class ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.Part#
Bases:
object
Defines a Part.
Overview#
|
Run the ClearGeneratedData action. |
|
Creates a new parameter for a Property. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Run the GenerateMesh action. |
|
Run the PreviewInflation action. |
|
Run the PreviewSurfaceMesh action. |
|
Run the Update action. |
|
Gets the list of children, filtered by type. |
|
Gets the list of children, filtered by type. |
|
Creates a new child Comment. |
|
Creates a new child Figure. |
|
Creates a new child Image. |
|
Activate the current object. |
|
Copies all visible properties from this object to another. |
|
Creates a copy of the current DataModelObject. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
Get a property by its unique name. |
|
Get a property by its API name. |
|
Gets the parameter corresponding to the given property. |
|
Gets or sets the MaterialName. |
|
Hide or show the body. |
|
Gets the related Result Mesh’s ConfigurationId. |
|
Gets the related Result Mesh’s ObjectId. |
|
Gets or sets the Assignment. |
|
Gets the internal object. For advanced usage only. |
|
Gets the Elements. |
|
Gets or sets the Material. |
|
Gets the Average. |
|
Gets the Maximum. |
|
Gets the Minimum. |
|
Gets the StandardDeviation. |
|
Gets the Nodes. |
|
Gets the ApproximateSurfaceArea. |
|
Gets the LengthX. |
|
Gets the LengthY. |
|
Gets the LengthZ. |
|
Gets the Mass. |
|
Gets the CentroidX. |
|
Gets the CentroidY. |
|
Gets the CentroidZ. |
|
Gets the MomentOfInertiaIp1. |
|
Gets the MomentOfInertiaIp2. |
|
Gets the MomentOfInertiaIp3. |
|
Gets the Volume. |
|
Gets the MeshMetric. |
|
Gets or sets the Visible. |
|
Gets or sets the Suppressed. |
|
Gets or sets the CoordinateSystem. |
|
Gets the current DataModelObject’s category. |
|
Gets the list of children. |
|
Gets the list of associated comments. |
|
Gets the list of associated figures. |
|
Gets the list of associated images. |
|
Gets or sets the ReadOnly. |
|
Gets the internal object. For advanced usage only. |
|
Gets the list of properties for this object. |
|
Gets the list of properties that are visible for this object. |
Property detail#
- property Part.MaterialName: System.String | None
Gets or sets the MaterialName.
- property Part.Hidden: System.Boolean | None
Hide or show the body.
- property Part.ConfigurationId: System.Int32 | None
Gets the related Result Mesh’s ConfigurationId.
- property Part.ResultMeshId: System.Int32 | None
Gets the related Result Mesh’s ObjectId.
- property Part.Assignment: System.String | None
Gets or sets the Assignment.
- property Part.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSBodyGroupAuto | None
Gets the internal object. For advanced usage only.
- property Part.Elements: System.Int32 | None
Gets the Elements.
- property Part.Material: System.String | None
Gets or sets the Material.
- property Part.Average: System.Double | None
Gets the Average.
- property Part.Maximum: System.Double | None
Gets the Maximum.
- property Part.Minimum: System.Double | None
Gets the Minimum.
- property Part.StandardDeviation: System.Double | None
Gets the StandardDeviation.
- property Part.Nodes: System.Int32 | None
Gets the Nodes.
- property Part.ApproximateSurfaceArea: System.Double | None
Gets the ApproximateSurfaceArea.
- property Part.LengthX: Ansys.Core.Units.Quantity | None
Gets the LengthX.
- property Part.LengthY: Ansys.Core.Units.Quantity | None
Gets the LengthY.
- property Part.LengthZ: Ansys.Core.Units.Quantity | None
Gets the LengthZ.
- property Part.Mass: Ansys.Core.Units.Quantity | None
Gets the Mass.
- property Part.CentroidX: Ansys.Core.Units.Quantity | None
Gets the CentroidX.
- property Part.CentroidY: Ansys.Core.Units.Quantity | None
Gets the CentroidY.
- property Part.CentroidZ: Ansys.Core.Units.Quantity | None
Gets the CentroidZ.
- property Part.MomentOfInertiaIp1: Ansys.Core.Units.Quantity | None
Gets the MomentOfInertiaIp1.
- property Part.MomentOfInertiaIp2: Ansys.Core.Units.Quantity | None
Gets the MomentOfInertiaIp2.
- property Part.MomentOfInertiaIp3: Ansys.Core.Units.Quantity | None
Gets the MomentOfInertiaIp3.
- property Part.Volume: Ansys.Core.Units.Quantity | None
Gets the Volume.
- property Part.MeshMetric: Ansys.Mechanical.DataModel.Enums.MeshMetricType | None
Gets the MeshMetric.
- property Part.Visible: System.Boolean | None
Gets or sets the Visible.
- property Part.Suppressed: System.Boolean | None
Gets or sets the Suppressed.
- 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.Children: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None
Gets the list of children.
- property Part.Comments: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Comment] | None
Gets the list of associated comments.
- property Part.Figures: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Figure] | None
Gets the list of associated figures.
- property Part.Images: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Image] | None
Gets the list of associated images.
- property Part.ReadOnly: System.Boolean | None
Gets or sets the ReadOnly.
- property Part.InternalObject: System.Object | None
Gets the internal object. For advanced usage only.
- property Part.Properties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties for this object.
- property Part.VisibleProperties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties that are visible for this object.
Method detail#
- Part.ClearGeneratedData() System.Void
Run the ClearGeneratedData action.
- Part.CreateParameter(paramPath: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Creates a new parameter for a Property.
- Part.RemoveParameter(paramPath: System.String) System.Void
Removes the parameter from the parameter set corresponding to the given property.
- Part.GenerateMesh() System.Void
Run the GenerateMesh action.
- Part.PreviewInflation() System.Void
Run the PreviewInflation action.
- Part.PreviewSurfaceMesh() System.Void
Run the PreviewSurfaceMesh action.
- Part.Update() System.Void
Run the Update action.
- Part.GetChildren(recurses: System.Boolean, children: System.Collections.Generic.IList[ChildrenType]) System.Collections.Generic.IList[ChildrenType]
Gets the list of children, filtered by type.
- Part.GetChildren(category: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory, recurses: System.Boolean, children: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]) System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject]
Gets the list of children, filtered by type.
- 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: System.String) 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.Activate() System.Void
Activate the current object.
- Part.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) System.Void
Copies all visible properties from this object to another.
- Part.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject
Creates a copy of the current DataModelObject.
- Part.GroupAllSimilarChildren() System.Void
Run the GroupAllSimilarChildren action.
- Part.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder
Run the GroupSimilarObjects action.
- Part.PropertyByName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
Get a property by its unique name.
- Part.PropertyByAPIName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
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.GetParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Gets the parameter corresponding to the given property.