private void buttonCloseSelectedViews_Click(object sender, EventArgs e) { var views = ViewHandler.GetSelectedViews(); while (views.MoveNext()) { var view = views.Current; ViewHandler.HideView(view); } }
/// <summary>Gets selected model views from the opened tekla structures model</summary> public static List <View> GetSelectedModelViews() { var viewEnumerator = ViewHandler.GetSelectedViews(); var retList = new List <View>(viewEnumerator.Count); while (viewEnumerator.MoveNext()) { retList.Add(viewEnumerator.Current); } return(retList); }