public PhaseCollection FetchAll() { PhaseCollection coll = new PhaseCollection(); Query qry = new Query(Phase.Schema); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public static dynamic GetTSObject(PhaseCollection dynObject) { if (dynObject is null) { return(null); } return(dynObject.teklaObject); }
public MainModel() { myModel = new Tekla.Structures.Model.Model(); if (myModel.GetConnectionStatus()) { phaseCollection = myModel.GetPhases(); PhaseItemsList.CollectionChanged += PhaseItemsList_CollectionChanged; } else { MessageBox.Show("Tekla Structures might not be open. Please run Tekla and restart RebarPhaseManager."); } }
public PhaseCollection FetchByQuery(Query qry) { PhaseCollection coll = new PhaseCollection(); coll.LoadAndCloseReader(qry.ExecuteReader()); return coll; }
public PhaseCollection FetchByID(object Id) { PhaseCollection coll = new PhaseCollection().Where("ID", Id).Load(); return coll; }