> ## 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 BodyToDTAPI

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

This class implements APIs for drivetrain class.

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

#### Inheritance

object ←
[BodyToDTAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.BodyToDTAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### ApplyBearingForBodyToDT(GearTrainDocument, IEnumerable\<BearingParameters>)

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

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

The bearings.

#### Exceptions

ArgumentNullException

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

### ApplyClutchForBodyToDT(GearTrainDocument, IEnumerable\<ClutchParameters>)

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

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

The clutchs.

#### Exceptions

ArgumentNullException

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

### ApplyGearSetForBodyToDT(GearTrainDocument, IEnumerable\<GearSetParameters>)

Create GearSet.

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

The gear sets.

#### Exceptions

ArgumentNullException

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

### ApplyHousingForBodyToDT(GearTrainDocument, IEnumerable\<HousingParameters>)

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

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

The housings.

#### Exceptions

ArgumentNullException

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

### ApplyShaftSetForBodyToDT(GearTrainDocument, IEnumerable\<ShaftSetParameters>)

Create ShaftSet.

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

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.

### AssembleItemsForBodyToDT(GearTrainDocument, IEnumerable\<GearSetParameters>, IEnumerable\<BearingParameters>, ExpressionValueVariable?)

Assemble the items for the body to DT.

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

The gear sets.

`bearings` IEnumerable\<[BearingParameters](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.BearingParameters.md)>

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.

### RemoveBodyToDTAttribute(GearTrainDocument, IEnumerable\<Obj>)

Remove [AttributeBodyToDTClutch](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.AttributeBodyToDTClutch.md).

```csharp theme={null}
[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\<[Obj](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/API/VM.API.Pre/Models/Obj.cs)>

The clutchs.

#### Exceptions

ArgumentNullException

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