Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class BearingAPI

Last update: 16.07.2025

Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for class.

public static class BearingAPI

Inheritance

objectBearingAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Methods

ApplyRollingBearing(HiddenBearingDocument)

Apply bearing in bearing designer.

[NotNull(new string[] { "document" })]
public static void ApplyRollingBearing(this HiddenBearingDocument document)

Parameters

document HiddenBearingDocument

The for bearing apply. If null, the active document will be used.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'bearing' arguments are empty.

ApplySlidingBearing(HiddenSlidingBearingDocument)

Apply sliding bearing in sliding bearing designer.

[NotNull(new string[] { "document" })]
public static void ApplySlidingBearing(this HiddenSlidingBearingDocument document)

Parameters

document HiddenSlidingBearingDocument

The for sliding bearing apply. If null, the active document will be used.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingBearing' arguments are empty.

CreateBearingForAngularContactBall(GearTrainDocument, string, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, int, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, Color?, Color?)

Create for angular contact ball.

[NotNull(new string[] { "document" })]
public static Obj CreateBearingForAngularContactBall(this GearTrainDocument document, string bearingName = "", ExpressionValueVariable? outerDiameterOfOuterRaceway = null, ExpressionValueVariable? innerDiameterOfOuterRaceway = null, ExpressionValueVariable? outerDiameterOfInnerRaceway = null, ExpressionValueVariable? innerDiameterOfInnerRaceway = null, ExpressionValueVariable? ballDiameter = null, ExpressionValueVariable? width = null, int numberOfBall = 11, ExpressionValueVariable? curvatureCenterOuter = null, ExpressionValueVariable? curvatureCenterInner = null, ExpressionValueVariable? roundingRadius = null, ExpressionValueVariable? outerRacewayShoulderBore2 = null, ExpressionValueVariable? innerRacewayShoulderDiameter2 = null, ExpressionValueVariable? actionPoint = null, ExpressionValueVariable? ballPitchDiameter = null, ExpressionValueVariable? ballCr = null, ExpressionValueVariable? ballC0r = null, ExpressionValueVariable? ballF0 = null, Color? outerRacewayColor = null, Color? innerRacewayColor = null)

Parameters

document GearTrainDocument

The document to create the bearing.

bearingName string

The name of the bearing. If empty, default name starts with 'Rolling_' will be generated and used.

outerDiameterOfOuterRaceway ExpressionValueVariable?

The outer diameter of outer raceway. The default value is 47.

innerDiameterOfOuterRaceway ExpressionValueVariable?

The inner diameter of outer raceway. The default value is 36.5.

outerDiameterOfInnerRaceway ExpressionValueVariable?

The outer diameter of inner raceway. The default value is 30.8.

innerDiameterOfInnerRaceway ExpressionValueVariable?

The inner diameter of inner raceway. The default value is 20.

ballDiameter ExpressionValueVariable?

The ball diameter. The default value is 7.938.

width ExpressionValueVariable?

The width. The default value is 14.

numberOfBall int

The number of ball. The default value is 11.

curvatureCenterOuter ExpressionValueVariable?

The curvature center of outer. The default value is 16.825.

curvatureCenterInner ExpressionValueVariable?

The curvature center of inner. The default value is 16.825.

roundingRadius ExpressionValueVariable?

The rounding radius. The default value is 1.

outerRacewayShoulderBore2 ExpressionValueVariable?

The second shoulder bore of outer raceway. The default value is 41.7.

innerRacewayShoulderDiameter2 ExpressionValueVariable?

The second shoulder diameter of outer raceway. The default value is 25.9.

actionPoint ExpressionValueVariable?

The action point. The default value is 21.

ballPitchDiameter ExpressionValueVariable?

The ball pitch diameter. The default value is 33.65.

ballCr ExpressionValueVariable?

The Cr. The default value is 14300.

ballC0r ExpressionValueVariable?

The C0r. The default value is 8150.

