/// <summary>Move all selected model bojects to the phase with phaseNumber</summary>
        /// <param name="phaseNumber">Number of phase</param>
        /// <returns>Numbers of moved objects</returns>
        public int MoveSelectedObjectsToPhase(int phaseNumber)
        {
            var selectedObjects = new Tekla.Structures.Model.UI.ModelObjectSelector().GetSelectedObjects();

            if (selectedObjects.GetSize() == 0)
            {
                return(0);
            }

            var phase = GetPhaseByNumber(phaseNumber);

            while (selectedObjects.MoveNext())
            {
                selectedObjects.Current.SetPhase(phase);
            }
            return(selectedObjects.GetSize());
        }
        /// <summary>Iterates through selected object in the model and move its to this phase</summary>
        /// <returns>The number of moved objects</returns>
        public int MoveSelectedObjectsToPhase()
        {
            var selectedObjects = new Tekla.Structures.Model.UI.ModelObjectSelector().GetSelectedObjects();

            while (selectedObjects.MoveNext())
            {
                selectedObjects.Current.SetPhase(this.phase);
            }
            return(selectedObjects.GetSize());
        }