Skip to main content
Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the application.

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 Application class.

Parameters

pApp IApplication* The info of application.

Properties

AlertMessageHandler

Property Value

Action<string, string>

AskOkCancelHandler

Property Value

Func<string, string, bool, bool>

AskOkCancelWithSimpleTextHandler

Property Value

Func<string, string, string, bool>

ConversionMethod

Property Value

ConversionMethod

DialogManager

Gets or sets the threading of picker.

Property Value

IDlgManager

DocumentForUpdateContents

Property Value

Document

Documents

Gets all opened documents

Property Value

ICollection<Document>

InformationMessageHandler

Property Value

Action<string, string>

Kernel

Gets the Kernel.

Property Value

Kernel

LoadPrior242Sp3Files

Property Value

bool

OEMMode

Property Value

bool

ShowOEMError

Property Value

bool

SupportLegacyACISBasedFile

Property Value

bool

WarningMessageHandler

Property Value

Action<string, string>

Methods

AskOkCancel(string)

Ask OK/Cancel message

Parameters

message string The message to show.

Returns

bool true if Ok. Otherwise, false.

AskOkCancel(string, bool)

Ask OK/Cancel message

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

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

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

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.

Parameters

type 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.

Parameters

type DocumentType The type of document. typeDoc Type The system type of document.

Returns

Document The created document.

Dispose(bool)

Parameters

A_0 bool

Dispose()

destroy a instance of the Application class.

~Application()

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

GetTranslateFilter(string)

Parameters

strFilter string

Returns

string

GetTranslateForExportFilter(string)

Parameters

strFilter string

Returns

string

InitPlugins(string[])

Initializes a plugin.

Parameters

arStrPluginPath string[] The path of plugin.

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

Opens the document.

Parameters

strFilePath string The path of opened document. type 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.

Parameters

strFilePath string The path of opened document. type 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

Parameters

strFilePath string The path of opened document. type 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.

Parameters

bUseRotate bool Use rotate in axis area enLocation AxisLocation Axis Location

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

Parameters

dicBinder Dictionary<string, Application.BinderInfo> dicBinderForCollection Dictionary<string, Application.BinderInfo>

SetDoubleFormat(int)

Sets the double format.

Parameters

nValue int The value.

SetInforceBuild(string, bool)

Parameters

strFile string bOnOff bool

SetKernelLogLevel(int, int)

Set kernel log level

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)

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

ShowAlert(string)

Show alert message

Parameters

message string The message to show

ShowAlert(string, string)

Show alert message

Parameters

message string The message to show title string The title

ShowInformation(string)

Show information message

Parameters

message string The message to show

ShowInformation(string, string)

Show information message

Parameters

message string The message to show title string The title

ShowWarning(string)

Show warning message

Parameters

message string The message to show

ShowWarning(string, string)

Show warning message

Parameters

message string The message to show title string The title

Start(string, StartOption)

Start application.

Parameters

strKernelPath string The path of kernel. obOption Application.StartOption The application start option

Returns

Application