Skip to main content

Mechanical scripting interface

Bearing

Last update: 14.01.2025

class Ansys.ACT.Automation.Mechanical.Connections.Bearing

Bases: object

Defines a Bearing.

Overview

Methods

Name Description
Activate Activate the current object.
AddCommandSnippet Creates a new CommandSnippet
AddComment Creates a new child Comment.
AddFigure Creates a new child Figure.
AddImage Creates a new child Image.
CopyTo Copies all visible properties from this object to another.
CreateParameter Creates a new parameter for a Property.
Delete Run the Delete action.
Duplicate Creates a copy of the current DataModelObject.
GetChildren Gets the list of children, filtered by type.
GetParameter Gets the parameter corresponding to the given property.
GroupAllSimilarChildren Run the GroupAllSimilarChildren action.
GroupSimilarObjects Run the GroupSimilarObjects action.
PromoteToNamedSelection Run the PromoteToNamedSelection action.
PromoteToRemotePoint Run the PromoteToRemotePoint action.
PropertyByAPIName Get a property by its API name.
PropertyByName Get a property by its unique name.
RemoveParameter Removes the parameter from the parameter set corresponding to the given property.
RenameBasedOnDefinition Run the RenameBasedOnDefinition action.

Properties

Name Description
AnsBCType Gets the AnsBCType.
Children Gets the list of children.
Comments Gets the list of associated comments.
ConnectionType Gets or sets the ConnectionType.
DampingC11 Gets the DampingC11.
DampingC12 Gets the DampingC12.
DampingC21 Gets the DampingC21.
DampingC22 Gets the DampingC22.
DataModelObjectCategory Gets the current DataModelObject’s category.
Figures Gets the list of associated figures.
Images Gets the list of associated images.
InternalObject Gets the internal object. For advanced usage only.
MobileBeamMaterial Gets or sets the MobileBeamMaterial.
MobileBeamRadius Gets or sets the MobileBeamRadius.
MobileBehavior Gets or sets the MobileBehavior.
MobileBody Gets the MobileBody.
MobileCoordinateSystem Gets or sets the MobileCoordinateSystem.
MobileLocation Gets or sets the MobileLocation.
MobilePinballSize Gets or sets the MobilePinballSize.
MobileXCoordinate Gets or sets the MobileXCoordinate.
MobileYCoordinate Gets or sets the MobileYCoordinate.
MobileZCoordinate Gets or sets the MobileZCoordinate.
Properties Gets the list of properties for this object.
ReadOnly Gets or sets the ReadOnly.
ReferenceBeamMaterial Gets or sets the ReferenceBeamMaterial.
ReferenceBeamRadius Gets or sets the ReferenceBeamRadius.
ReferenceBehavior Gets or sets the ReferenceBehavior.
ReferenceBodyName Gets the ReferenceBodyName.
ReferenceCoordinateSystem Gets or sets the ReferenceCoordinateSystem.
ReferenceLocation Gets or sets the ReferenceLocation.
ReferencePinballRegion Gets or sets the ReferencePinballRegion.
ReferenceRotationPlane Gets or sets the ReferenceRotationPlane.
ReferenceSet Gets the ReferenceSet.
ReferenceXCoordinate Gets or sets the ReferenceXCoordinate.
ReferenceYCoordinate Gets or sets the ReferenceYCoordinate.
ReferenceZCoordinate Gets or sets the ReferenceZCoordinate.
StiffnessK11 Gets the StiffnessK11.
StiffnessK12 Gets the StiffnessK12.
StiffnessK21 Gets the StiffnessK21.
StiffnessK22 Gets the StiffnessK22.
Suppressed Gets or sets the Suppressed.
VisibleProperties Gets the list of properties that are visible for this object.

Property detail

property Bearing.AnsBCType : int | None

Gets the AnsBCType.

property Bearing.Children : List[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject] | None

Gets the list of children.

property Bearing.Comments : Iterable[Ansys.ACT.Automation.Mechanical.Comment] | None

Gets the list of associated comments.

property Bearing.ConnectionType : Ansys.Mechanical.DataModel.Enums.ConnectionScopingType | None

Gets or sets the ConnectionType.

property Bearing.DampingC11 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the DampingC11.

property Bearing.DampingC12 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the DampingC12.

property Bearing.DampingC21 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the DampingC21.

property Bearing.DampingC22 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the DampingC22.

property Bearing.DataModelObjectCategory : Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory | None

Gets the current DataModelObject’s category.

property Bearing.Figures : Iterable[Ansys.ACT.Automation.Mechanical.Figure] | None

Gets the list of associated figures.

property Bearing.Images : Iterable[Ansys.ACT.Automation.Mechanical.Image] | None

Gets the list of associated images.

property Bearing.InternalObject : Ansys.Common.Interop.DSObjectsAuto.IDSBearingAuto | None

Gets the internal object. For advanced usage only.

