/// <summary> /// Returns RSTAB Cross sections /// </summary> private void GetRSTABCrossSection() { int cc = 0; try { cc = IData.rsGetCrossSectionCount(); } catch (Exception e) { ecd = ErrCode.RSTABCRCN; ems = e.Message; epl = this.GetType().Name + "->" + MethodBase.GetCurrentMethod().Name; return; } try { RS_CROSS_SECTION[] cs = new RS_CROSS_SECTION[cc]; IData.rsGetCrossSectionArr(cc, cs); foreach (RS_CROSS_SECTION c in cs) { this.obj.AddCrCs(new RRCrSc(c)); } } catch (Exception e) { ecd = ErrCode.RSTABCRSC; ems = e.Message; epl = this.GetType().Name + "->" + MethodBase.GetCurrentMethod().Name; } }
/// <summary> /// Constructor from RSTAB Cross section /// </summary> /// <param name="cs">RSTAB Cross section to convert</param> public RRCrSc(RS_CROSS_SECTION cs) { this.id = cs.iNo; this.mt = null; this.ds = cs.strDescription; }