ballF0 ExpressionValueVariable?

The f0. The default value is 15.

outerRacewayColor Color?

The color of the outer raceway.

innerRacewayColor Color?

The color of the inner raceway.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

CreateBearingForCylindricalRoller(GearTrainDocument, string, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, int, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, Color?, Color?)

Create for cylindrical roller.

[NotNull(new string[] { "document" })]
public static Obj CreateBearingForCylindricalRoller(this GearTrainDocument document, string bearingName = "", ExpressionValueVariable? outerDiameterOfOuterRaceway = null, ExpressionValueVariable? innerDiameterOfOuterRaceway = null, ExpressionValueVariable? outerDiameterOfInnerRaceway = null, ExpressionValueVariable? innerDiameterOfInnerRaceway = null, ExpressionValueVariable? ballDiameter = null, ExpressionValueVariable? width = null, int numberOfBall = 13, ExpressionValueVariable? roundingRadius = null, ExpressionValueVariable? rollerLen = null, ExpressionValueVariable? rollerPDia = null, ExpressionValueVariable? rollerCr = null, ExpressionValueVariable? rollerC0r = null, Color? outerRacewayColor = null, Color? innerRacewayColor = null)

Parameters

document GearTrainDocument

The document to create the bearing.

bearingName string

The name of the bearing. If empty, default name starts with 'Rolling_' will be generated and used.

outerDiameterOfOuterRaceway ExpressionValueVariable?

The outer diameter of outer raceway. The default value is 47.

innerDiameterOfOuterRaceway ExpressionValueVariable?

The inner diameter of outer raceway. The default value is 36.5.

outerDiameterOfInnerRaceway ExpressionValueVariable?

The outer diameter of inner raceway. The default value is 30.8.

innerDiameterOfInnerRaceway ExpressionValueVariable?

The inner diameter of inner raceway. The default value is 20.

ballDiameter ExpressionValueVariable?

The ball diameter. The default value is 15.

width ExpressionValueVariable?

The width. The default value is 25.

numberOfBall int

The number of ball. The default value is 13.

roundingRadius ExpressionValueVariable?

The rounding radius. The default value is 1.5.

rollerLen ExpressionValueVariable?

The roller length. The default value is 16.

rollerPDia ExpressionValueVariable?

The roller pitch diameter. The default value is 73.5.

rollerCr ExpressionValueVariable?

The Cr. The default value is 112000.

rollerC0r ExpressionValueVariable?

The C0r. The default value is 100000.

outerRacewayColor Color?

The color of the outer raceway.

innerRacewayColor Color?

The color of the inner raceway.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

CreateBearingForRadialBall(GearTrainDocument, string, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, int, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, Color?, Color?)

Create for radial ball.

[NotNull(new string[] { "document" })]
public static Obj CreateBearingForRadialBall(this GearTrainDocument document, string bearingName = "", ExpressionValueVariable? outerDiameterOfOuterRaceway = null, ExpressionValueVariable? innerDiameterOfOuterRaceway = null, ExpressionValueVariable? outerDiameterOfInnerRaceway = null, ExpressionValueVariable? innerDiameterOfInnerRaceway = null, ExpressionValueVariable? ballDiameter = null, ExpressionValueVariable? width = null, int numberOfBall = 13, ExpressionValueVariable? curvatureCenterOuter = null, ExpressionValueVariable? curvatureCenterInner = null, ExpressionValueVariable? roundingRadius = null, ExpressionValueVariable? ballPitchDiameter = null, ExpressionValueVariable? ballCr = null, ExpressionValueVariable? ballC0r = null, ExpressionValueVariable? ballF0 = null, Color? outerRacewayColor = null, Color? innerRacewayColor = null)

Parameters

document GearTrainDocument

The document to create the bearing.

bearingName string

The name of the bearing. If empty, default name starts with 'Rolling_' will be generated and used.

outerDiameterOfOuterRaceway ExpressionValueVariable?

