IApplication Interface
Namespace: NextDesign.Desktop
Description
This is a shared variable provided to the extension execution environment.
Scripts can access various application information through this variable.
Area
| Name | Description |
|---|---|
| Global | This is a set of APIs for accessing the extension's execution environment and execution state. |
Property
| Name | Description |
|---|---|
| Commands | Command Manager |
| CustomUI | This is the registry for the user interface of the custom extension. |
| EditionId | Edition Identifier 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 Utility |
| Search | Search Manager |
| Util | General Purpose Utility Object |
| Version | Application Version Number |
| Window | Workspace Window UI Manipulation Object |
| Workspace | Workspace |
Method
| Name | Description |
|---|---|
| CreateCommandParams | Creates command parameters. |
| CreateScriptParams | Creates script parameters. |
| CreateSearch | [Obsolete] Creates a search object. |
| ExecuteCommand | Executes the command with the specified identifier. |
| ExecuteScript | Reads and executes the specified script file. Identifies the scripting language from the extension of the specified script file. - ".cs" or ".csx": Executes as a CSharp script. - ".py": Executes as a Python script. In V5.0, an exception is thrown if a file with an extension other than those listed above is specified. |
| 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, the path of the project file will be used as the starting point for searching for external files, provided that the currently open project is saved. |
| GetFeatureValue | Retrieves the specified key (attribute) value of the specified feature in the current edition. The value can be retrieved regardless of whether the specified feature is enabled or disabled. If the specified feature is not found, the value will be null. Also, if the specified feature key name is not found, the value will be null. |
| IsFeatureEnabled | Checks if the specified feature is enabled in the current edition. |
| Quit | Exits the application. |
| Restart | Requests the application to restart. If the project was open when the restart was requested, the same project will be opened after the restart. If the restart fails, it returns false. |
| ThrowUserException | Throws a user exception. This method can be used when you want to explicitly notify an exception in the runtime exception handling of the extension. |
Related Topics
| Name | Description |
|---|---|
| Shared Variables | Shared variables provided to the extension execution environment. Scripts can access various information about the application through these variables. |