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

Namespace: [VM.Managed.DAFUL.GearTrain.Force](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force)\
Assembly: VMDGearTrain.dll

Property of Motor EM Force

```csharp theme={null}
public class PropertyMotorEMForce : Property, IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, ILinkContainer, IOwned, IHasID
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object\<PropertyEventCore> ←
ContainerObject\<PropertyEventCore> ←
Property ←
[PropertyMotorEMForce](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md)

#### Implements

IObservableObject,
IDisposableObject,
ILinkable,
IObjectBase,
IObject,
IEventProvider,
IHasKeyObject,
ILinkContainerEvent,
IVerifiable,
IHistoryObjectSerializable,
IAttributeContainer,
IContainer,
ILinkContainer,
IOwned,
IHasID

#### Inherited Members

Property.Initialize(Unit.ConvertFactor),
Property.PropertyRequestUpdate(object, LinkEventArgs),
Property.OnUpdatePropertyImpl(Property, LinkEventArgs),
Property.GetUnnamedObjectName(object),
Property.FindLocal(string),
Property.Draw(Canvas, TMatrix, TMatrix, bool),
ContainerObject\<PropertyEventCore>.Find(string),
ContainerObject\<PropertyEventCore>.FindLocal(string),
ContainerObject\<PropertyEventCore>.GetUnnamedObjectName(object),
ContainerObject\<PropertyEventCore>.GetNewEntityName(string),
ContainerObject\<PropertyEventCore>.GetNewEntityName(string, bool, int),
ContainerObject\<PropertyEventCore>.GetNewEntityName(string, bool, int, int),
Object\<PropertyEventCore>.GetKey(),
Object\<PropertyEventCore>.Initialize(Unit.ConvertFactor),
Object\<PropertyEventCore>.SetIconColor(Canvas),
Object\<PropertyEventCore>.OnDeserialization(object),
Object\<PropertyEventCore>.CustomGetObjectData(SerializationInfo, StreamingContext),
Object\<PropertyEventCore>.RollbackEvent(),
Object\<PropertyEventCore>.OnDeserializedCore(object),
Object\<PropertyEventCore>.Key,
Object\<PropertyEventCore>.UntypedEventCore,
Object\<PropertyEventCore>.EventCore,
Object\<PropertyEventCore>.Attributes,
ObjectBase.ReplaceEventCore(ObjectEventCore),
ObjectBase.SetModifiedCore(ModifiedResult.ModifiedType),
ObjectBase.AddPostDeserialize(StreamingContext),
ObjectBase.LinkAddedToDocumentCore(IOwned, bool),
ObjectBase.SetModified(ModifiedResult.ModifiedType),
ObjectBase.SetModified(),
ObjectBase.SetModified(ModifiedResult.ModifiedType, IDocument),
ObjectBase.DestroyObject(object, LinkEventArgs),
ObjectBase.DestroyObject(DestroyEventArgs),
ObjectBase.DestroyObject(),
ObjectBase.Initialize(Unit.ConvertFactor),
ObjectBase.FixUp(ObjectBase),
ObjectBase.DoWorkAfterUpdateContents(),
ObjectBase.SetOldNameWithNewEntity(ObjectBase, ObjectBase),
ObjectBase.SetIconColor(Canvas),
ObjectBase.RemoveFromCreatedList(),
ObjectBase.PostAddToDocument(),
ObjectBase.PostRemoveFromDocument(Document),
ObjectBase.GetArgumentList(LinkedList\<ObjectBase>),
ObjectBase.ResetInvalidEntity(),
ObjectBase.OnDeserialization(object),
ObjectBase.IsSerializableEvent(Delegate),
ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext),
ObjectBase.CheckAndUpdateLink(HashSet\<ObjectBase>),
ObjectBase.Verify(VerifiedResult),
ObjectBase.ConnectProxy(),
ObjectBase.RollbackEvent(),
ObjectBase.LinkRequestUpdating(object, LinkEventArgs),
ObjectBase.LinkRequestUpdate(object, LinkEventArgs),
ObjectBase.LinkRequestDestroying(object, LinkEventArgs),
ObjectBase.LinkRequestDestroy(object, LinkEventArgs),
ObjectBase.LinkAddedToDocument(object, AddToDocEventArgs),
ObjectBase.LinkRemovedFromDocument(object, RemoveFromDocEventArgs),
ObjectBase.DisposeManagedResources(),
ObjectBase.GetDestroyEventExtraData(),
ObjectBase.OnLinkReserved(ILink, object, EventArgs),
ObjectBase.CreateEntityWhenUpdateContents(Action),
ObjectBase.GetObjectByKey(UIntPtr),
ObjectBase.FindObjectOnXmlDeserialize(string),
ObjectBase.UpdateContents(XmlReader, ObjectBase, string),
ObjectBase.UpdateContents(XmlReader, ObjectBase),
ObjectBase.UpdateContents(string, string),
ObjectBase.UpdateContents(string),
ObjectBase.SetFlagWhenXMLFile(string, bool),
ObjectBase.IsEqualArray\<T>(T\[], T\[]),
ObjectBase.IsEqualList(List\<double>, List\<double>),
ObjectBase.SetContainer(IOwned, bool),
ObjectBase.GetTargetListForUpdate(),
ObjectBase.SkipUpdateObjectImpl(),
ObjectBase.raise\_OnUpdating(object, LinkEventArgs),
ObjectBase.raise\_OnUpdate(object, LinkEventArgs),
ObjectBase.raise\_OnDestroying(object, LinkEventArgs),
ObjectBase.raise\_OnDestroy(object, LinkEventArgs),
ObjectBase.raise\_Destroying(object, Identifier),
ObjectBase.raise\_OnAdded(object, AddToDocEventArgs),
ObjectBase.raise\_OnRemoved(object, RemoveFromDocEventArgs),
ObjectBase.raise\_OnContentsUpdated(object, EventArgs),
ObjectBase.Dispose(bool),
ObjectBase.SkipModified,
ObjectBase.ClearChildInfoBeforeDeserialize,
ObjectBase.KeyImpl,
ObjectBase.ID,
ObjectBase.TopologyEntityTypeName,
ObjectBase.ObjectStateForCircularError,
ObjectBase.ObjectState,
ObjectBase.IsChildExternable,
ObjectBase.IsExternable,
ObjectBase.Container,
ObjectBase.Owner,
ObjectBase.Document,
ObjectBase.UntypedEventCore,
ObjectBase.KernelKey,
ObjectBase.Key,
ObjectBase.OnContentsUpdated,
ObjectBase.OnRemoved,
ObjectBase.OnAdded,
ObjectBase.Destroying,
ObjectBase.OnDestroy,
ObjectBase.OnDestroying,
ObjectBase.OnUpdate,
ObjectBase.OnUpdating,
LinkableBase.OnDeserialization(object),
ObservableObject.Dispose(),
ObservableObject.RaisePropertyChanged(string),
ObservableObject.RaisePropertyChanged(string, object, object),
ObservableObject.Dispose(bool),
ObservableObject.DisposeManagedResources(),
ObservableObject.DisposeUnmanagedResources(),
ObservableObject.IsDisposed,
ObservableObject.TryDisposing,
ObservableObject.Disposed,
ObservableObject.Disposing,
ObservableObject.PropertyChanged

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/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/2025-r1/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/2025-r1/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### PropertyMotorEMForce()

Initializes a new instance of the [PropertyMotorEMForce](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md) class.

```csharp theme={null}
public PropertyMotorEMForce()
```

## Properties

### Depth

Gets or sets the depth.

```csharp theme={null}
public ExpressionValueVariable Depth { get; set; }
```

#### Property Value

ExpressionValueVariable

#### Exceptions

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)

Depth is null.

### FileFormat

Gets or sets the file format.

```csharp theme={null}
public PropertyMotorEMForce.FileFormatType FileFormat { get; set; }
```

#### Property Value

[PropertyMotorEMForce](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[FileFormatType](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.FileFormatType.md)

### ForceUNVFiles

Gets or sets the force unv files.

```csharp theme={null}
public PropertyMotorEMForce.UNVFileWithRPM[] ForceUNVFiles { get; set; }
```

#### Property Value

[PropertyMotorEMForce](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[UNVFileWithRPM](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.UNVFileWithRPM.md)\[]

### GeometryUNVFile

Gets or sets the geometry unv file.

```csharp theme={null}
public PropertyMotorEMForce.UNVFile GeometryUNVFile { get; set; }
```

#### Property Value

[PropertyMotorEMForce](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[UNVFile](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.UNVFile.md)

### InitialPositionAngle

Gets or sets the initial position angle.

```csharp theme={null}
public ExpressionValueVariable InitialPositionAngle { get; set; }
```

#### Property Value

ExpressionValueVariable

#### Exceptions

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)

Initial position angle is null.

### MaxwellForceFile

Gets or sets the Maxwell force file.

```csharp theme={null}
public string MaxwellForceFile { get; set; }
```

#### Property Value

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

### MaxwellGeometryFile

Gets or sets the Maxwell geometry file.

```csharp theme={null}
public string MaxwellGeometryFile { get; set; }
```

#### Property Value

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

### NumberOfLayer

Gets or sets the number of layer.

```csharp theme={null}
public ExpressionValueVariable NumberOfLayer { get; set; }
```

#### Property Value

ExpressionValueVariable

#### Exceptions

[Exception](https://learn.microsoft.com/dotnet/api/system.exception)

Number of layer is null.

### ReferenceFrame

Gets or sets the reference frame.

```csharp theme={null}
public TransformBase ReferenceFrame { get; set; }
```

#### Property Value

TransformBase

### ReferenceOfRotational

Gets or sets the reference Of rotational.

```csharp theme={null}
public ObjectBase ReferenceOfRotational { get; set; }
```

#### Property Value

ObjectBase

### ResultFile

Gets or sets the result file.

```csharp theme={null}
public string ResultFile { get; set; }
```

#### Property Value

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

### Scale

Gets or sets the scale.

```csharp theme={null}
public Scale Scale { get; set; }
```

#### Property Value

[Scale](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.MoterEM.Scale.md)

## Methods

### CheckAMGeometryAndForceFile(Document, string, string, TMatrix)

```csharp theme={null}
public static void CheckAMGeometryAndForceFile(Document doc, string strGeometryAMFilePath, string strForceAMFilePath, TMatrix transform)
```

#### Parameters

`doc` Document

`strGeometryAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strForceAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

