Class EHDBearingAPI
Last update: 09.03.2026Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll
This class implements APIs for
public static class EHDBearingAPI
Inheritance
object ← EHDBearingAPI
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Methods
CreateEHDBearing(GearTrainDocument, Obj, Obj, Vector, Vector, Vector, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, string)
Create
[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "baseGeometry", "actionGeometry" })]
[NotZeroMagnitude(new string[] { "zAxis", "xAxis" })]
[GreaterThanZero(new string[] { "baseRadius", "actionRadius", "width" })]
public static Obj CreateEHDBearing(this GearTrainDocument document, Obj baseGeometry, Obj actionGeometry, Vector position, Vector zAxis, Vector xAxis, ExpressionValueVariable baseRadius, ExpressionValueVariable actionRadius, ExpressionValueVariable width, string ehdBearingName = "")
Parameters
document GearTrainDocument
The document to create the ehd bearing.
baseGeometry Obj
The base geometry. The type is
actionGeometry Obj
The action geometry. The type is
position Vector
The position.
zAxis Vector
The z axis.
xAxis Vector
The x axis.
baseRadius ExpressionValueVariable
The base radius.
actionRadius ExpressionValueVariable
The action radius.
width ExpressionValueVariable
The width.
ehdBearingName string
The name of the ehd bearing. If empty, default name starts with 'EHDBearing_' will be generated and used.
Returns
The new
Exceptions
ArgumentNullException
Will be thrown if 'document' or 'baseGeometry' or 'actionGeometry' arguments are empty.
ArgumentException
Will be thrown if the magnitude of zAxis' or 'xAxis' is 0.
ArgumentException
Will be thrown if zAxis' is equal to 'xAxis'.
ArgumentException
Will be thrown if the 'baseRadius' is less than 'actionRadius'.
ArgumentNullException
Will be thrown if type of 'baseGeometry' is not
ArgumentNullException
Will be thrown if type of 'actionGeometry' is not
CreateEHDBearing(GearTrainDocument, Obj, Obj, Vector, Vector, Vector, Vector, Vector, Vector, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, string)
Create
[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "baseGeometry", "actionGeometry" })]
[NotZeroMagnitude(new string[] { "baseZAxis", "baseXAxis", "actionZAxis", "actionXAxis" })]
[GreaterThanZero(new string[] { "baseRadius", "actionRadius", "width" })]
public static Obj CreateEHDBearing(this GearTrainDocument document, Obj baseGeometry, Obj actionGeometry, Vector basePosition, Vector baseZAxis, Vector baseXAxis, Vector actionPosition, Vector actionZAxis, Vector actionXAxis, ExpressionValueVariable baseRadius, ExpressionValueVariable actionRadius, ExpressionValueVariable width, string ehdBearingName = "")
Parameters
document GearTrainDocument
The document to create the ehd bearing.
baseGeometry Obj
The base geometry. The type is
actionGeometry Obj
The action geometry. The type is
basePosition Vector
The base position.
baseZAxis Vector
The base z axis.
baseXAxis Vector
The base x axis.
actionPosition Vector
The action position.
actionZAxis Vector
The action z axis.
actionXAxis Vector
The action x axis.
baseRadius ExpressionValueVariable
The base radius.
actionRadius ExpressionValueVariable
The action radius.
width ExpressionValueVariable
The width.
ehdBearingName string
The name of the ehd bearing. If empty, default name starts with 'EHDBearing_' will be generated and used.
Returns
The new
Exceptions
ArgumentNullException
Will be thrown if 'document' or 'baseGeometry' or 'actionGeometry' arguments are empty.
ArgumentException
Will be thrown if the magnitude of baseZAxis' or 'baseXAxis' or 'actionZAxis' or 'actionXAxis' is 0.
ArgumentException
Will be thrown if baseZAxis' is equal to 'baseXAxis'.
ArgumentException
Will be thrown if actionZAxis' is equal to 'actionXAxis'.
ArgumentException
Will be thrown if the 'baseRadius' is less than 'actionRadius'.
ArgumentNullException
Will be thrown if type of 'baseGeometry' is not
ArgumentNullException
Will be thrown if type of 'actionGeometry' is not