Skip to main content
Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll
This class implements APIs for EHDBearing class.

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 EHDBearing.

Parameters

document GearTrainDocument The document to create the ehd bearing. baseGeometry Obj The base geometry. The type is ObjectBase. actionGeometry Obj The action geometry. The type is ObjectBase. 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

Obj The new EHDBearing object that is created by this API.

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 ObjectBase. ArgumentNullException Will be thrown if type of ‘actionGeometry’ is not ObjectBase.

CreateEHDBearing(GearTrainDocument, Obj, Obj, Vector, Vector, Vector, Vector, Vector, Vector, ExpressionValueVariable, ExpressionValueVariable, ExpressionValueVariable, string)

Create EHDBearing.

Parameters

document GearTrainDocument The document to create the ehd bearing. baseGeometry Obj The base geometry. The type is ObjectBase. actionGeometry Obj The action geometry. The type is ObjectBase. 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

Obj The new EHDBearing object that is created by this API.

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 ObjectBase. ArgumentNullException Will be thrown if type of ‘actionGeometry’ is not ObjectBase.