    

 ## On this page

  

 

 # Class PropertyMotorEMForce

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL.GearTrain.Force](VM.Managed.DAFUL.GearTrain.Force.md)  
Assembly: VMDGearTrain.dll

Property of Motor EM Force

```csharp
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&lt;PropertyEventCore&gt; ← ContainerObject&lt;PropertyEventCore&gt; ← Property ← [PropertyMotorEMForce](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&lt;PropertyEventCore&gt;.Find(string), ContainerObject&lt;PropertyEventCore&gt;.FindLocal(string), ContainerObject&lt;PropertyEventCore&gt;.GetUnnamedObjectName(object), ContainerObject&lt;PropertyEventCore&gt;.GetNewEntityName(string), ContainerObject&lt;PropertyEventCore&gt;.GetNewEntityName(string, bool, int), ContainerObject&lt;PropertyEventCore&gt;.GetNewEntityName(string, bool, int, int), Object&lt;PropertyEventCore&gt;.GetKey(), Object&lt;PropertyEventCore&gt;.Initialize(Unit.ConvertFactor), Object&lt;PropertyEventCore&gt;.SetIconColor(Canvas), Object&lt;PropertyEventCore&gt;.OnDeserialization(object), Object&lt;PropertyEventCore&gt;.CustomGetObjectData(SerializationInfo, StreamingContext), Object&lt;PropertyEventCore&gt;.RollbackEvent(), Object&lt;PropertyEventCore&gt;.OnDeserializedCore(object), Object&lt;PropertyEventCore&gt;.Key, Object&lt;PropertyEventCore&gt;.UntypedEventCore, Object&lt;PropertyEventCore&gt;.EventCore, Object&lt;PropertyEventCore&gt;.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&lt;ObjectBase&gt;), ObjectBase.ResetInvalidEntity(), ObjectBase.OnDeserialization(object), ObjectBase.IsSerializableEvent(Delegate), ObjectBase.CustomGetObjectData(SerializationInfo, StreamingContext), ObjectBase.CheckAndUpdateLink(HashSet&lt;ObjectBase&gt;), 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&lt;T&gt;(T\[\], T\[\]), ObjectBase.IsEqualList(List&lt;double&gt;, List&lt;double&gt;), 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)](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_)

## Constructors

### PropertyMotorEMForce()

Initializes a new instance of the  class.

```csharp
public PropertyMotorEMForce()

```

## Properties

### Depth

Gets or sets the depth.

```csharp
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
public PropertyMotorEMForce.FileFormatType FileFormat { get; set; }

```

#### Property Value

[PropertyMotorEMForce](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[FileFormatType](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.FileFormatType.md)

### ForceUNVFiles

Gets or sets the force unv files.

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

```

#### Property Value

[PropertyMotorEMForce](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[UNVFileWithRPM](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.UNVFileWithRPM.md)\[\]

### GeometryUNVFile

Gets or sets the geometry unv file.

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

```

#### Property Value

[PropertyMotorEMForce](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[UNVFile](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.UNVFile.md)

### InitialPositionAngle

Gets or sets the initial position angle.

```csharp
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
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
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
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
public TransformBase ReferenceFrame { get; set; }

```

#### Property Value

TransformBase

### ReferenceOfRotational

Gets or sets the reference Of rotational.

```csharp
public ObjectBase ReferenceOfRotational { get; set; }

```

#### Property Value

ObjectBase

### ResultFile

Gets or sets the result file.

```csharp
public string ResultFile { get; set; }

```

#### Property Value

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

### Scale

Gets or sets the scale.

```csharp
public Scale Scale { get; set; }

```

#### Property Value

[Scale](VM.Managed.DAFUL.GearTrain.Force.MoterEM.Scale.md)

## Methods

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

```csharp
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
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&lt;string&gt;, TMatrix)

Check UNV files

```csharp
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)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

The force UNV files.

`transform` TMatrix

The transform.

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

Check UNV files

```csharp
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
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
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)&lt;[int](https://learn.microsoft.com/dotnet/api/system.int32), [int](https://learn.microsoft.com/dotnet/api/system.int32)&gt;

### GetNodeCountFromUNVFile(Document, string, TMatrix)

Get node count from UNV file.

```csharp
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
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
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
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
public override void Initialize(Unit.ConvertFactor factor)

```

#### Parameters

`factor` Unit.ConvertFactor

The unit convert factor.

### OnDeserialization(object)

Called when \[deserialization\].

```csharp
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&lt;VectorBase, VectorBase&gt;, out Dictionary&lt;VectorBase, VectorBase&gt;)

Read AM geometry and force file

```csharp
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)&lt;VectorBase, VectorBase&gt;

The stator start and end point container.

`startToEndPointRotor` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)&lt;VectorBase, VectorBase&gt;

The rotor start and end point container.

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

Read result AM file

```csharp
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](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.md).[MaxwellResultInformation](VM.Managed.DAFUL.GearTrain.Force.PropertyMotorEMForce.MaxwellResultInformation.md)

The maxwell result information.

### ReadUNVFile(Document, IEnumerable&lt;string&gt;, TMatrix)

Read UNV files

```csharp
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)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

The force UNV files.

`transform` TMatrix

The transform.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)&lt;VectorBase, VectorBase&gt;&gt;

### ReadUNVFile(Document, string, string\[\], TMatrix, out Dictionary&lt;VectorBase, VectorBase&gt;\[\])

Read UNV files

```csharp
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)&lt;VectorBase, VectorBase&gt;\[\]

The start and end point container.