Class BodyToDTAPI
Last update: 16.07.2025Namespace: VM.API.Pre.GearTrain
Assembly: VM.API.Pre.GearTrain.dll
This class implements APIs for drivetrain class.
public static class BodyToDTAPI
Inheritance
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
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>
The bearings.
Exceptions
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>
The clutchs.
Exceptions
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>
The gear sets.
Exceptions
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>
The housings.
Exceptions
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>
The simple shaft sets
Exceptions
Will be thrown if 'document' argument is empty or if the body of shaftset does not exist.
Will be thrown if the magnitude of 'rotateAxis' is 0.
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>
The gear sets.
bearings IEnumerableBearingParameters>
The bearings.
toleranceForAssembly ExpressionValueVariable?
The tolerance for assembly.
Exceptions
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
Will be thrown if 'document', 'clutchs' argument is empty.