> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class AssemblyManagerAPI

Namespace: [VM.API.Pre.GearTrain](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain)\
Assembly: VM.API.Pre.GearTrain.dll

This class implements APIs for [AssemblyManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.AssemblyManager.md) class.

```csharp theme={null}
public static class AssemblyManagerAPI
```

#### Inheritance

object ←
[AssemblyManagerAPI](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.AssemblyManagerAPI.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Methods

### ApplyAssemblyBearing(GearTrainDocument, Obj, IEnumerable\<BearingInformationInAssemblyManager>, IEnumerable\<CycloidPinInformationInAssemblyManager>)

Apply assembly bearing.

```csharp theme={null}
[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 [GearTrainDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearTrainDocument.md) 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 [IConnectable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.IConnectable.md).

`bearingInfo` IEnumerable\<[BearingInformationInAssemblyManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.BearingInformationInAssemblyManager.md)>

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

`cycloidPinInfo` IEnumerable\<[CycloidPinInformationInAssemblyManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.CycloidPinInformationInAssemblyManager.md)>

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 [IConnectable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.IConnectable.md).

### ApplyAssemblyIOShaft(GearTrainDocument, Obj, Vector, IEnumerable\<ShaftInformationInAssemblyManager>, IEnumerable\<ShaftInformationInAssemblyManager>)

Apply assembly IO shaft.

```csharp theme={null}
[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 [GearTrainDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearTrainDocument.md) 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 [IConnectable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.IConnectable.md).

`referenceVector` Vector

The reference vector.

`inputInfo` IEnumerable\<[ShaftInformationInAssemblyManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.ShaftInformationInAssemblyManager.md)>

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

`outputInfo` IEnumerable\<[ShaftInformationInAssemblyManager](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.API.Pre.GearTrain.ShaftInformationInAssemblyManager.md)>

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 [IConnectable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.IConnectable.md).

ArgumentException

Will be thrown if type of 'inputInfo' is not ([IPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.IPowerLoad.md), [IConnectable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.IConnectable.md)).

ArgumentException

Will be thrown if type of 'outputInfo' is not ([IPowerLoad](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.IPowerLoad.md), [IConnectable](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.IConnectable.md)).

### ApplyPowerFlow(GearTrainDocument, PowerFlowParameters?)

Apply power flow.

```csharp theme={null}
[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 [GearTrainDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearTrainDocument.md) for power apply. If null, the active document will be used.

`powerFlowParameters` [PowerFlowParameters](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/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.

### ApplyRequest(GearTrainDocument, IEnumerable\<bool>, RequestParameters?)

Apply request.

```csharp theme={null}
[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 [GearTrainDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearTrainDocument.md) for request apply. If null, the active document will be used.

`gearsetForceDisplay` IEnumerable\<bool>

The flags whether using force display of gearset.

`requestParameters` [RequestParameters](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/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.

### SimulateInAssemblyManager(GearTrainDocument)

Simulate in assembly manager.

```csharp theme={null}
[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 [GearTrainDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearTrainDocument.md) for simulate. If null, the active document will be used.

### UpdateAssemblyManager(GearTrainDocument)

Update assembly manager.

```csharp theme={null}
[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 [GearTrainDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DAFUL.GearTrain.GearTrainDocument.md) for assembly manager update. If null, the active document will be used.