The outer diameter of outer raceway. The default value is 32.

innerDiameterOfOuterRaceway ExpressionValueVariable?

The inner diameter of outer raceway. The default value is 28.3.

outerDiameterOfInnerRaceway ExpressionValueVariable?

The outer diameter of inner raceway. The default value is 23.8.

innerDiameterOfInnerRaceway ExpressionValueVariable?

The inner diameter of inner raceway. The default value is 20.

ballDiameter ExpressionValueVariable?

The ball diameter. The default value is 3.5.

width ExpressionValueVariable?

The width. The default value is 7.

numberOfBall int

The number of ball. The default value is 13.

curvatureCenterOuter ExpressionValueVariable?

The curvature center of outer. The default value is 13.025.

curvatureCenterInner ExpressionValueVariable?

The curvature center of inner. The default value is 13.025.

roundingRadius ExpressionValueVariable?

The rounding radius. The default value is 0.3.

ballPitchDiameter ExpressionValueVariable?

The ball pitch diameter. The default value is 26.5.

ballCr ExpressionValueVariable?

The Cr. The default value is 4030.

ballC0r ExpressionValueVariable?

The C0r. The default value is 2320.

ballF0 ExpressionValueVariable?

The f0. The default value is 15.

outerRacewayColor Color?

The color of the outer raceway.

innerRacewayColor Color?

The color of the inner raceway.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

CreateBearingForTaperedRoller(GearTrainDocument, string, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, int, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, Color?, Color?)

Create for tapered roller.

[NotNull(new string[] { "document" })]
public static Obj CreateBearingForTaperedRoller(this GearTrainDocument document, string bearingName = "", ExpressionValueVariable? outerDiameterOfOuterRaceway = null, ExpressionValueVariable? outerDiameterOfInnerRaceway = null, ExpressionValueVariable? innerDiameterOfInnerRaceway = null, ExpressionValueVariable? ballDiameter = null, ExpressionValueVariable? width = null, ExpressionValueVariable? coneW = null, ExpressionValueVariable? cupW = null, int numberOfBall = 15, ExpressionValueVariable? roundingRadius1 = null, ExpressionValueVariable? roundingRadius2 = null, ExpressionValueVariable? actionPoint = null, ExpressionValueVariable? rollerAlpha = null, ExpressionValueVariable? rollerCP = null, ExpressionValueVariable? rollerPR = null, ExpressionValueVariable? rollerLen = null, ExpressionValueVariable? rollerBeta = null, ExpressionValueVariable? rollerCr = null, ExpressionValueVariable? rollerC0r = null, ExpressionValueVariable? rollerE = null, ExpressionValueVariable? rollerY = null, Color? outerRacewayColor = null, Color? innerRacewayColor = null)

Parameters

document GearTrainDocument

The document to create the bearing.

bearingName string

The name of the bearing. If empty, default name starts with 'Rolling_' will be generated and used.

outerDiameterOfOuterRaceway ExpressionValueVariable?

The outer diameter of outer raceway. The default value is 47.

outerDiameterOfInnerRaceway ExpressionValueVariable?

The outer diameter of inner raceway. The default value is 33.7.

innerDiameterOfInnerRaceway ExpressionValueVariable?

The inner diameter of inner raceway. The default value is 20.

ballDiameter ExpressionValueVariable?

The ball diameter. The default value is 6.65.

width ExpressionValueVariable?

The width. The default value is 15.25.

coneW ExpressionValueVariable?

The width of cone. The default value is 14.

cupW ExpressionValueVariable?

The width of cup. The default value is 12.

numberOfBall int

The number of ball. The default value is 15.

roundingRadius1 ExpressionValueVariable?

The first rounding radius. The default value is 1.

roundingRadius2 ExpressionValueVariable?

The second rounding radius. The default value is 1.

actionPoint ExpressionValueVariable?

The action point. The default value is 11.

rollerAlpha ExpressionValueVariable?

