Application Object

The Application object is used to control and get information about the ConceptDraw application. By using the methods and properties of this object you can create new documents and libraries, open, close and save the existing ones, control the user-defined menu at the application level, library windows of the application and many more.

Properties

ActiveDoc Read-only. Returns the active document of the application.
ActiveLib Read-only. Returns the active library.
ActiveLibWnd Read-only. Returns the active library window.
CustomMenu Read-only. Returns the user-defined menu of the application.

Methods

CloseDoc Closes a document.
CloseLib Closes a library.
CreateNewDoc Creates a new document.
CreateNewLib Creates a new library.
Doc Returns a document by its index in the document collection of the application.
DocByName Searches a document by its name (the Name property) in the document collection of the application.
DocsNum Returns the number of open documents.
FindLib Returns the index of the library in the library collection of the document.
FirstDoc Returns the first document in the document collection of the application.
FirstLibWindow Returns the first library window in the library window collection of the application.
Import Imports a file of any format supported in ConceptDraw
Lib Returns a library by its index in the library collection of the application.
LibByName

Searches a library by the specified name (the Name property) in the library collection of the application.

LibsNum Returns the number of open libraries.
LibWindowByID Returns the library window by its ID.
LibWindowsNum Returns the number of library windows in the application.
NextDoc Returns the next document in the document collection of the application.
NextLibWindow Returns the next library window in the library window collection of the application.
OpenDoc Opens an existing ConceptDraw document file.
OpenLib Opens an existing ConceptDraw library file.
OpenWorkspace Opens an existing ConceptDraw workspace file.
SaveWorkspace Saves the current workspace in a file.
SetActiveLib Makes the specified library the active library.

Remarks

An instance of the Application object can be retrieved by using the thisApp global variable, which returns an instance of the application in which the script is being executed. This variable is accessible at all ConceptDraw Basic script levels.

See Also

Document object, Library object, Menu object, Window object