property Bearing.MobileBeamMaterial : str | None

Gets or sets the MobileBeamMaterial.

property Bearing.MobileBeamRadius : Ansys.Core.Units.Quantity | None

Gets or sets the MobileBeamRadius.

property Bearing.MobileBehavior : Ansys.Mechanical.DataModel.Enums.LoadBehavior | None

Gets or sets the MobileBehavior.

property Bearing.MobileBody : str | None

Gets the MobileBody.

property Bearing.MobileCoordinateSystem : Ansys.ACT.Automation.Mechanical.CoordinateSystem | None

Gets or sets the MobileCoordinateSystem.

property Bearing.MobileLocation : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the MobileLocation.

property Bearing.MobilePinballSize : Ansys.Core.Units.Quantity | None

Gets or sets the MobilePinballSize.

property Bearing.MobileXCoordinate : Ansys.Core.Units.Quantity | None

Gets or sets the MobileXCoordinate.

property Bearing.MobileYCoordinate : Ansys.Core.Units.Quantity | None

Gets or sets the MobileYCoordinate.

property Bearing.MobileZCoordinate : Ansys.Core.Units.Quantity | None

Gets or sets the MobileZCoordinate.

property Bearing.Properties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties for this object.

property Bearing.ReadOnly : bool | None

Gets or sets the ReadOnly.

property Bearing.ReferenceBeamMaterial : str | None

Gets or sets the ReferenceBeamMaterial.

property Bearing.ReferenceBeamRadius : Ansys.Core.Units.Quantity | None

Gets or sets the ReferenceBeamRadius.

property Bearing.ReferenceBehavior : Ansys.Mechanical.DataModel.Enums.LoadBehavior | None

Gets or sets the ReferenceBehavior.

property Bearing.ReferenceBodyName : str | None

Gets the ReferenceBodyName.

property Bearing.ReferenceCoordinateSystem : Ansys.ACT.Automation.Mechanical.CoordinateSystem | None

Gets or sets the ReferenceCoordinateSystem.

property Bearing.ReferenceLocation : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets or sets the ReferenceLocation.

property Bearing.ReferencePinballRegion : Ansys.Core.Units.Quantity | None

Gets or sets the ReferencePinballRegion.

property Bearing.ReferenceRotationPlane : Ansys.Mechanical.DataModel.Enums.RotationPlane | None

Gets or sets the ReferenceRotationPlane.

property Bearing.ReferenceSet : Ansys.ACT.Interfaces.Common.ISelectionInfo | None

Gets the ReferenceSet.

property Bearing.ReferenceXCoordinate : Ansys.Core.Units.Quantity | None

Gets or sets the ReferenceXCoordinate.

property Bearing.ReferenceYCoordinate : Ansys.Core.Units.Quantity | None

Gets or sets the ReferenceYCoordinate.

property Bearing.ReferenceZCoordinate : Ansys.Core.Units.Quantity | None

Gets or sets the ReferenceZCoordinate.

property Bearing.StiffnessK11 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the StiffnessK11.

property Bearing.StiffnessK12 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the StiffnessK12.

property Bearing.StiffnessK21 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the StiffnessK21.

property Bearing.StiffnessK22 : Ansys.ACT.Mechanical.Fields.Field | None

Gets the StiffnessK22.

property Bearing.Suppressed : bool | None

Gets or sets the Suppressed.

property Bearing.VisibleProperties : tuple[Ansys.ACT.Automation.Mechanical.Property] | None

Gets the list of properties that are visible for this object.

Method detail

Bearing.Activate()

Activate the current object.

Bearing.AddCommandSnippet()

Creates a new CommandSnippet

Bearing.AddComment()

Creates a new child Comment.

Bearing.AddFigure()

Creates a new child Figure.

Bearing.AddImage(filePath: str)

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.

Bearing.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject)

Copies all visible properties from this object to another.

Bearing.CreateParameter(propName: str)

Creates a new parameter for a Property.

Bearing.Delete()

Run the Delete action.

Bearing.Duplicate()

Creates a copy of the current DataModelObject.

Bearing.GetChildren(recurses: bool, children: List[ChildrenType])

Gets the list of children, filtered by type.

Bearing.GetParameter(propName: str)

Gets the parameter corresponding to the given property.

Bearing.GroupAllSimilarChildren()

Run the GroupAllSimilarChildren action.

Bearing.GroupSimilarObjects()

Run the GroupSimilarObjects action.

Bearing.PromoteToNamedSelection()

Run the PromoteToNamedSelection action.

Bearing.PromoteToRemotePoint()

Run the PromoteToRemotePoint action.

Bearing.PropertyByAPIName(name: str)

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.

Bearing.PropertyByName(name: str)

Get a property by its unique name.

Bearing.RemoveParameter(propName: str)

Removes the parameter from the parameter set corresponding to the given property.

Bearing.RenameBasedOnDefinition()

Run the RenameBasedOnDefinition action.