> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class EHDBearingAPI

Namespace: [VM.API.Pre.GearTrain](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.GearTrain)\
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for [EHDBearing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Bearing.EHDBearing.md) class.

```csharp theme={null}
public static class EHDBearingAPI
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[EHDBearingAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.API.Pre.GearTrain.EHDBearingAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

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

Create [EHDBearing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Bearing.EHDBearing.md).

```csharp theme={null}
[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 [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

`actionGeometry` Obj

The action geometry. The type is [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

`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](https://learn.microsoft.com/dotnet/api/system.string)

The name of the ehd bearing. If empty, default name starts with 'EHDBearing\_' will be generated and used.

#### Returns

Obj

The new [EHDBearing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Bearing.EHDBearing.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' or 'baseGeometry' or 'actionGeometry' arguments are empty.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

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

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if zAxis' is equal to 'xAxis'.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the 'baseRadius' is less than 'actionRadius'.

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if type of 'baseGeometry' is not [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if type of 'actionGeometry' is not [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

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

Create [EHDBearing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Bearing.EHDBearing.md).

```csharp theme={null}
[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 [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

`actionGeometry` Obj

The action geometry. The type is [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

`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](https://learn.microsoft.com/dotnet/api/system.string)

The name of the ehd bearing. If empty, default name starts with 'EHDBearing\_' will be generated and used.

#### Returns

Obj

The new [EHDBearing](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.Bearing.EHDBearing.md) object that is created by this API.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if 'document' or 'baseGeometry' or 'actionGeometry' arguments are empty.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the magnitude of baseZAxis' or 'baseXAxis' or 'actionZAxis' or 'actionXAxis' is 0.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if baseZAxis' is equal to 'baseXAxis'.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if actionZAxis' is equal to 'actionXAxis'.

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

Will be thrown if the 'baseRadius' is less than 'actionRadius'.

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if type of 'baseGeometry' is not [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Will be thrown if type of 'actionGeometry' is not [ObjectBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.ObjectBase.md).