The roller contact angle. The default value is 15.49851.

rollerCP ExpressionValueVariable?

The roller center point. The default value is 7.09849.

rollerPR ExpressionValueVariable?

The roller pitch radius. The default value is 33.7986.

rollerLen ExpressionValueVariable?

The roller length. The default value is 10.

rollerBeta ExpressionValueVariable?

The tapered angle. The default value is 4.99702.

rollerCr ExpressionValueVariable?

The Cr. The default value is 0.27500.

rollerC0r ExpressionValueVariable?

The C0r. The default value is 28000.

rollerE ExpressionValueVariable?

The e. The default value is 35.

rollerY ExpressionValueVariable?

The Y. The default value is 17.

outerRacewayColor Color?

The color of the outer raceway.

innerRacewayColor Color?

The color of the inner raceway.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

CreateSlidingBearing(GearTrainDocument, string, enSlidingBearingType, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, Color?)

Create .

[NotNull(new string[] { "document" })]
public static Obj CreateSlidingBearing(this GearTrainDocument document, string bearingName = "", enSlidingBearingType type = enSlidingBearingType.CIRCULAR, ExpressionValueVariable? arcAngle = null, ExpressionValueVariable? length = null, ExpressionValueVariable? thickness = null, ExpressionValueVariable? innerRadius = null, Color? color = null)

Parameters

document GearTrainDocument

The document to create the sliding bearing.

bearingName string

The name of the sliding bearing. If empty, default name starts with 'Sliding_' will be generated and used.

type enSlidingBearingType

The sliding bearing type. The default value is CIRCULAR.

arcAngle ExpressionValueVariable?

The arc angle. The default value is 80.

length ExpressionValueVariable?

The outer diameter of inner raceway. The default value is 10.

thickness ExpressionValueVariable?

The inner diameter of inner raceway. The default value is 5.

innerRadius ExpressionValueVariable?

The ball diameter. The default value is 30.

color Color?

The color.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

CreateSlidingBearing(GearTrainDocument, Obj, string, Color?)

Create .

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "slidingBearingCopy" })]
public static Obj CreateSlidingBearing(this GearTrainDocument document, Obj slidingBearingCopy, string bearingName = "", Color? color = null)

Parameters

document GearTrainDocument

The document to create the sliding bearing.

slidingBearingCopy Obj

The sliding bearing to be copied. The type is

bearingName string

The name of the sliding bearing. If empty, default name starts with 'Sliding_' will be generated and used.

color Color?

The color.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingBearingCopy' arguments are empty.

ArgumentNullException

Will be thrown if type of 'slidingBearingCopy' is not .

CreateStiffnessBearing(GearTrainDocument, string, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, IEnumerable, int, ExpressionValueVariable?, ExpressionValueVariable?, ExpressionValueVariable?, Color?, Color?)

Create StiffnessBearing .

[NotNull(new string[] { "document" })]
public static Obj CreateStiffnessBearing(this GearTrainDocument document, string bearingName = "", ExpressionValueVariable? dampingRatio = null, ExpressionValueVariable? outerDiameterOfOuterRaceway = null, ExpressionValueVariable? innerDiameterOfOuterRaceway = null, ExpressionValueVariable? outerDiameterOfInnerRaceway = null, ExpressionValueVariable? innerDiameterOfInnerRaceway = null, ExpressionValueVariable? ballDiameter = null, ExpressionValueVariable? width = null, IEnumerable<double> stiffness = null, int numberOfBall = 14, ExpressionValueVariable? unloadedContactAngle = null, ExpressionValueVariable? curvatureCenterOuter = null, ExpressionValueVariable? curvatureCenterInner = null, Color? outerRacewayColor = null, Color? innerRacewayColor = null)

Parameters

document GearTrainDocument

The document to create the stiffness bearing.

bearingName string

The name of the stiffness bearing. If empty, default name starts with 'Stiffness_' will be generated and used.

