    

 ## On this page

  

 

 #  Class BodyToDTAPI

 Last update: 16.07.2025 

Namespace: [VM.API.Pre.GearTrain](VM.API.Pre.GearTrain.md)  
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for drivetrain class.

```csharp
public static class BodyToDTAPI

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [BodyToDTAPI](VM.API.Pre.GearTrain.BodyToDTAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_ApplyBearingForBodyToDT_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_BearingParameters__"></a> ApplyBearingForBodyToDT(GearTrainDocument, IEnumerable)

Create .

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyBearingForBodyToDT(this GearTrainDocument document, IEnumerable<bearingparameters> bearings)

```

#### Parameters

`document` GearTrainDocument

The document to create the bearings.

`bearings` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[BearingParameters](VM.API.Pre.GearTrain.BearingParameters.md)&amp;gt;

The bearings.

#### Exceptions

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

Will be thrown if 'document' argument is empty or if the body of bearing is empty.

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_ApplyClutchForBodyToDT_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_ClutchParameters__"></a> ApplyClutchForBodyToDT(GearTrainDocument, IEnumerable)

Create .

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyClutchForBodyToDT(this GearTrainDocument document, IEnumerable<clutchparameters> clutchs)

```

#### Parameters

`document` GearTrainDocument

The document to create the clutchs.

`clutchs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[ClutchParameters](VM.API.Pre.GearTrain.ClutchParameters.md)&amp;gt;

The clutchs.

#### Exceptions

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

Will be thrown if 'document' argument is empty or if the body of clutch is empty.

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_ApplyGearSetForBodyToDT_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_GearSetParameters__"></a> ApplyGearSetForBodyToDT(GearTrainDocument, IEnumerable)

Create .

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyGearSetForBodyToDT(this GearTrainDocument document, IEnumerable<gearsetparameters> gearSets)

```

#### Parameters

`document` GearTrainDocument

The document to create the gear set.

`gearSets` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[GearSetParameters](VM.API.Pre.GearTrain.GearSetParameters.md)&amp;gt;

The gear sets.

#### Exceptions

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

Will be thrown if 'document' argument is empty or if the body of gearSet is empty.

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_ApplyHousingForBodyToDT_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_HousingParameters__"></a> ApplyHousingForBodyToDT(GearTrainDocument, IEnumerable)

Create .

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyHousingForBodyToDT(this GearTrainDocument document, IEnumerable<housingparameters> housings)

```

#### Parameters

`document` GearTrainDocument

The document to create the housings.

`housings` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[HousingParameters](VM.API.Pre.GearTrain.HousingParameters.md)&amp;gt;

The housings.

#### Exceptions

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

Will be thrown if 'document' argument is empty or if the body of housing is empty.

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_ApplyShaftSetForBodyToDT_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_ShaftSetParameters__"></a> ApplyShaftSetForBodyToDT(GearTrainDocument, IEnumerable)

Create .

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyShaftSetForBodyToDT(this GearTrainDocument document, IEnumerable<shaftsetparameters> shaftSets)

```

#### Parameters

`document` GearTrainDocument

The document to create the simple shaft set.

`shaftSets` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[ShaftSetParameters](VM.API.Pre.GearTrain.ShaftSetParameters.md)&amp;gt;

The simple shaft sets

#### Exceptions

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

Will be thrown if 'document' argument is empty or if the body of shaftset does not exist.

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

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

[ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception)

Will be thrown if 'width' value equal to or less than 0.

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_AssembleItemsForBodyToDT_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_GearSetParameters__System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_BearingParameters__System_Nullable_VM_Models_Pre_ExpressionValueVariable__"></a> AssembleItemsForBodyToDT(GearTrainDocument, IEnumerable, IEnumerable, ExpressionValueVariable?)

Assemble the items for the body to DT.

```csharp
[NotNull(new string[] { "document" })]
public static void AssembleItemsForBodyToDT(this GearTrainDocument document, IEnumerable<gearsetparameters> gearSets = null, IEnumerable<bearingparameters> bearings = null, ExpressionValueVariable? toleranceForAssembly = null)

```

#### Parameters

`document` GearTrainDocument

The document to assemble the items for the body to DT.

`gearSets` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[GearSetParameters](VM.API.Pre.GearTrain.GearSetParameters.md)&amp;gt;

The gear sets.

`bearings` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)[BearingParameters](VM.API.Pre.GearTrain.BearingParameters.md)&amp;gt;

The bearings.

`toleranceForAssembly` ExpressionValueVariable?

The tolerance for assembly.

#### Exceptions

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

Will be thrown if 'document' argument is empty or if the body of 'gearSet', 'bearing' is empty.

### <a id="VM_API_Pre_GearTrain_BodyToDTAPI_RemoveBodyToDTAttribute_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_VM_API_Pre_Obj__"></a> RemoveBodyToDTAttribute(GearTrainDocument, IEnumerable)

Remove .

```csharp
[NotNull(new string[] { "document", "clutchs" })]
public static void RemoveBodyToDTAttribute(this GearTrainDocument document, IEnumerable<obj> clutchs)

```

#### Parameters

`document` GearTrainDocument

The document to create the clutchs.

`clutchs` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)

The clutchs.

#### Exceptions

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

Will be thrown if 'document', 'clutchs' argument is empty.