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