示例#1
0
        /// <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;
            }
        }
示例#2
0
 /// <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;
 }