    

 ## 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&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### ApplyBearingForBodyToDT(GearTrainDocument, IEnumerable&lt;BearingParameters&gt;)

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)&lt;[BearingParameters](VM.API.Pre.GearTrain.BearingParameters.md)&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.

### ApplyClutchForBodyToDT(GearTrainDocument, IEnumerable&lt;ClutchParameters&gt;)

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)&lt;[ClutchParameters](VM.API.Pre.GearTrain.ClutchParameters.md)&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.

### ApplyGearSetForBodyToDT(GearTrainDocument, IEnumerable&lt;GearSetParameters&gt;)

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)&lt;[GearSetParameters](VM.API.Pre.GearTrain.GearSetParameters.md)&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.

### ApplyHousingForBodyToDT(GearTrainDocument, IEnumerable&lt;HousingParameters&gt;)

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)&lt;[HousingParameters](VM.API.Pre.GearTrain.HousingParameters.md)&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.

### ApplyShaftSetForBodyToDT(GearTrainDocument, IEnumerable&lt;ShaftSetParameters&gt;)

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)&lt;[ShaftSetParameters](VM.API.Pre.GearTrain.ShaftSetParameters.md)&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.

### AssembleItemsForBodyToDT(GearTrainDocument, IEnumerable&lt;GearSetParameters&gt;, IEnumerable&lt;BearingParameters&gt;, 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)&lt;[GearSetParameters](VM.API.Pre.GearTrain.GearSetParameters.md)&gt;

The gear sets.

`bearings` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[BearingParameters](VM.API.Pre.GearTrain.BearingParameters.md)&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.

### RemoveBodyToDTAttribute(GearTrainDocument, IEnumerable&lt;Obj&gt;)

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)&lt;Obj&gt;

The clutchs.

#### Exceptions

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

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