Body
#
- class ansys.mechanical.stubs.v242.Ansys.ACT.Automation.Mechanical.Body#
Bases:
object
Defines a Body.
Overview#
|
Gets the Geo Body |
|
Run the ClearGeneratedData action. |
|
Creates a new CommandSnippet |
|
Creates a new PythonCodeEventBased |
|
Run the GenerateMesh action. |
|
Run the PreviewInflation action. |
|
Run the PreviewSurfaceMesh action. |
|
Run the ShowBody 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. |
|
Creates a new parameter for a Property. |
|
Gets the parameter corresponding to the given property. |
|
Removes the parameter from the parameter set corresponding to the given property. |
|
Hide or show the body. |
|
Gets the related Result Mesh’s ConfigurationId. |
|
Gets the related Result Mesh’s ObjectId. |
|
Gets or sets the ReferenceTemperature. |
|
Gets the ThicknessMode. |
|
Gets or sets the Dimension. |
|
Gets or sets the Assignment. |
|
Gets CrossSectionName. |
|
Gets or sets the ModelType. |
|
Gets the GeometryType. |
|
Gets if the part suppressed property is parameterized. |
|
Gets or sets the Transparency. Values range from 0.0 (fully invisible) to 1.0 (fully visible). |
|
Gets or sets the Color, encoded as a BGR bitfield. |
|
Gets the internal object. For advanced usage only. |
|
Gets the Elements. |
|
Gets or sets the Material. |
|
Gets the Nodes. |
|
Gets or sets the NumberOfTurns. |
|
Gets the MeshVersion. |
|
Gets the LengthX. |
|
Gets the LengthY. |
|
Gets the LengthZ. |
|
Gets the CrossSectionArea. |
|
Gets the CrossSectionIYY. |
|
Gets the CrossSectionIZZ. |
|
Gets or sets the FiberAngle. |
|
Gets or sets the FiberCrossSectionArea. |
|
Gets or sets the FiberSpacing. |
|
Gets or sets the FluidCrossArea. |
|
Gets the Mass. |
|
Gets the CentroidX. |
|
Gets the CentroidY. |
|
Gets the CentroidZ. |
|
Gets the MomentOfInertiaIp1. |
|
Gets the MomentOfInertiaIp2. |
|
Gets the MomentOfInertiaIp3. |
|
Gets the Average. |
|
Gets the Maximum. |
|
Gets the Minimum. |
|
Gets the StandardDeviation. |
|
Gets or sets the OffsetX. |
|
Gets or sets the OffsetY. |
|
Gets the PipeExternalDiameter. |
|
Gets the PipeInternalDiameter. |
|
Gets the PipeThickness. |
|
Gets or sets the ReferenceTemperatureValue. |
|
Gets the SurfaceArea. |
|
Gets or sets the Thickness. |
|
Gets the Volume. |
|
Gets the Length. |
|
Gets or sets the OffsetMode. |
|
Gets or sets the BrickIntegrationScheme. |
|
Gets or sets the FluidDiscretization. |
|
Gets or sets the LinkTrussBehavior. |
|
Gets or sets the MaterialPolarizationDirection. |
|
Gets the MeshMetric. |
|
Gets or sets the Behavior. |
|
Gets or sets the OffsetType. |
|
Gets or sets the FluidSolidPhase. |
|
Gets or sets the ReferenceFrame. |
|
Gets or sets the ReinforcingStressState. |
|
Gets or sets the StiffnessOption. |
|
Gets or sets the ShellOffsetType. |
|
Gets or sets the StiffnessBehavior. |
|
Gets or sets the Treatment. |
|
Gets or sets the Visible. |
|
Gets or sets the HomogeneousMembrane. |
|
Gets the IsWindingBody. |
|
Gets or sets the NonlinearEffects. |
|
Gets or sets the Suppressed. |
|
Gets or sets the ThermalStrainEffects. |
|
Gets the ManualThicknessMode. |
|
Gets or sets the UseReferenceTemperatureByBody. |
|
Gets the UserNameChange. |
|
Gets the BeamSection. |
|
Gets or sets the CoordinateSystem. |
|
Gets or sets the CrossSectionSelection. |
|
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 Body.Hidden: System.Boolean | None
Hide or show the body.
- property Body.ConfigurationId: System.Int32 | None
Gets the related Result Mesh’s ConfigurationId.
- property Body.ResultMeshId: System.Int32 | None
Gets the related Result Mesh’s ObjectId.
- property Body.ReferenceTemperature: System.Boolean | None
Gets or sets the ReferenceTemperature.
- property Body.ThicknessMode: System.Boolean | None
Gets the ThicknessMode.
- property Body.Dimension: Ansys.Mechanical.DataModel.Enums.ShellBodyDimension | None
Gets or sets the Dimension.
- property Body.Assignment: System.String | None
Gets or sets the Assignment.
- property Body.CrossSectionName: System.String | None
Gets CrossSectionName.
- property Body.ModelType: Ansys.Mechanical.DataModel.Enums.PrototypeModelType | None
Gets or sets the ModelType. Note: ModelType is applicable to line bodies and surface bodies only.
- property Body.GeometryType: Ansys.Mechanical.DataModel.Enums.GeometryType | None
Gets the GeometryType.
- property Body.SuppressedParameterized: System.Boolean | None
Gets if the part suppressed property is parameterized.
- property Body.Transparency: System.Double | None
Gets or sets the Transparency. Values range from 0.0 (fully invisible) to 1.0 (fully visible).
- property Body.Color: System.UInt32 | None
Gets or sets the Color, encoded as a BGR bitfield.
- property Body.InternalObject: Ansys.Common.Interop.DSObjectsAuto.IDSPrototypeAuto | None
Gets the internal object. For advanced usage only.
- property Body.Elements: System.Int32 | None
Gets the Elements.
- property Body.Material: System.String | None
Gets or sets the Material.
- property Body.Nodes: System.Int32 | None
Gets the Nodes.
- property Body.NumberOfTurns: System.UInt32 | None
Gets or sets the NumberOfTurns.
- property Body.MeshVersion: System.Int32 | None
Gets the MeshVersion.
- property Body.LengthX: Ansys.Core.Units.Quantity | None
Gets the LengthX.
- property Body.LengthY: Ansys.Core.Units.Quantity | None
Gets the LengthY.
- property Body.LengthZ: Ansys.Core.Units.Quantity | None
Gets the LengthZ.
- property Body.CrossSectionArea: Ansys.Core.Units.Quantity | None
Gets the CrossSectionArea.
- property Body.CrossSectionIYY: Ansys.Core.Units.Quantity | None
Gets the CrossSectionIYY.
- property Body.CrossSectionIZZ: Ansys.Core.Units.Quantity | None
Gets the CrossSectionIZZ.
- property Body.FiberAngle: Ansys.Core.Units.Quantity | None
Gets or sets the FiberAngle.
- property Body.FiberCrossSectionArea: Ansys.Core.Units.Quantity | None
Gets or sets the FiberCrossSectionArea.
- property Body.FiberSpacing: Ansys.Core.Units.Quantity | None
Gets or sets the FiberSpacing.
- property Body.FluidCrossArea: Ansys.Core.Units.Quantity | None
Gets or sets the FluidCrossArea.
- property Body.Mass: Ansys.Core.Units.Quantity | None
Gets the Mass.
- property Body.CentroidX: Ansys.Core.Units.Quantity | None
Gets the CentroidX.
- property Body.CentroidY: Ansys.Core.Units.Quantity | None
Gets the CentroidY.
- property Body.CentroidZ: Ansys.Core.Units.Quantity | None
Gets the CentroidZ.
- property Body.MomentOfInertiaIp1: Ansys.Core.Units.Quantity | None
Gets the MomentOfInertiaIp1.
- property Body.MomentOfInertiaIp2: Ansys.Core.Units.Quantity | None
Gets the MomentOfInertiaIp2.
- property Body.MomentOfInertiaIp3: Ansys.Core.Units.Quantity | None
Gets the MomentOfInertiaIp3.
- property Body.Average: Ansys.Core.Units.Quantity | None
Gets the Average.
- property Body.Maximum: Ansys.Core.Units.Quantity | None
Gets the Maximum.
- property Body.Minimum: Ansys.Core.Units.Quantity | None
Gets the Minimum.
- property Body.StandardDeviation: Ansys.Core.Units.Quantity | None
Gets the StandardDeviation.
- property Body.OffsetX: Ansys.Core.Units.Quantity | None
Gets or sets the OffsetX.
- property Body.OffsetY: Ansys.Core.Units.Quantity | None
Gets or sets the OffsetY.
- property Body.PipeExternalDiameter: Ansys.Core.Units.Quantity | None
Gets the PipeExternalDiameter.
- property Body.PipeInternalDiameter: Ansys.Core.Units.Quantity | None
Gets the PipeInternalDiameter.
- property Body.PipeThickness: Ansys.Core.Units.Quantity | None
Gets the PipeThickness.
- property Body.ReferenceTemperatureValue: Ansys.Core.Units.Quantity | None
Gets or sets the ReferenceTemperatureValue.
- property Body.SurfaceArea: Ansys.Core.Units.Quantity | None
Gets the SurfaceArea.
- property Body.Thickness: Ansys.Core.Units.Quantity | None
Gets or sets the Thickness.
- property Body.Volume: Ansys.Core.Units.Quantity | None
Gets the Volume.
- property Body.Length: Ansys.Core.Units.Quantity | None
Gets the Length.
- property Body.OffsetMode: Ansys.Mechanical.DataModel.Enums.AutomaticOrManual | None
Gets or sets the OffsetMode.
- property Body.BrickIntegrationScheme: Ansys.Mechanical.DataModel.Enums.BrickIntegrationScheme | None
Gets or sets the BrickIntegrationScheme.
- property Body.FluidDiscretization: Ansys.Mechanical.DataModel.Enums.FluidDiscretizationType | None
Gets or sets the FluidDiscretization.
- property Body.LinkTrussBehavior: Ansys.Mechanical.DataModel.Enums.PrototypeLinkBehavior | None
Gets or sets the LinkTrussBehavior.
- property Body.MaterialPolarizationDirection: Ansys.Mechanical.DataModel.Enums.MaterialPolarizationDirection | None
Gets or sets the MaterialPolarizationDirection.
- property Body.MeshMetric: Ansys.Mechanical.DataModel.Enums.MeshMetricType | None
Gets the MeshMetric.
- property Body.Behavior: Ansys.Mechanical.DataModel.Enums.Model2DBehavior | None
Gets or sets the Behavior.
- property Body.OffsetType: Ansys.Mechanical.DataModel.Enums.BeamOffsetType | None
Gets or sets the OffsetType.
- property Body.FluidSolidPhase: Ansys.Mechanical.DataModel.Enums.PhaseType | None
Gets or sets the FluidSolidPhase.
- property Body.ReferenceFrame: Ansys.Mechanical.DataModel.Enums.ReferenceFrameType | None
Gets or sets the ReferenceFrame.
- property Body.ReinforcingStressState: Ansys.Mechanical.DataModel.Enums.ReinforcingStressState | None
Gets or sets the ReinforcingStressState.
- property Body.StiffnessOption: Ansys.Mechanical.DataModel.Enums.ShellElementStiffnessOption | None
Gets or sets the StiffnessOption.
- property Body.ShellOffsetType: Ansys.Mechanical.DataModel.Enums.ShellOffsetType | None
Gets or sets the ShellOffsetType.
- property Body.StiffnessBehavior: Ansys.Mechanical.DataModel.Enums.StiffnessBehavior | None
Gets or sets the StiffnessBehavior.
- property Body.Treatment: Ansys.Mechanical.DataModel.Enums.BodyTreatment | None
Gets or sets the Treatment.
- property Body.Visible: System.Boolean | None
Gets or sets the Visible.
- property Body.HomogeneousMembrane: System.Boolean | None
Gets or sets the HomogeneousMembrane.
- property Body.IsWindingBody: System.Boolean | None
Gets the IsWindingBody.
- property Body.NonlinearEffects: System.Boolean | None
Gets or sets the NonlinearEffects.
- property Body.Suppressed: System.Boolean | None
Gets or sets the Suppressed.
- property Body.ThermalStrainEffects: System.Boolean | None
Gets or sets the ThermalStrainEffects.
- property Body.ManualThicknessMode: System.Boolean | None
Gets the ManualThicknessMode.
- property Body.UseReferenceTemperatureByBody: System.Boolean | None
Gets or sets the UseReferenceTemperatureByBody.
- property Body.UserNameChange: System.Boolean | None
Gets the UserNameChange.
- property Body.BeamSection: Ansys.ACT.Automation.Mechanical.DataModelObject | None
Gets the BeamSection.
- property Body.CoordinateSystem: Ansys.ACT.Automation.Mechanical.CoordinateSystem | None
Gets or sets the CoordinateSystem.
- property Body.CrossSectionSelection: Ansys.ACT.Automation.Mechanical.CrossSection | None
Gets or sets the CrossSectionSelection.
- property Body.DataModelObjectCategory: Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None
Gets the current DataModelObject’s category.
- property Body.Children: System.Collections.Generic.IList[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None
Gets the list of children.
- property Body.Comments: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Comment] | None
Gets the list of associated comments.
- property Body.Figures: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Figure] | None
Gets the list of associated figures.
- property Body.Images: System.Collections.Generic.IEnumerable[Ansys.ACT.Automation.Mechanical.Image] | None
Gets the list of associated images.
- property Body.ReadOnly: System.Boolean | None
Gets or sets the ReadOnly.
- property Body.InternalObject: System.Object | None
Gets the internal object. For advanced usage only.
- property Body.Properties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties for this object.
- property Body.VisibleProperties: System.Collections.Generic.IReadOnlyList[Ansys.ACT.Automation.Mechanical.Property] | None
Gets the list of properties that are visible for this object.
Method detail#
- Body.GetGeoBody() Ansys.ACT.Interfaces.Geometry.IGeoBody
Gets the Geo Body
- Body.ClearGeneratedData() System.Void
Run the ClearGeneratedData action.
- Body.AddCommandSnippet() Ansys.ACT.Automation.Mechanical.CommandSnippet
Creates a new CommandSnippet
- Body.AddPythonCodeEventBased() Ansys.ACT.Automation.Mechanical.PythonCodeEventBased
Creates a new PythonCodeEventBased
- Body.GenerateMesh() System.Void
Run the GenerateMesh action.
- Body.PreviewInflation() System.Void
Run the PreviewInflation action.
- Body.PreviewSurfaceMesh() System.Void
Run the PreviewSurfaceMesh action.
- Body.ShowBody() System.Void
Run the ShowBody action.
- Body.Update() System.Void
Run the Update action.
- Body.GetChildren(recurses: System.Boolean, children: System.Collections.Generic.IList[ChildrenType]) System.Collections.Generic.IList[ChildrenType]
Gets the list of children, filtered by type.
- Body.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.
- Body.AddComment() Ansys.ACT.Automation.Mechanical.Comment
Creates a new child Comment.
- Body.AddFigure() Ansys.ACT.Automation.Mechanical.Figure
Creates a new child Figure.
- Body.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.
- Body.Activate() System.Void
Activate the current object.
- Body.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) System.Void
Copies all visible properties from this object to another.
- Body.Duplicate() Ansys.Mechanical.DataModel.Interfaces.IDataModelObject
Creates a copy of the current DataModelObject.
- Body.GroupAllSimilarChildren() System.Void
Run the GroupAllSimilarChildren action.
- Body.GroupSimilarObjects() Ansys.ACT.Automation.Mechanical.TreeGroupingFolder
Run the GroupSimilarObjects action.
- Body.PropertyByName(name: System.String) Ansys.ACT.Automation.Mechanical.Property
Get a property by its unique name.
- Body.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.
- Body.CreateParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Creates a new parameter for a Property.
- Body.GetParameter(propName: System.String) Ansys.ACT.Interfaces.Mechanical.IParameter
Gets the parameter corresponding to the given property.
- Body.RemoveParameter(propName: System.String) System.Void
Removes the parameter from the parameter set corresponding to the given property.