Class Application
Last update: 09.03.2026Namespace: VM.Managed
Assembly: VMAppCore.dll
This class is to represent the application.
public abstract class Application : IHasVerifyLevel
Inheritance
object ← Application
Implements
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
Application(IApplication*)
Initializes a new instance of the
public Application(IApplication* pApp)
Parameters
pApp IApplication*
The info of application.
Properties
AlertMessageHandler
public static Action<string, string> AlertMessageHandler { get; set; }
Property Value
Action<string, string>
AskOkCancelHandler
public static Func<string, string, bool, bool> AskOkCancelHandler { get; set; }
Property Value
Func<string, string, bool, bool>
AskOkCancelWithSimpleTextHandler
public static Func<string, string, string, bool> AskOkCancelWithSimpleTextHandler { get; set; }
Property Value
Func<string, string, string, bool>
ConversionMethod
public static ConversionMethod ConversionMethod { get; set; }
Property Value
ConversionMethod
DialogManager
Gets or sets the threading of picker.
public static IDlgManager DialogManager { get; set; }
Property Value
IDlgManager
DocumentForUpdateContents
public Document DocumentForUpdateContents { get; }
Property Value
Documents
Gets all opened documents
public ICollection<Document> Documents { get; }
Property Value
ICollection<Document>
InformationMessageHandler
public static Action<string, string> InformationMessageHandler { get; set; }
Property Value
Action<string, string>
Kernel
Gets the Kernel.
public Kernel Kernel { get; }
Property Value
LoadPrior242Sp3Files
public static bool LoadPrior242Sp3Files { get; set; }
Property Value
bool
OEMMode
public static bool OEMMode { get; set; }
Property Value
bool
ShowOEMError
public static bool ShowOEMError { get; set; }
Property Value
bool
SupportLegacyACISBasedFile
public static bool SupportLegacyACISBasedFile { get; set; }
Property Value
bool
WarningMessageHandler
public static Action<string, string> WarningMessageHandler { get; set; }
Property Value
Action<string, string>
Methods
AskOkCancel(string)
Ask OK/Cancel message
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
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
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
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
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.
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
The info of creating document.
Returns
The created document.
CreateDocument(DocumentType, Type)
Creates the document.
public Document CreateDocument(DocumentType type, Type typeDoc)
Parameters
type DocumentType
The type of document.
typeDoc Type
The system type of document.
Returns
The created document.
Dispose(bool)
[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)
Parameters
A_0 bool
Dispose()
destroy a instance of the
public override sealed void Dispose()
~Application()
Releases unmanaged resources and performs other cleanup operations before the
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, 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.PostOpenDocument
The delegate of post open.
Returns
The open document.
OpenTemplateBasedDocument(string, DocumentType, string[], PostOpenDocument)
Opens the document of template base.
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.PostOpenDocument
The delegate of post open.
Returns
The open document.
OpenXmlDocument(string, DocumentType, string[], PostOpenDocument)
Opens the xml document
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.PostOpenDocument
The delegate of post open.
Returns
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
SetKernelLogLevel(int, int)
Set kernel log level
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)
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
ShowAlert(string)
Show alert message
public static void ShowAlert(string message)
Parameters
message string
The message to show
ShowAlert(string, string)
Show alert message
public static void ShowAlert(string message, string title)
Parameters
message string
The message to show
title string
The title
ShowInformation(string)
Show information message
public static void ShowInformation(string message)
Parameters
message string
The message to show
ShowInformation(string, string)
Show information message
public static void ShowInformation(string message, string title)
Parameters
message string
The message to show
title string
The title
ShowWarning(string)
Show warning message
public static void ShowWarning(string message)
Parameters
message string
The message to show
ShowWarning(string, string)
Show warning message
public static void ShowWarning(string message, string title)
Parameters
message string
The message to show
title string
The title
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