dampingRatio ExpressionValueVariable?

The damping ratio. The default value is 0.00001.

outerDiameterOfOuterRaceway ExpressionValueVariable?

The outer diameter of outer raceway. The default value is 40.

innerDiameterOfOuterRaceway ExpressionValueVariable?

The inner diameter of outer raceway. The default value is 35.

outerDiameterOfInnerRaceway ExpressionValueVariable?

The outer diameter of inner raceway. The default value is 29.

innerDiameterOfInnerRaceway ExpressionValueVariable?

The inner diameter of inner raceway. The default value is 25.

ballDiameter ExpressionValueVariable?

The ball diameter. The default value is 4.

width ExpressionValueVariable?

The width. The default value is 12.

stiffness IEnumerabledouble&gt;

The stiffness. If it is not given, default values will be used.

numberOfBall int

The number of ball. The default value is 14.

unloadedContactAngle ExpressionValueVariable?

The unloaded contact angle. The default value is 0.

curvatureCenterOuter ExpressionValueVariable?

The curvature center of outer. The default value is 16.

curvatureCenterInner ExpressionValueVariable?

The curvature center of inner. The default value is 16.

outerRacewayColor Color?

The color of the outer raceway.

innerRacewayColor Color?

The color of the inner raceway.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

ArgumentException

Will be thrown if 'stiffness' argument is not null and the length of 'stiffness' is not 25.

CreateStiffnessBearing(GearTrainDocument, Obj, string, Color?, Color?)

Create StiffnessBearing .

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "bearingStiffnessCopy" })]
public static Obj CreateStiffnessBearing(this GearTrainDocument document, Obj bearingStiffnessCopy, string bearingName = "", Color? outerRacewayColor = null, Color? innerRacewayColor = null)

Parameters

document GearTrainDocument

The document to create the stiffness bearing.

bearingStiffnessCopy Obj

The stiffness bearing to be copied. The type is

bearingName string

The name of the stiffness bearing. If empty, default name starts with 'Stiffness_' will be generated and used.

outerRacewayColor Color?

The color of the outer raceway.

innerRacewayColor Color?

The color of the inner raceway.

Returns

Obj

The new object that is created by this API.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'bearingStiffnessCopy' arguments are empty.

ArgumentNullException

Will be thrown if type of 'bearingStiffnessCopy' is not .

UpdateBearing(HiddenBearingDocument)

Update bearing in bearing designer.

[NotNull(new string[] { "document" })]
public static void UpdateBearing(this HiddenBearingDocument document)

Parameters

document HiddenBearingDocument

The for bearing update. If null, the active document will be used.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

UpdateBearingInEF(HiddenDocumentMeshBase, string, string, Vector)

Update bearing in EF shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "racewayName", "rbeName" })]
[NotZeroMagnitude(new string[] { "zAxis" })]
public static void UpdateBearingInEF(this HiddenDocumentMeshBase document, string racewayName, string rbeName, Vector zAxis)

Parameters

document HiddenDocumentMeshBase

The for bearing update. If null, the active document will be used.

racewayName string

The raceway name to be attached on rbe.

rbeName string

The rbe name.

zAxis Vector

The z axis.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'racewayName' or 'rbeName' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateBearingInEF(HiddenDocumentMeshBase, Obj, RacewayType, Obj, Vector)

Update bearing in EF shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "bearing", "rbe" })]
[NotZeroMagnitude(new string[] { "zAxis" })]
public static void UpdateBearingInEF(this HiddenDocumentMeshBase document, Obj bearing, RacewayGeometryInfo.RacewayType racewayType, Obj rbe, Vector zAxis)

Parameters

document HiddenDocumentMeshBase

The for bearing update. If null, the active document will be used.

bearing Obj

The bearing.

racewayType RacewayGeometryInfo.RacewayType

The bearing raceway type.

rbe Obj

The rbe.

zAxis Vector

