    

 ## On this page

  

 

 # Class AssemblyManagerAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_GearTrain_AssemblyManagerAPI"></a>

Namespace: [VM.API.Pre.GearTrain](VM.API.Pre.GearTrain.md)  
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for  class.

```csharp
public static class AssemblyManagerAPI

```

#### Inheritance

object ← [AssemblyManagerAPI](VM.API.Pre.GearTrain.AssemblyManagerAPI.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_AssemblyManagerAPI_ApplyAssemblyBearing_VM_Managed_DAFUL_GearTrain_GearTrainDocument_VM_API_Pre_Obj_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_BearingInformationInAssemblyManager__System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_CycloidPinInformationInAssemblyManager__"></a> ApplyAssemblyBearing(GearTrainDocument, Obj, IEnumerable&lt;BearingInformationInAssemblyManager&gt;, IEnumerable&lt;CycloidPinInformationInAssemblyManager&gt;)

Apply assembly bearing.

```csharp
[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "referenceBody" })]
[MatchTypeObj(new object[] { "referenceBody", typeof(IConnectable) })]
public static void ApplyAssemblyBearing(this GearTrainDocument document, Obj referenceBody, IEnumerable<BearingInformationInAssemblyManager> bearingInfo = null, IEnumerable<CycloidPinInformationInAssemblyManager> cycloidPinInfo = null)

```

#### Parameters

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

The  for assembly bearing apply. If null, the active document will be used.

`referenceBody` [Obj](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/API/VM.API.Pre/Models/Obj.cs)

The reference body. The type is .

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

The bearing information. If it is not given, default values will be used..

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

The cycloid information. If it is not given, default values will be used..

#### Exceptions

ArgumentNullException

Will be thrown if 'document' or 'referenceBody' arguments are empty.

ArgumentNullException

Will be thrown if type of 'referenceBody' is not .

### <a id="VM_API_Pre_GearTrain_AssemblyManagerAPI_ApplyAssemblyIOShaft_VM_Managed_DAFUL_GearTrain_GearTrainDocument_VM_API_Pre_Obj_VM_Vector_System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_ShaftInformationInAssemblyManager__System_Collections_Generic_IEnumerable_VM_API_Pre_GearTrain_ShaftInformationInAssemblyManager__"></a> ApplyAssemblyIOShaft(GearTrainDocument, Obj, Vector, IEnumerable&lt;ShaftInformationInAssemblyManager&gt;, IEnumerable&lt;ShaftInformationInAssemblyManager&gt;)

Apply assembly IO shaft.

```csharp
[NotNull(new string[] { "document" })]
[NotNullObj(new string[] { "referenceBody" })]
[NotZeroMagnitude(new string[] { "referenceVector" })]
[MatchTypeObj(new object[] { "referenceBody", typeof(IConnectable) })]
public static void ApplyAssemblyIOShaft(this GearTrainDocument document, Obj referenceBody, Vector referenceVector, IEnumerable<ShaftInformationInAssemblyManager> inputInfo = null, IEnumerable<ShaftInformationInAssemblyManager> outputInfo = null)

```

#### Parameters

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

The  for assembly IO shaft apply. If null, the active document will be used.

`referenceBody` [Obj](https://github.com/AnsysVirtualMotion/DAFUL/blob/9110677a5f6a53d7604f8dfd35b4c5fceb59e8e0/DAFUL/ClassicPre/API/VM.API.Pre/Models/Obj.cs)

The reference body. The type is .

`referenceVector` Vector

The reference vector.

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

The input information. If it is not given, default values will be used.

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

The output information. If it is not given, default values will be used.

#### Exceptions

ArgumentNullException

Will be thrown if 'document' or 'referenceBody' arguments are empty.

ArgumentException

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

ArgumentException

Will be thrown if type of 'referenceBody' is not .

ArgumentException

Will be thrown if type of 'inputInfo' is not (, ).

ArgumentException

Will be thrown if type of 'outputInfo' is not (, ).

### <a id="VM_API_Pre_GearTrain_AssemblyManagerAPI_ApplyPowerFlow_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Nullable_VM_API_Pre_GearTrain_PowerFlowParameters__"></a> ApplyPowerFlow(GearTrainDocument, PowerFlowParameters?)

Apply power flow.

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyPowerFlow(this GearTrainDocument document, PowerFlowParameters? powerFlowParameters = null)

```

#### Parameters

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

The  for power apply. If null, the active document will be used.

`powerFlowParameters` [PowerFlowParameters](VM.API.Pre.GearTrain.PowerFlowParameters.md)?

The power flow parameters. If it is not given, default values will be used.

#### Exceptions

ArgumentNullException

Will be thrown if 'document' or 'powerFlow' arguments are empty.

### <a id="VM_API_Pre_GearTrain_AssemblyManagerAPI_ApplyRequest_VM_Managed_DAFUL_GearTrain_GearTrainDocument_System_Collections_Generic_IEnumerable_System_Boolean__System_Nullable_VM_API_Pre_GearTrain_RequestParameters__"></a> ApplyRequest(GearTrainDocument, IEnumerable&lt;bool&gt;, RequestParameters?)

Apply request.

```csharp
[NotNull(new string[] { "document" })]
public static void ApplyRequest(this GearTrainDocument document, IEnumerable<bool> gearsetForceDisplay, RequestParameters? requestParameters = null)

```

#### Parameters

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

The  for request apply. If null, the active document will be used.

`gearsetForceDisplay` IEnumerable&lt;bool&gt;

The flags whether using force display of gearset.

`requestParameters` [RequestParameters](VM.API.Pre.GearTrain.RequestParameters.md)?

The request parameters. If it is not given, default values will be used.

#### Exceptions

ArgumentNullException

Will be thrown if 'document' or 'request' arguments are empty.

### <a id="VM_API_Pre_GearTrain_AssemblyManagerAPI_SimulateInAssemblyManager_VM_Managed_DAFUL_GearTrain_GearTrainDocument_"></a> SimulateInAssemblyManager(GearTrainDocument)

Simulate in assembly manager.

```csharp
[NotNull(new string[] { "doc" })]
public static void SimulateInAssemblyManager(this GearTrainDocument doc)

```

#### Parameters

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

The  for simulate. If null, the active document will be used.

### <a id="VM_API_Pre_GearTrain_AssemblyManagerAPI_UpdateAssemblyManager_VM_Managed_DAFUL_GearTrain_GearTrainDocument_"></a> UpdateAssemblyManager(GearTrainDocument)

Update assembly manager.

```csharp
[NotNull(new string[] { "doc" })]
public static void UpdateAssemblyManager(this GearTrainDocument doc)

```

#### Parameters

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

The  for assembly manager update. If null, the active document will be used.