Part#
- class ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Part(internalObject: Any)#
Bases:
objectDefines 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. |
|
CreateObjRef method. |
|
Creates a new parameter for a Property. |
|
Creates a copy of the current DataModelObject. |
|
Equals method. |
|
Run the GenerateMesh action. |
|
Property name bound to dispId. |
|
GetAllProperties method. |
|
Gets the list of children, filtered by type. |
|
GetDetailsView method. |
|
Enum name bound to value |
|
GetGeoPart method. |
|
GetHashCode method. |
|
GetIconFile method. |
|
GetLifetimeService method. |
|
GetObjectData method. |
|
Gets the parameter corresponding to the given property. |
|
GetPath method. |
|
GetPropertyName method. |
|
GetPropertyValue method. |
|
GetType method. |
|
GetVisibleProperties method. |
|
GetVisiblePropertyNames method. |
|
Run the GroupAllSimilarChildren action. |
|
Run the GroupSimilarObjects action. |
|
InitializeLifetimeService method. |
|
IsPropertyEditable method. |
|
IsPropertyVisible method. |
|
Run the PreviewInflation action. |
|
Run the PreviewSurfaceMesh action. |
|
Get a property by its API name. |
|
PropertyById method. |
|
Get a property by its unique name. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
ToString method. |
|
Run the Update action. |
Gets the approximate surface area of the part. This is only applicable to parts made up entirely of surface bodies. |
|
Gets or sets the Assignment. |
|
AttachedRefs property. |
|
Gets the Average. |
|
Gets or sets Cable Bar Scale Factor. |
|
Gets or sets Cable Bending Scale Factor. |
|
Gets Cable Initial Length, which is the sum of cable body lengths under multibody cable. |
|
Gets the CentroidX. |
|
Gets the CentroidY. |
|
Gets the CentroidZ. |
|
Gets the list of children. |
|
ClsId property. |
|
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. |
|
Gets or sets Cable Free Length. |
|
GroupingFolder property. |
|
Hide or show the body. |
|
IconName property. |
|
Gets the list of associated images. |
|
ImportableObjectSourceId property. |
|
Gets the internal object. For advanced usage only. |
|
IsVirtual property. |
|
Gets the LengthX. |
|
Gets the LengthY. |
|
Gets the LengthZ. |
|
Gets or sets Cable Load. |
|
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. |
|
Name property. |
|
Gets the Nodes. |
|
ObjectId property. |
|
ObjectState property. |
|
ObjectTags property. |
|
Parent property. |
|
Gets or sets the preload type for cable. |
|
Gets the list of properties for this object. |
|
Gets or sets the ReadOnly. |
|
Gets the related Result Mesh's ObjectId. |
|
Gets the StandardDeviation. |
|
State property. |
|
Gets or sets the Suppressed. |
|
Gets or sets whether Geometry properties or “Free Length” property entry is used for cable free length input. |
|
Gets or sets Cable Torsional Scale Factor. |
|
TransferableObjectId property. |
|
Gets or sets the UseStiffnessScaleFactor. |
|
Gets or sets the Visible. |
|
Gets the list of properties that are visible for this object. |
|
Gets the Volume. |
Property detail#
- property Part.ApproximateSurfaceArea: float | None#
Gets the approximate surface area of the part. This is only applicable to parts made up entirely of surface bodies.
- property Part.CableLength: Ansys.Core.Units.Quantity | None#
Gets Cable Initial Length, which is the sum of cable body lengths under multibody cable.
- 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.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.FreeLength: Ansys.Core.Units.Quantity | None#
Gets or sets Cable Free Length.
- property Part.GroupingFolder: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#
GroupingFolder property.
- 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.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.Load: Ansys.Core.Units.Quantity | None#
Gets or sets Cable Load.
- property Part.Mass: Ansys.Core.Units.Quantity | None#
Gets the Mass.
- property Part.MeshMetric: Ansys.Mechanical.DataModel.Enums.MeshMetricType | None#
Gets the MeshMetric.
- 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.ObjectState: Ansys.Mechanical.DataModel.Enums.ObjectState | None#
ObjectState property.
- property Part.ObjectTags: Iterable[Ansys.Mechanical.DataModel.Interfaces.IObjectTag] | None#
ObjectTags property.
- property Part.Parent: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject | None#
Parent property.
- property Part.PreloadType: Ansys.Mechanical.DataModel.Enums.PreloadType | None#
Gets or sets the preload type for cable.
- property Part.Properties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties for this object.
- property Part.SynchronizeFreeLengthWithGeometry: bool | None#
Gets or sets whether Geometry properties or “Free Length” property entry is used for cable free length input.
- property Part.VisibleProperties: tuple[Ansys.ACT.Automation.Mechanical.Property] | None#
Gets the list of properties that are visible for this object.
- property Part.Volume: Ansys.Core.Units.Quantity | None#
Gets the Volume.
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.Equals(other: Ansys.Mechanical.DataModel.Interfaces.IDataModelObject) bool#
Equals method.
- Part.GetAllProperties() List[Ansys.ACT.Automation.Mechanical.AutomationPropertyWrapper]#
GetAllProperties method.
- Part.GetChildren(recurses: bool, children: List[ChildrenType]) List[ChildrenType]#
Gets the list of children, filtered by type.
- Part.GetDetailsView() Ansys.ACT.Automation.Mechanical.DetailsViewData#
GetDetailsView method.
- Part.GetGeoPart() Ansys.ACT.Interfaces.Geometry.IGeoPart#
GetGeoPart method.
- Part.GetIconFile() System.Byte#
GetIconFile method.
- Part.GetLifetimeService() Any#
GetLifetimeService method.
- Part.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#
GetObjectData method.
- Part.GetParameter(propName: str) Ansys.ACT.Interfaces.Mechanical.IParameter#
Gets the parameter corresponding to the given property.
- Part.GetVisibleProperties() List[System.Reflection.PropertyInfo]#
GetVisibleProperties method.
- Part.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder#
Run the GroupSimilarObjects action.
- Part.InitializeLifetimeService() Any#
InitializeLifetimeService method.
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.