The z axis.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'racewayName' or 'rbe' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateBearingInFE(HiddenDocumentMeshBase, string, string, Vector)

Update bearing in FE shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "racewayName", "rbeName" })]
[NotZeroMagnitude(new string[] { "zAxis" })]
public static void UpdateBearingInFE(this HiddenDocumentMeshBase document, string racewayName, string rbeName, Vector zAxis)

Parameters

document HiddenDocumentMeshBase

The for bearing update. If null, the active document will be used.

racewayName string

The raceway name to be attached on rbe.

rbeName string

The rbe name.

zAxis Vector

The z axis.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'racewayName' or 'rbeName' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateBearingInFE(HiddenDocumentMeshBase, Obj, RacewayType, Obj, Vector)

Update bearing in FE shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "bearing", "rbe" })]
[NotZeroMagnitude(new string[] { "zAxis" })]
public static void UpdateBearingInFE(this HiddenDocumentMeshBase document, Obj bearing, RacewayGeometryInfo.RacewayType racewayType, Obj rbe, Vector zAxis)

Parameters

document HiddenDocumentMeshBase

The for bearing update. If null, the active document will be used.

bearing Obj

The bearing.

racewayType RacewayGeometryInfo.RacewayType

The bearing raceway type.

rbe Obj

The rbe.

zAxis Vector

The z axis.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'racewayName' or 'rbe' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateBearingInShaftSet(HiddenShaftSetDocument, string, ExpressionValueVariable, AttachLocationType, DirectionType, ClearanceParameters?)

Update bearing in simple shaftset designer.

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "racewayName" })]
public static void UpdateBearingInShaftSet(this HiddenShaftSetDocument document, string racewayName, ExpressionValueVariable referenceOffset, AttachLocationType attachLocationType, DirectionType directionType, ClearanceParameters? clearanceParameters = null)

Parameters

document HiddenShaftSetDocument

The for bearing update. If null, the active document will be used.

racewayName string

The raceway name to be attached on rbe.

referenceOffset ExpressionValueVariable

The reference offset.

attachLocationType AttachLocationType

The attach location type.

directionType DirectionType

The direction type.

clearanceParameters ClearanceParameters?

The clearance parameter. If it is not given, default values will be used.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'racewayName' or 'clearanceInfo' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateBearingInShaftSet(HiddenShaftSetDocument, Obj?, RacewayType, ExpressionValueVariable, AttachLocationType, DirectionType, ClearanceParameters?)

Update bearing in simple shaftset designer.

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "bearing" })]
public static void UpdateBearingInShaftSet(this HiddenShaftSetDocument document, Obj? bearing, RacewayGeometryInfo.RacewayType racewayType, ExpressionValueVariable referenceOffset, AttachLocationType attachLocationType, DirectionType directionType, ClearanceParameters? clearanceParameters = null)

Parameters

document HiddenShaftSetDocument

The for bearing update. If null, the active document will be used.

bearing Obj?

The bearing.

racewayType RacewayGeometryInfo.RacewayType

The bearing raceway type.

referenceOffset ExpressionValueVariable

The reference offset.

attachLocationType AttachLocationType

The attach location type.

directionType DirectionType

The direction type.

clearanceParameters ClearanceParameters?

The clearance parameter. If it is not given, default values will be used.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'racewayName' or 'clearanceInfo' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateSlidingBearing(HiddenSlidingBearingDocument)

Update sliding bearing in sliding bearing designer.

[NotNull(new string[] { "document" })]
public static void UpdateSlidingBearing(this HiddenSlidingBearingDocument document)

Parameters

document HiddenSlidingBearingDocument

The for sliding bearing update. If null, the active document will be used.

Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

UpdateSlidingBearingInEF(HiddenDocumentMeshBase, string, string)

Update sliding bearing in EF shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "slidingName", "rbeName" })]
public static void UpdateSlidingBearingInEF(this HiddenDocumentMeshBase document, string slidingName, string rbeName)

