    

 ## On this page

  

 

 # Class BodyToDTAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_GearTrain_BodyToDTAPI"></a>

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 ← [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

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

Create .

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

```

#### Parameters

`document` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

The document to create the bearings.

`bearings` IEnumerable&lt;[BearingParameters](VM.API.Pre.GearTrain.BearingParameters.md)&gt;

The bearings.

#### Exceptions

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

Create .

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

```

#### Parameters

`document` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

The document to create the clutchs.

`clutchs` IEnumerable&lt;[ClutchParameters](VM.API.Pre.GearTrain.ClutchParameters.md)&gt;

The clutchs.

#### Exceptions

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

Create .

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

```

#### Parameters

`document` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

The document to create the gear set.

`gearSets` IEnumerable&lt;[GearSetParameters](VM.API.Pre.GearTrain.GearSetParameters.md)&gt;

The gear sets.

#### Exceptions

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

Create .

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

```

#### Parameters

`document` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

The document to create the housings.

`housings` IEnumerable&lt;[HousingParameters](VM.API.Pre.GearTrain.HousingParameters.md)&gt;

The housings.

#### Exceptions

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

Create .

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

```

#### Parameters

`document` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

The document to create the simple shaft set.

`shaftSets` IEnumerable&lt;[ShaftSetParameters](VM.API.Pre.GearTrain.ShaftSetParameters.md)&gt;

The simple shaft sets

#### Exceptions

ArgumentNullException

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

ArgumentException

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

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&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](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

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

`gearSets` IEnumerable&lt;[GearSetParameters](VM.API.Pre.GearTrain.GearSetParameters.md)&gt;

The gear sets.

`bearings` IEnumerable&lt;[BearingParameters](VM.API.Pre.GearTrain.BearingParameters.md)&gt;

The bearings.

`toleranceForAssembly` [ExpressionValueVariable](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/Pre/Data/VM.Models.Pre/Models/ExpressionValueVariable.cs)?

The tolerance for assembly.

#### Exceptions

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

Remove .

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

```

#### Parameters

`document` [GearTrainDocument](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/Data/VMDGearTrain/GearTrainDocument.cs)

The document to create the clutchs.

`clutchs` IEnumerable&lt;[Obj](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/API/VM.API.Pre/Models/Obj.cs)&gt;

The clutchs.

#### Exceptions

ArgumentNullException

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