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

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

```csharp theme={null}
public class MagneticInterface
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[MagneticInterface](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.md)

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

### MagneticInterface(string)

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

```csharp theme={null}
public MagneticInterface(string strPath)
```

#### Parameters

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

The interface dll path.

## Methods

### CloseProject()

```csharp theme={null}
public bool CloseProject()
```

#### Returns

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

### CreateProject(string, string)

```csharp theme={null}
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 theme={null}
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
```

#### Parameters

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

### Dispose()

```csharp theme={null}
public override sealed void Dispose()
```

### \~MagneticInterface()

Releases unmanaged resources and performs other cleanup operations before the
[MagneticInterface](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.md) is reclaimed by garbage collection.

```csharp theme={null}
protected ~MagneticInterface()
```

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

```csharp theme={null}
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 theme={null}
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 theme={null}
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\<string, Material>)

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

#### Parameters

`groups` [MagneticInterface](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.md).[Group](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.Group.md)\[]

`materialInfo` [Dictionary](https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2)\<[string](https://learn.microsoft.com/dotnet/api/system.string), [MagneticInterface](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.md).[Material](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.Material.md)>

#### Returns

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

### InitMagneticObjects(Group\[])

```csharp theme={null}
public bool InitMagneticObjects(MagneticInterface.Group[] groups)
```

#### Parameters

`groups` [MagneticInterface](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.md).[Group](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/2025-r1/lib/VM.Managed.DAFUL.MagneticInterface.Group.md)\[]

#### Returns

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

### OpenProject(string, string)

```csharp theme={null}
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 theme={null}
public bool QuitApplication()
```

#### Returns

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

### ReleaseApplication()

```csharp theme={null}
public bool ReleaseApplication()
```

#### Returns

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

### SaveProject()

```csharp theme={null}
public bool SaveProject()
```

#### Returns

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