Parameters

document HiddenDocumentMeshBase

The for sliding bearing update. If null, the active document will be used.

slidingName string

The sliding name to be attached on rbe.

rbeName string

The rbe name.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingName' or 'rbeName' arguments are empty.

UpdateSlidingBearingInEF(HiddenDocumentMeshBase, Obj, string)

Update sliding bearing in EF shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "slidingBearing" })]
[NotNullOrEmpty(new string[] { "rbeName" })]
public static void UpdateSlidingBearingInEF(this HiddenDocumentMeshBase document, Obj slidingBearing, string rbeName)

Parameters

document HiddenDocumentMeshBase

The for sliding bearing update. If null, the active document will be used.

slidingBearing Obj

The sliding bearing to be attached on rbe.

rbeName string

The rbe name.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingName' or 'rbeName' arguments are empty.

UpdateSlidingBearingInFE(HiddenDocumentMeshBase, string, string)

Update sliding bearing in FE shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "slidingName", "rbeName" })]
public static void UpdateSlidingBearingInFE(this HiddenDocumentMeshBase document, string slidingName, string rbeName)

Parameters

document HiddenDocumentMeshBase

The for sliding bearing update. If null, the active document will be used.

slidingName string

The sliding name to be attached on rbe.

rbeName string

The rbe name.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingName' or 'rbeName' arguments are empty.

UpdateSlidingBearingInFE(HiddenDocumentMeshBase, Obj, string)

Update sliding bearing in FE shaftset/housing designer.

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "slidingBearing" })]
public static void UpdateSlidingBearingInFE(this HiddenDocumentMeshBase document, Obj slidingBearing, string rbeName)

Parameters

document HiddenDocumentMeshBase

The for sliding bearing update. If null, the active document will be used.

slidingBearing Obj

The sliding bearing to be attached on rbe.

rbeName string

The rbe name.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingName' or 'rbeName' arguments are empty.

UpdateSlidingBearingInShaftSet(HiddenShaftSetDocument, string, ExpressionValueVariable, AttachLocationType, ExpressionValueVariable)

Update sliding bearing in simple shaftset designer.

[NotNull(new string[] { "document" })]
[NotNullOrEmpty(new string[] { "slidingName" })]
public static void UpdateSlidingBearingInShaftSet(this HiddenShaftSetDocument document, string slidingName, ExpressionValueVariable referenceOffset, AttachLocationType attachLocationType, ExpressionValueVariable startAngle)

Parameters

document HiddenShaftSetDocument

The for sliding bearing update. If null, the active document will be used.

slidingName string

The sliding name to be attached on rbe.

referenceOffset ExpressionValueVariable

The reference offset.

attachLocationType AttachLocationType

The attach location type.

startAngle ExpressionValueVariable

The start angle.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingName' or 'clearanceInfo' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

UpdateSlidingBearingInShaftSet(HiddenShaftSetDocument, Obj, ExpressionValueVariable, AttachLocationType, ExpressionValueVariable)

Update sliding bearing in simple shaftset designer.

[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "slidingBearing" })]
public static void UpdateSlidingBearingInShaftSet(this HiddenShaftSetDocument document, Obj slidingBearing, ExpressionValueVariable referenceOffset, AttachLocationType attachLocationType, ExpressionValueVariable startAngle)

Parameters

document HiddenShaftSetDocument

The for sliding bearing update. If null, the active document will be used.

slidingBearing Obj

The sliding bearing to be attached on rbe.

referenceOffset ExpressionValueVariable

The reference offset.

attachLocationType AttachLocationType

The attach location type.

startAngle ExpressionValueVariable

The start angle.

Exceptions

ArgumentNullException

Will be thrown if 'document' or 'slidingName' or 'clearanceInfo' arguments are empty.

ArgumentException

Will be thrown if the magnitude of 'zAxis' is 0.

Connect with Ansys