Assembly: VMAppCore.dll This class is to represent the application.
Inheritance
object ← ApplicationImplements
IHasVerifyLevelExtension 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
ConversionMethodDialogManager
Gets or sets the threading of picker.Property Value
IDlgManagerDocumentForUpdateContents
Property Value
DocumentDocuments
Gets all opened documentsProperty Value
ICollection<Document>InformationMessageHandler
Property Value
Action<string, string>Kernel
Gets the Kernel.Property Value
KernelLoadPrior242Sp3Files
Property Value
boolOEMMode
Property Value
boolShowOEMError
Property Value
boolSupportLegacyACISBasedFile
Property Value
boolWarningMessageHandler
Property Value
Action<string, string>Methods
AskOkCancel(string)
Ask OK/Cancel messageParameters
message string
The message to show.
Returns
booltrue if Ok. Otherwise, false.
AskOkCancel(string, bool)
Ask OK/Cancel messageParameters
message string
The message to show.
bActiveCancel bool
If true, the Cancel button is active.
Returns
booltrue if Ok. Otherwise, false.
AskOkCancel(string, string)
Ask OK/Cancel messageParameters
message string
The message to show.
title string
The title
Returns
booltrue if Ok. Otherwise, false.
AskOkCancel(string, string, bool)
Ask OK/Cancel messageParameters
message string
The message to show.
title string
The title
bActiveCancel bool
If true, the Cancel button is active.
Returns
booltrue if Ok. Otherwise, false.
AskOkCancelWithSimpleText(string, string, string)
Ask OK/Cancel message with simple textParameters
simpleText string
The simple text message
message string
The message to show
title string
The title
Returns
booltrue 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
stringGetTranslateForExportFilter(string)
Parameters
strFilter string
Returns
stringInitPlugins(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 documentParameters
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 levelParameters
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 messageParameters
message string
The message to show
ShowAlert(string, string)
Show alert messageParameters
message string
The message to show
title string
The title
ShowInformation(string)
Show information messageParameters
message string
The message to show
ShowInformation(string, string)
Show information messageParameters
message string
The message to show
title string
The title
ShowWarning(string)
Show warning messageParameters
message string
The message to show
ShowWarning(string, string)
Show warning messageParameters
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