Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Task Constructor (Identifier)

Creates a task instance with a known identifier. Select the task after the creation.

Namespace:  Tekla.Structures.Model
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2018.1.0.0 (2018.1.0.0)
public Task(
	Identifier ID


Type: Tekla.StructuresIdentifier
The identifier of an existing task.
using Tekla.Structures.Model;
using Tekla.Structures;

public class Example
       public void Example1()
           Identifier Identifier1 = new Identifier(357);

           bool Result = true;
           Task Task1 = new Task(Identifier1);
           ModelObjectEnumerator TaskChildren = Task1.GetChildren();
           foreach (Task ChildTask in TaskChildren)
               ChildTask.Name += " (modified)";
               Result = ChildTask.Modify();
See Also