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<T>(object, LinkPropertyType)
Methods
ApplyBearingForBodyToDT(GearTrainDocument, IEnumerable<BearingParameters>)
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 IEnumerable<BearingParameters>
The bearings.
Exceptions
Will be thrown if 'document' argument is empty or if the body of bearing is empty.
ApplyClutchForBodyToDT(GearTrainDocument, IEnumerable<ClutchParameters>)
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 IEnumerable<ClutchParameters>
The clutchs.
Exceptions
Will be thrown if 'document' argument is empty or if the body of clutch is empty.
ApplyGearSetForBodyToDT(GearTrainDocument, IEnumerable<GearSetParameters>)
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 IEnumerable<GearSetParameters>
The gear sets.
Exceptions
Will be thrown if 'document' argument is empty or if the body of gearSet is empty.
ApplyHousingForBodyToDT(GearTrainDocument, IEnumerable<HousingParameters>)
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 IEnumerable<HousingParameters>
The housings.
Exceptions
Will be thrown if 'document' argument is empty or if the body of housing is empty.
ApplyShaftSetForBodyToDT(GearTrainDocument, IEnumerable<ShaftSetParameters>)
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 IEnumerable<ShaftSetParameters>
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<GearSetParameters>, IEnumerable<BearingParameters>, 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 IEnumerable<GearSetParameters>
The gear sets.
bearings IEnumerable<BearingParameters>
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<Obj>)
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<Obj>
The clutchs.
Exceptions
Will be thrown if 'document', 'clutchs' argument is empty.