API Reference

Detailed and full API reference helps you master Tekla development

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

TaskRemoveObjectsFromTask Method

Removes objects from the task.

Namespace:  Tekla.Structures.Model
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2023.0.1
public bool RemoveObjectsFromTask(
	ArrayList ModelObjects


Type: System.CollectionsArrayList
An array list of model objects to be removed from the task.

Return Value

Type: Boolean
True on success.
using Tekla.Structures.Model;
using Tekla.Structures;
using System.Collections;

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

           // Remove all the children from the task.
           Task task = new Task(Identifier1);

           if (task.Select())
               ModelObjectEnumerator taskChildren = task.GetChildren();
               ArrayList objectsToRemove = new ArrayList();

               while (taskChildren.Current != null)

See Also
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.