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

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

This class is to represent the application.

```csharp theme={null}
public abstract class Application : IHasVerifyLevel
```

#### Inheritance

object ←
[Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md)

#### Implements

[IHasVerifyLevel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.IHasVerifyLevel.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/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/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/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### Application(IApplication\*)

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

```csharp theme={null}
public Application(IApplication* pApp)
```

#### Parameters

`pApp` IApplication\*

The info of application.

## Properties

### AlertMessageHandler

```csharp theme={null}
public static Action<string, string> AlertMessageHandler { get; set; }
```

#### Property Value

Action\<string, string>

### AskOkCancelHandler

```csharp theme={null}
public static Func<string, string, bool, bool> AskOkCancelHandler { get; set; }
```

#### Property Value

Func\<string, string, bool, bool>

### AskOkCancelWithSimpleTextHandler

```csharp theme={null}
public static Func<string, string, string, bool> AskOkCancelWithSimpleTextHandler { get; set; }
```

#### Property Value

Func\<string, string, string, bool>

### ConversionMethod

```csharp theme={null}
public static ConversionMethod ConversionMethod { get; set; }
```

#### Property Value

ConversionMethod

### DialogManager

Gets or sets the threading of picker.

```csharp theme={null}
public static IDlgManager DialogManager { get; set; }
```

#### Property Value

IDlgManager

### DocumentForUpdateContents

```csharp theme={null}
public Document DocumentForUpdateContents { get; }
```

#### Property Value

[Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

### Documents

Gets all opened documents

```csharp theme={null}
public ICollection<Document> Documents { get; }
```

#### Property Value

ICollection\<[Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)>

### InformationMessageHandler

```csharp theme={null}
public static Action<string, string> InformationMessageHandler { get; set; }
```

#### Property Value

Action\<string, string>

### Kernel

Gets the Kernel.

```csharp theme={null}
public Kernel Kernel { get; }
```

#### Property Value

[Kernel](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.Kernel.md)

### LoadPrior242Sp3Files

```csharp theme={null}
public static bool LoadPrior242Sp3Files { get; set; }
```

#### Property Value

bool

### OEMMode

```csharp theme={null}
public static bool OEMMode { get; set; }
```

#### Property Value

bool

### ShowOEMError

```csharp theme={null}
public static bool ShowOEMError { get; set; }
```

#### Property Value

bool

### SupportLegacyACISBasedFile

```csharp theme={null}
public static bool SupportLegacyACISBasedFile { get; set; }
```

#### Property Value

bool

### WarningMessageHandler

```csharp theme={null}
public static Action<string, string> WarningMessageHandler { get; set; }
```

#### Property Value

Action\<string, string>

## Methods

### AskOkCancel(string)

Ask OK/Cancel message

```csharp theme={null}
public static bool AskOkCancel(string message)
```

#### Parameters

`message` string

The message to show.

#### Returns

bool

`true` if Ok. Otherwise, `false`.

### AskOkCancel(string, bool)

Ask OK/Cancel message

```csharp theme={null}
public static bool AskOkCancel(string message, bool bActiveCancel)
```

#### Parameters

`message` string

The message to show.

`bActiveCancel` bool

If true, the Cancel button is active.

#### Returns

bool

`true` if Ok. Otherwise, `false`.

### AskOkCancel(string, string)

Ask OK/Cancel message

```csharp theme={null}
public static bool AskOkCancel(string message, string title)
```

#### Parameters

`message` string

The message to show.

`title` string

The title

#### Returns

bool

`true` if Ok. Otherwise, `false`.

### AskOkCancel(string, string, bool)

Ask OK/Cancel message

```csharp theme={null}
public static bool AskOkCancel(string message, string title, bool bActiveCancel)
```

#### Parameters

`message` string

The message to show.

`title` string

The title

`bActiveCancel` bool

If true, the Cancel button is active.

#### Returns

bool

`true` if Ok. Otherwise, `false`.

### AskOkCancelWithSimpleText(string, string, string)

Ask OK/Cancel message with simple text

```csharp theme={null}
public static bool AskOkCancelWithSimpleText(string simpleText, string message, string title)
```

#### Parameters

`simpleText` string

The simple text message

`message` string

The message to show

`title` string

The title

#### Returns

bool

`true` if Ok. Otherwise, `false`.

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

Creates the document.

```csharp theme={null}
public Document3D CreateDocument(DocumentType type, Type typeDoc, string[] arIconFiles, DocCreateInfo docCreateInfo)
```

#### Parameters

`type` DocumentType

The type of document.

`typeDoc` Type

The system type of document.

`arIconFiles` string\[]

Icon files.

`docCreateInfo` [DocCreateInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.DocCreateInfo.md)

The info of creating document.

#### Returns

[Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document3D.md)

The created document.

### CreateDocument(DocumentType, Type)

Creates the document.

```csharp theme={null}
public Document CreateDocument(DocumentType type, Type typeDoc)
```

#### Parameters

`type` DocumentType

The type of document.

`typeDoc` Type

The system type of document.

#### Returns

[Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

The created document.

### Dispose(bool)

```csharp theme={null}
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
```

#### Parameters

`A_0` bool

### Dispose()

destroy a instance of the [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md) class.

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

### \~Application()

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

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

### GetTranslateFilter(string)

```csharp theme={null}
public string GetTranslateFilter(string strFilter)
```

#### Parameters

`strFilter` string

#### Returns

string

### GetTranslateForExportFilter(string)

```csharp theme={null}
public string GetTranslateForExportFilter(string strFilter)
```

#### Parameters

`strFilter` string

#### Returns

string

### InitPlugins(string\[])

Initializes a plugin.

```csharp theme={null}
public abstract void InitPlugins(string[] arStrPluginPath)
```

#### Parameters

`arStrPluginPath` string\[]

The path of plugin.

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

Opens the document.

```csharp theme={null}
public Document3D OpenDocument(string strFilePath, DocumentType type, string[] arIconFiles, Application.PostOpenDocument delPostOpen)
```

#### Parameters

`strFilePath` string

The path of opened document.

`type` DocumentType

The type of document.

`arIconFiles` string\[]

Icon files.

`delPostOpen` [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md).[PostOpenDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.PostOpenDocument.md)

The delegate of post open.

#### Returns

[Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document3D.md)

The open document.

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

Opens the document of template base.

```csharp theme={null}
public Document3D OpenTemplateBasedDocument(string strFilePath, DocumentType type, string[] arIconFiles, Application.PostOpenDocument delPostOpen)
```

#### Parameters

`strFilePath` string

The path of opened document.

`type` DocumentType

The type of document.

`arIconFiles` string\[]

Icon files.

`delPostOpen` [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md).[PostOpenDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.PostOpenDocument.md)

The delegate of post open.

#### Returns

[Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document3D.md)

The open document.

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

Opens the xml document

```csharp theme={null}
public Document3D OpenXmlDocument(string strFilePath, DocumentType type, string[] arIconFiles, Application.PostOpenDocument delPostOpen)
```

#### Parameters

`strFilePath` string

The path of opened document.

`type` DocumentType

The type of document.

`arIconFiles` string\[]

Icon files.

`delPostOpen` [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md).[PostOpenDocument](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.PostOpenDocument.md)

The delegate of post open.

#### Returns

[Document3D](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document3D.md)

The open document.

### SetAxisSetting(bool, AxisLocation)

Sets Axis Setting.

```csharp theme={null}
public static void SetAxisSetting(bool bUseRotate, AxisLocation enLocation)
```

#### Parameters

`bUseRotate` bool

Use rotate in axis area

`enLocation` [AxisLocation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.AxisLocation.md)

Axis Location

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

```csharp theme={null}
public static void SetBinderDictionary(Dictionary<string, Application.BinderInfo> dicBinder, Dictionary<string, Application.BinderInfo> dicBinderForCollection)
```

#### Parameters

`dicBinder` Dictionary\<string, [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md).[BinderInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.BinderInfo.md)>

`dicBinderForCollection` Dictionary\<string, [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md).[BinderInfo](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.BinderInfo.md)>

### SetDoubleFormat(int)

Sets the double format.

```csharp theme={null}
public static void SetDoubleFormat(int nValue)
```

#### Parameters

`nValue` int

The value.

### SetInforceBuild(string, bool)

```csharp theme={null}
public void SetInforceBuild(string strFile, bool bOnOff)
```

#### Parameters

`strFile` string

`bOnOff` bool

### SetKernelLogLevel(int, int)

Set kernel log level

```csharp theme={null}
public void SetKernelLogLevel(int nKernelLogLevel, int nTranslatorLogLevel)
```

#### Parameters

`nKernelLogLevel` int

Log level for the kernel messages.

`nTranslatorLogLevel` int

Log level for the translator messages.

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

```csharp theme={null}
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](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oRotateSub` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oTranslateMain` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oTranslateSub` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oZoomMain` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oZoomSub` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oCenterMain` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`oCenterSub` [NavigationKeys](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.NavigationKeys.md)

`bZoomInMouseDown` bool

`bZoomInWheelDown` bool

`bTrackball` bool

`nRotateSpeed` int

`nZoomSpeed` int

### ShowAlert(string)

Show alert message

```csharp theme={null}
public static void ShowAlert(string message)
```

#### Parameters

`message` string

The message to show

### ShowAlert(string, string)

Show alert message

```csharp theme={null}
public static void ShowAlert(string message, string title)
```

#### Parameters

`message` string

The message to show

`title` string

The title

### ShowInformation(string)

Show information message

```csharp theme={null}
public static void ShowInformation(string message)
```

#### Parameters

`message` string

The message to show

### ShowInformation(string, string)

Show information message

```csharp theme={null}
public static void ShowInformation(string message, string title)
```

#### Parameters

`message` string

The message to show

`title` string

The title

### ShowWarning(string)

Show warning message

```csharp theme={null}
public static void ShowWarning(string message)
```

#### Parameters

`message` string

The message to show

### ShowWarning(string, string)

Show warning message

```csharp theme={null}
public static void ShowWarning(string message, string title)
```

#### Parameters

`message` string

The message to show

`title` string

The title

### Start(string, StartOption)

Start application.

```csharp theme={null}
public static Application Start(string strKernelPath, Application.StartOption obOption)
```

#### Parameters

`strKernelPath` string

The path of kernel.

`obOption` [Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md).[StartOption](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.StartOption.md)

The application start option

#### Returns

[Application](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Application.md)
