Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class MagneticInterface

Last update: 09.03.2026

Namespace: VM.Managed.DAFUL
Assembly: VMAppCore.dll

public class MagneticInterface

Inheritance

object ← MagneticInterface

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

MagneticInterface(string, string)

Initializes a new instance of the class

public MagneticInterface(string strPath, string targetMaxwellVersion)

Parameters

strPath string

The interface dll path.

targetMaxwellVersion string

The target Maxwell version. (eg. 2025.2)

MagneticInterface(string)

Initializes a new instance of the class

public MagneticInterface(string strPath)

Parameters

strPath string

The interface dll path.

Methods

CloseProject()

public bool CloseProject()

Returns

bool

CreateProject(string, string)

public bool CreateProject(string projectFilePath, string geometryFilePath)

Parameters

projectFilePath string

geometryFilePath string

Returns

bool

Dispose(bool)

[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)

Parameters

A_0 bool

Dispose()

public override sealed void Dispose()

~MagneticInterface()

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

protected ~MagneticInterface()

GetMaxwellDesigns(string, ref string[])

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

Parameters

projectFilePath string

designList string[]

Returns

bool

GetMessages(ref string[])

public bool GetMessages(ref string[] arMessage)

Parameters

arMessage string[]

Returns

bool

InitGeometry(string)

public bool InitGeometry(string geometryFilePath)

Parameters

geometryFilePath string

Returns

bool

InitMagneticObjects(Group[], Dictionary<string, Material>)

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

Parameters

groups MagneticInterface.Group[]

materialInfo Dictionary<string, MagneticInterface.Material>

Returns

bool

InitMagneticObjects(Group[])

public bool InitMagneticObjects(MagneticInterface.Group[] groups)

Parameters

groups MagneticInterface.Group[]

Returns

bool

OpenProject(string, string)

public bool OpenProject(string projectFilePath, string designName)

Parameters

projectFilePath string

designName string

Returns

bool

QuitApplication()

public bool QuitApplication()

Returns

bool

ReleaseApplication()

public bool ReleaseApplication()

Returns

bool

SaveProject()

public bool SaveProject()

Returns

bool

Connect with Ansys