    

 ## On this page

  

 

 # Class AssemblyManagerAPI

 Last update: 16.07.2025 

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](https://learn.microsoft.com/dotnet/api/system.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

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

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

`referenceBody` Obj

The reference body. The type is .

`bearingInfo` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[BearingInformationInAssemblyManager](VM.API.Pre.GearTrain.BearingInformationInAssemblyManager.md)&gt;

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

`cycloidPinInfo` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[CycloidPinInformationInAssemblyManager](VM.API.Pre.GearTrain.CycloidPinInformationInAssemblyManager.md)&gt;

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

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

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

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

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

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

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

`referenceBody` Obj

The reference body. The type is .

`referenceVector` Vector

The reference vector.

`inputInfo` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[ShaftInformationInAssemblyManager](VM.API.Pre.GearTrain.ShaftInformationInAssemblyManager.md)&gt;

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

`outputInfo` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[ShaftInformationInAssemblyManager](VM.API.Pre.GearTrain.ShaftInformationInAssemblyManager.md)&gt;

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

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

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

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

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

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

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

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

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

[ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception)

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

### ApplyPowerFlow(GearTrainDocument, PowerFlowParameters?)

Apply power flow.

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

```

#### Parameters

`document` GearTrainDocument

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](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

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

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

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

`gearsetForceDisplay` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[bool](https://learn.microsoft.com/dotnet/api/system.boolean)&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](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

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

### SimulateInAssemblyManager(GearTrainDocument)

Simulate in assembly manager.

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

```

#### Parameters

`doc` GearTrainDocument

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

### UpdateAssemblyManager(GearTrainDocument)

Update assembly manager.

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

```

#### Parameters

`doc` GearTrainDocument

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