ITask
Namespace: Digi21.Tasks
Assembly: Digi21.DigiNG
Task in the Digi3D.AI Tasks pane: an error, warning or message with an associated action.
public interface ITask
Implementations: TaskBase and its derived classes, such as TaskMessageBox.
An extension adds a task to the pane using Tasks.Add. The pane uses the members as follows:
- The pane displays
Title,DrawingFileandModulein the task row's columns. - The pane determines the row's icon from
Severity. Childrenis read only once, in the call toTasks.Add: each subtask is a child row of the task. ChangingChildrenafter that call does not change the pane.- The pane calls
Executewhen you double-click the task row.
Properties
| Property | Description |
|---|---|
| Children | Task's subtasks, or null if it has none. |
| DrawingFile | Path of the drawing file to which the task refers. |
| Module | Name of the module that generated the task. |
| Severity | Task severity: TaskSeverity. |
| Title | Task title. |
Methods
| Method | Description |
|---|---|
| Execute() | Runs the task's action. The Tasks pane calls it on a double-click in the row. |
Example
The TaskBase example traverses a task tree using the members of ITask.