    

 ## On this page

  

 

 # Class MotorDesignAPI

 Last update: 09.03.2026 

<a id="VM_API_Pre_GearTrain_MotorDesignAPI"></a>

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

This class implements APIs for drivetrain class.

```csharp
public static class MotorDesignAPI

```

#### Inheritance

object ← [MotorDesignAPI](VM.API.Pre.GearTrain.MotorDesignAPI.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_MotorDesignAPI_CreateMotorDesigner_VM_Managed_DAFUL_GearTrain_GearTrainDocument_VM_Vector_VM_Vector_VM_Managed_DAFUL_GearTrain_MotorDesigner_HousingType_VM_Managed_DAFUL_GearTrain_MotorDesigner_StatorMountingType_System_String_"></a> CreateMotorDesigner(GearTrainDocument, Vector, Vector, HousingType, StatorMountingType, string)

Create .

```csharp
[NotNull(new string[] { "document" })]
[NotZeroMagnitude(new string[] { "rotateAxis" })]
public static Obj CreateMotorDesigner(this GearTrainDocument document, Vector position, Vector rotateAxis, MotorDesigner.HousingType housingType = HousingType.Integrated, MotorDesigner.StatorMountingType statorMountingType = StatorMountingType.PressFit, string name = "")

```

#### Parameters

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

The document to create the ..

`position` Vector

The position of the motor designer.

`rotateAxis` Vector

The rotate axis of the motor designer.

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

The housing type of the motor designer.

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

The stator mounting type of the motor designer.

`name` string

The name of the motor designer.

#### Returns

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

the new  object created by this API.

#### Exceptions

ArgumentNullException

Will be thrown if 'document' argument is empty.

ArgumentException

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