Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class Application

Last update: 16.07.2025

Namespace: VM.Managed
Assembly: VMAppCore.dll

This class is to represent the application.

public abstract class Application : IHasVerifyLevel

Inheritance

object ← Application

Implements

IHasVerifyLevel

Extension Methods

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

Constructors

Application(IApplication*)

Initializes a new instance of the class.

public Application(IApplication* pApp)

Parameters

pApp IApplication*

The info of application.

Properties

DialogManager

Gets or sets the threading of picker.

public static IDlgManager DialogManager { get; set; }

Property Value

IDlgManager

DocumentForUpdateContents

public Document DocumentForUpdateContents { get; }

Property Value

Document

Documents

Gets all opened documents

public ICollection<Document> Documents { get; }

Property Value

ICollection<Document>

Kernel

Gets the Kernel.

public Kernel Kernel { get; }

Property Value

Kernel

OEMMode

public static bool OEMMode { get; set; }

Property Value

bool

ShowOEMError

public static bool ShowOEMError { get; set; }

Property Value

bool

Methods

CreateDocument(DocumentType, Type, string[], DocCreateInfo)

Creates the document.

public Document3D CreateDocument(Application.DocumentType type, Type typeDoc, string[] arIconFiles, DocCreateInfo docCreateInfo)

Parameters

type Application.DocumentType

The type of document.

typeDoc Type

The system type of document.

arIconFiles string[]

Icon files.

docCreateInfo DocCreateInfo

The info of creating document.

Returns

Document3D

The created document.

CreateDocument(DocumentType, Type)

Creates the document.

public Document CreateDocument(Application.DocumentType type, Type typeDoc)

Parameters

type Application.DocumentType

The type of document.

typeDoc Type

The system type of document.

Returns

Document

The created document.

Dispose(bool)

[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)

Parameters

A_0 bool

Dispose()

destroy a instance of the class.

public override sealed void Dispose()

~Application()

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

protected ~Application()

GetTranslateFilter(string)

public string GetTranslateFilter(string strFilter)

Parameters

strFilter string

Returns

string

GetTranslateForExportFilter(string)

public string GetTranslateForExportFilter(string strFilter)

Parameters

strFilter string

Returns

string

InitPlugins(string[])

Initializes a plugin.

public abstract void InitPlugins(string[] arStrPluginPath)

Parameters

arStrPluginPath string[]

The path of plugin.

OpenDocument(string, DocumentType, string[], PostOpenDocument)

Opens the document.

public Document3D OpenDocument(string strFilePath, Application.DocumentType type, string[] arIconFiles, Application.PostOpenDocument delPostOpen)

Parameters

strFilePath string

The path of opened document.

type Application.DocumentType

The type of document.

arIconFiles string[]

Icon files.

delPostOpen Application.PostOpenDocument

The delegate of post open.

Returns

Document3D

The open document.

OpenTemplateBasedDocument(string, DocumentType, string[], PostOpenDocument)

Opens the document of template base.

public Document3D OpenTemplateBasedDocument(string strFilePath, Application.DocumentType type, string[] arIconFiles, Application.PostOpenDocument delPostOpen)

Parameters

strFilePath string

The path of opened document.

type Application.DocumentType

The type of document.

arIconFiles string[]

Icon files.

delPostOpen Application.PostOpenDocument

The delegate of post open.

Returns

Document3D

The open document.

OpenXmlDocument(string, DocumentType, string[], PostOpenDocument)

Opens the xml document

public Document3D OpenXmlDocument(string strFilePath, Application.DocumentType type, string[] arIconFiles, Application.PostOpenDocument delPostOpen)

Parameters

strFilePath string

The path of opened document.

type Application.DocumentType

The type of document.

arIconFiles string[]

Icon files.

delPostOpen Application.PostOpenDocument

The delegate of post open.

Returns

Document3D

The open document.

SetAxisSetting(bool, AxisLocation)

Sets Axis Setting.

public static void SetAxisSetting(bool bUseRotate, AxisLocation enLocation)

Parameters

bUseRotate bool

Use rotate in axis area

enLocation AxisLocation

Axis Location

SetBinderDictionary(Dictionary<string, BinderInfo>, Dictionary<string, BinderInfo>)

public static void SetBinderDictionary(Dictionary<string, Application.BinderInfo> dicBinder, Dictionary<string, Application.BinderInfo> dicBinderForCollection)

Parameters

dicBinder Dictionary<string, Application.BinderInfo>

dicBinderForCollection Dictionary<string, Application.BinderInfo>

SetDoubleFormat(int)

Sets the double format.

public static void SetDoubleFormat(int nValue)

Parameters

nValue int

The value.

SetInforceBuild(string, bool)

public void SetInforceBuild(string strFile, bool bOnOff)

Parameters

strFile string

bOnOff bool

SetNavigationSetting(NavigationKeys, NavigationKeys, NavigationKeys, NavigationKeys, NavigationKeys, NavigationKeys, NavigationKeys, NavigationKeys, bool, bool, bool, int, int)

public static void SetNavigationSetting(NavigationKeys oRotateMain, NavigationKeys oRotateSub, NavigationKeys oTranslateMain, NavigationKeys oTranslateSub, NavigationKeys oZoomMain, NavigationKeys oZoomSub, NavigationKeys oCenterMain, NavigationKeys oCenterSub, bool bZoomInMouseDown, bool bZoomInWheelDown, bool bTrackball, int nRotateSpeed, int nZoomSpeed)

Parameters

oRotateMain NavigationKeys

oRotateSub NavigationKeys

oTranslateMain NavigationKeys

oTranslateSub NavigationKeys

oZoomMain NavigationKeys

oZoomSub NavigationKeys

oCenterMain NavigationKeys

oCenterSub NavigationKeys

bZoomInMouseDown bool

bZoomInWheelDown bool

bTrackball bool

nRotateSpeed int

nZoomSpeed int

Start(string, StartOption)

Start application.

public static Application Start(string strKernelPath, Application.StartOption obOption)

Parameters

strKernelPath string

The path of kernel.

obOption Application.StartOption

The application start option

Returns

Application

Connect with Ansys