`transform` TMatrix

### CheckResultAMFile(string)

Check result AM file

```csharp theme={null}
public static bool CheckResultAMFile(string strResultAMFilePath)
```

#### Parameters

`strResultAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### CheckUNVFiles(Document, IEnumerable\<string>, TMatrix)

Check UNV files

```csharp theme={null}
public static void CheckUNVFiles(Document document, IEnumerable<string> filesPath, TMatrix transform)
```

#### Parameters

`document` Document

The document.

`filesPath` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The force UNV files.

`transform` TMatrix

The transform.

### CheckUNVFiles(Document, string, string\[], TMatrix)

Check UNV files

```csharp theme={null}
public static void CheckUNVFiles(Document doc, string strGeometryUNVFilePath, string[] arForceUNVFilePath, TMatrix transform)
```

#### Parameters

`doc` Document

The document.

`strGeometryUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The geometry UNV file.

`arForceUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)\[]

The force UNV files.

`transform` TMatrix

The transform.

### GetGlobalPosition(Vector, TMatrix)

Gets global position

```csharp theme={null}
public static Vector GetGlobalPosition(Vector vecLocal, TMatrix matT)
```

#### Parameters

`vecLocal` Vector

The local position

`matT` TMatrix

The Reference matrix

#### Returns

Vector

### GetNodeCountFromAMFile(Document, string, string, TMatrix)

```csharp theme={null}
public static Tuple<int, int> GetNodeCountFromAMFile(Document doc, string strGeometryAMFilePath, string strForceAMFilePath, TMatrix transform)
```

#### Parameters

`doc` Document

`strGeometryAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strForceAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

