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, DrawingFile and Module in the task row's columns.
  • The pane determines the row's icon from Severity.
  • Children is read only once, in the call to Tasks.Add: each subtask is a child row of the task. Changing Children after that call does not change the pane.
  • The pane calls Execute when 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.