    

 ## On this page

  

 

 # Class MagneticInterface

 Last update: 16.07.2025 

Namespace: [VM.Managed.DAFUL](VM.Managed.DAFUL.md)  
Assembly: VMAppCore.dll

```csharp
public class MagneticInterface

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [MagneticInterface](VM.Managed.DAFUL.MagneticInterface.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_)

## Constructors

### MagneticInterface(string)

Initializes a new instance of the  class

```csharp
public MagneticInterface(string strPath)

```

#### Parameters

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

The interface dll path.

## Methods

### CloseProject()

```csharp
public bool CloseProject()

```

#### Returns

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

### CreateProject(string, string)

```csharp
public bool CreateProject(string projectFilePath, string geometryFilePath)

```

#### Parameters

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

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

#### Returns

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

### Dispose(bool)

```csharp
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)

```

#### Parameters

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

### Dispose()

```csharp
public override sealed void Dispose()

```

### ~MagneticInterface()

Releases unmanaged resources and performs other cleanup operations before the  is reclaimed by garbage collection.

```csharp
protected ~MagneticInterface()

```

### GetMaxwellDesigns(string, ref string\[\])

```csharp
public bool GetMaxwellDesigns(string projectFilePath, ref string[] designList)

```

#### Parameters

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

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

#### Returns

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

### GetMessages(ref string\[\])

```csharp
public bool GetMessages(ref string[] arMessage)

```

#### Parameters

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

#### Returns

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

### InitGeometry(string)

```csharp
public bool InitGeometry(string geometryFilePath)

```

#### Parameters

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

#### Returns

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

### InitMagneticObjects(Group\[\], Dictionary&lt;string, Material&gt;)

```csharp
public bool InitMagneticObjects(MagneticInterface.Group[] groups, Dictionary<string, MagneticInterface.Material> materialInfo)

```

#### Parameters

`groups` [MagneticInterface](VM.Managed.DAFUL.MagneticInterface.md).[Group](VM.Managed.DAFUL.MagneticInterface.Group.md)\[\]

`materialInfo` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string), [MagneticInterface](VM.Managed.DAFUL.MagneticInterface.md).[Material](VM.Managed.DAFUL.MagneticInterface.Material.md)&gt;

#### Returns

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

### InitMagneticObjects(Group\[\])

```csharp
public bool InitMagneticObjects(MagneticInterface.Group[] groups)

```

#### Parameters

`groups` [MagneticInterface](VM.Managed.DAFUL.MagneticInterface.md).[Group](VM.Managed.DAFUL.MagneticInterface.Group.md)\[\]

#### Returns

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

### OpenProject(string, string)

```csharp
public bool OpenProject(string projectFilePath, string designName)

```

#### Parameters

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

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

#### Returns

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

### QuitApplication()

```csharp
public bool QuitApplication()

```

#### Returns

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

### ReleaseApplication()

```csharp
public bool ReleaseApplication()

```

#### Returns

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

### SaveProject()

```csharp
public bool SaveProject()

```

#### Returns

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