`transform` TMatrix

#### Returns

[Tuple](https://learn.microsoft.com/dotnet/api/system.tuple-2)\<[int](https://learn.microsoft.com/dotnet/api/system.int32), [int](https://learn.microsoft.com/dotnet/api/system.int32)>

### GetNodeCountFromUNVFile(Document, string, TMatrix)

Get node count from UNV file.

```csharp theme={null}
public static int GetNodeCountFromUNVFile(Document document, string forceUNVFilePath, TMatrix transform)
```

#### Parameters

`document` Document

The document.

`forceUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The force UNV file.

`transform` TMatrix

The transform.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### GetNodeCountFromUNVFile(Document, string, string, TMatrix)

Get node count from UNV file.

```csharp theme={null}
public static int GetNodeCountFromUNVFile(Document doc, string strGeometryUNVFilePath, string strForceUNVFilePath, TMatrix transform)
```

#### Parameters

`doc` Document

The document.

`strGeometryUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The geometry UNV file.

`strForceUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The force UNV file.

`transform` TMatrix

The transform.

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### GetRotorPosition(Document, string, int, int)

Gets rotor position

```csharp theme={null}
public Vector GetRotorPosition(Document doc, string strResultFile, int nIndexRotor, int nTotalRotor)
```

#### Parameters

`doc` Document

The document

`strResultFile` [string](https://learn.microsoft.com/dotnet/api/system.string)

The result file

`nIndexRotor` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The rotor index

`nTotalRotor` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The total rotor number

#### Returns

Vector

### GetRotorPosition(Document, string, TMatrix, int, int)

Gets rotor position

```csharp theme={null}
public static Vector GetRotorPosition(Document doc, string strResultFile, TMatrix matRef, int nIndexRotor, int nTotalRotor)
```

#### Parameters

`doc` Document

The document

`strResultFile` [string](https://learn.microsoft.com/dotnet/api/system.string)

The result file

`matRef` TMatrix

The reference matrix

`nIndexRotor` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The rotor index

`nTotalRotor` [int](https://learn.microsoft.com/dotnet/api/system.int32)

The total rotor number

#### Returns

Vector

### Initialize(ConvertFactor)

Initializes member through unit convert factor.

```csharp theme={null}
public override void Initialize(Unit.ConvertFactor factor)
```

#### Parameters

`factor` Unit.ConvertFactor

The unit convert factor.

### OnDeserialization(object)

Called when \[deserialization].

```csharp theme={null}
protected override void OnDeserialization(object sender)
```

#### Parameters

`sender` [object](https://learn.microsoft.com/dotnet/api/system.object)

The sender.

### ReadAMGeometryAndForceFile(Document, string, string, TMatrix, out Dictionary\<VectorBase, VectorBase>, out Dictionary\<VectorBase, VectorBase>)

Read AM geometry and force file

```csharp theme={null}
public static void ReadAMGeometryAndForceFile(Document doc, string strGeometryAMFilePath, string strForceAMFilePath, TMatrix transform, out Dictionary<VectorBase, VectorBase> startToEndPointStator, out Dictionary<VectorBase, VectorBase> startToEndPointRotor)
```

#### Parameters

`doc` Document

The document.

`strGeometryAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The AM geometry file path

`strForceAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The AM force file path

`transform` TMatrix

The transform

`startToEndPointStator` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<VectorBase, VectorBase>

The stator start and end point container.

`startToEndPointRotor` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<VectorBase, VectorBase>

The rotor start and end point container.

### ReadResultAMFile(Document, string, out MaxwellResultInformation)

Read result AM file

```csharp theme={null}
public static void ReadResultAMFile(Document doc, string strResultAMFilePath, out PropertyMotorEMForce.MaxwellResultInformation maxwellResultInformation)
```

#### Parameters

`doc` Document

The document.

`strResultAMFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The force file path.

`maxwellResultInformation` [PropertyMotorEMForce](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[MaxwellResultInformation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.MaxwellResultInformation.md)

The maxwell result information.

### ReadUNVFile(Document, IEnumerable\<string>, TMatrix)

Read UNV files

```csharp theme={null}
public static IEnumerable<Dictionary<VectorBase, VectorBase>> ReadUNVFile(Document document, IEnumerable<string> filesPath, TMatrix transform)
```

#### Parameters

`document` Document

The document.

`filesPath` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[string](https://learn.microsoft.com/dotnet/api/system.string)>

The force UNV files.

`transform` TMatrix

The transform.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<VectorBase, VectorBase>>

### ReadUNVFile(Document, string, string\[], TMatrix, out Dictionary\<VectorBase, VectorBase>\[])

Read UNV files

```csharp theme={null}
public static void ReadUNVFile(Document doc, string strGeometryUNVFilePath, string[] arForceUNVFilePath, TMatrix transform, out Dictionary<VectorBase, VectorBase>[] startToEndPoint)
```

#### Parameters

`doc` Document

The document.

`strGeometryUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)

The geometry UNV file.

`arForceUNVFilePath` [string](https://learn.microsoft.com/dotnet/api/system.string)\[]

The force UNV files.

`transform` TMatrix

The transform.

`startToEndPoint` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<VectorBase, VectorBase>\[]

The start and end point container.
