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.

PhaseCollection Class

The PhaseCollection class handles the collection of the model phases.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Model
Assembly:  Tekla.Structures.Model (in Tekla.Structures.Model.dll) Version: 2020.0.0.0 (2020.0.55582.0)
public class PhaseCollection : ICollection, 

The PhaseCollection type exposes the following members.

  Name Description
Public property Count
Gets the number of elements contained in the ICollection.
Public property IsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
Public property SyncRoot
Gets an object that can be used to synchronize access to the ICollection.
  Name Description
Public method CopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
Public method GetEnumerator
Returns an enumerator that iterates through a collection.
The following example gets the phases of the model and shows the values of the PhaseName and PhaseNumber properties in a message dialog:
using Tekla.Structures.Model;
using System.Windows.Forms;

public class Example
       public void Example1()
           Model CurrentModel = new Model();
           PhaseCollection PhaseCollection = CurrentModel.GetPhases();

           if (CurrentModel.GetConnectionStatus())
               foreach(Phase p in PhaseCollection)
                    MessageBox.Show("Name = " + p.PhaseName + ", number = " + p.PhaseNumber);
See Also