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

Creates a new task instance.

Namespace:  Tekla.Structures.Model
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
public Task()
Examples
using Tekla.Structures.Model;
using Tekla.Structures.Geometry3d;
using System.Collections;

public class Example
{
       public void Example1()
       {
           bool Result = false;
           Beam Beam1 = new Beam(new Point(0, 0, 0), new Point(1000, 0, 0));
           Beam Beam2 = new Beam(new Point(0, 500, 0), new Point(1000, 500, 0));
           Beam1.Name = "Default Beam 0000";
           Beam2.Name = "Default Beam 0001";
           Beam1.Insert();
           Beam2.Insert();
           Task Task1 = new Task();
           Task1.Name = "Default Task 0000";
           Task1.Insert();
           ArrayList aChildren = new ArrayList();
           aChildren.Add(Beam1);
           aChildren.Add(Beam2);
           Result = Task1.AddObjectsToTask(aChildren);
       }
}
See Also