IApplication interface
Namespace: NextDesign.Desktop
Description
Shared variables given to the extension execution environment.
Scripts can access various information about the application through these variables.
Belonging area
Name | Description |
---|---|
Global | A group of APIs to access the extension execution environment and execution status. |
Property
Name | Description |
---|---|
Commands | Command manager |
CustomUI | A registry for custom user interface extensions. |
Diff | Difference extraction object |
EditionId | Edition identification name |
EditionShortName | Edition short name |
Env | Application execution environment |
Errors | Error list |
Extensions | Extension management |
FileUtil | File operation utility object |
Output | Output |
Resources | Resource manipulation utilities |
Search](properties/Search.md) | Search manager |
Util](properties/Util.md) | General utility objects |
Version](properties/Version.md) | Application version number |
Window](properties/Window.md) | Workspace window UI manipulation objects |
Workspace](properties/Workspace.md) | Workspace |
Method
Name | Description |
---|---|
CreateCommandParams](methods/CreateCommandParams.md) | Create command parameters. |
CreateScriptParams](methods/CreateScriptParams.md) | Create script parameters. |
CreateSearch | [Obsolete] Creates a search object. |
ExecuteCommand | Executes a command with the specified identifier. |
ExecuteScript | Loads and executes the specified script file. |
ExecuteScriptCode(string,string,IScriptParams) | Executes the given script code. |
ExecuteScriptCode(string,string,string,IScriptParams) | Executes the given script code. By specifying basePath, you can use relative paths for external files used in the script code. If not specified, and the currently open project has been saved, the path of the project file is used as the starting point for searching for external files. |
GetFeatureValue | Gets the specified key (attribute) value of the specified feature in the current edition. The value can be obtained regardless of whether the specified feature is enabled or disabled. Note that if the specified feature is not found, the value returns null. Also, if the specified feature key name is not found, the value returns null. |
IsFeatureEnabled | Checks whether the specified feature is enabled in the current edition. |
Quit | Exits the application. |
Restart | Requests the application to be restarted. If a project is open when the restart is requested, the same project will be opened after the restart. If the restart fails, false will be returned. |
ThrowUserException | Throws a user exception. This method can be used to explicitly notify an exception during the extension's runtime exception handling. |
Related items
Name | Description |
---|---|
Shared variables | Shared variables given to the extension execution environment. The script can access various information about the application through this variable. |