Skip to main content

Motion Standalone Preprocessor C# library 2025 R1

Class BodyToDTAPI

Last update: 16.07.2025

Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for drivetrain class.

public static class BodyToDTAPI

Inheritance

objectBodyToDTAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Methods

ApplyBearingForBodyToDT(GearTrainDocument, IEnumerable)

Create .

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

Parameters

document GearTrainDocument

The document to create the bearings.

bearings IEnumerableBearingParameters&gt;

The bearings.

Exceptions

ArgumentNullException

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

ApplyClutchForBodyToDT(GearTrainDocument, IEnumerable)

Create .

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

Parameters

document GearTrainDocument

The document to create the clutchs.

clutchs IEnumerableClutchParameters&gt;

The clutchs.

Exceptions

ArgumentNullException

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

ApplyGearSetForBodyToDT(GearTrainDocument, IEnumerable)

Create .

[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 IEnumerableGearSetParameters&gt;

The gear sets.

Exceptions

ArgumentNullException

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

ApplyHousingForBodyToDT(GearTrainDocument, IEnumerable)

Create .

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

Parameters

document GearTrainDocument

The document to create the housings.

housings IEnumerableHousingParameters&gt;

The housings.

Exceptions

ArgumentNullException

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

ApplyShaftSetForBodyToDT(GearTrainDocument, IEnumerable)

Create .

[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 IEnumerableShaftSetParameters&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.

AssembleItemsForBodyToDT(GearTrainDocument, IEnumerable, IEnumerable, ExpressionValueVariable?)

Assemble the items for the body to DT.

[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 IEnumerableGearSetParameters&gt;

The gear sets.

bearings IEnumerableBearingParameters&gt;

The bearings.

toleranceForAssembly ExpressionValueVariable?

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)

Remove .

[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

The clutchs.

Exceptions

ArgumentNullException

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

Connect with Ansys