Inheritance: SteelDesignOptions
Beispiel #1
0
        public void CopyFrom(LRFD99 copy)
        {
            tHDesign    = copy.tHDesign;
            frameType   = copy.frameType;
            patLLF      = copy.patLLF;
            sRatioLimit = copy.sRatioLimit;
            maxIter     = copy.maxIter;
            phiB        = copy.phiB;
            phiC        = copy.phiC;
            phiTY       = copy.phiTY;
            phiV        = copy.phiV;
            phiTF       = copy.phiTF;
            phiVT       = copy.phiVT;
            phiCA       = copy.phiCA;
            checkDefl   = copy.checkDefl;
            dLRat       = copy.dLRat;
            sDLAndLLRat = copy.sDLAndLLRat;
            lLRat       = copy.lLRat;
            totalRat    = copy.totalRat;
            netRat      = copy.netRat;

            seisCat  = copy.seisCat;
            seisCode = copy.seisCode;
            seisLoad = copy.seisLoad;
            plugWeld = copy.plugWeld;
        }
Beispiel #2
0
        public void CopyFrom(LRFD99 copy)
        {
            tHDesign = copy.tHDesign;
            frameType = copy.frameType;
            patLLF = copy.patLLF;
            sRatioLimit = copy.sRatioLimit;
            maxIter = copy.maxIter;
            phiB = copy.phiB;
            phiC = copy.phiC;
            phiTY = copy.phiTY;
            phiV = copy.phiV;
            phiTF = copy.phiTF;
            phiVT = copy.phiVT;
            phiCA = copy.phiCA;
            checkDefl = copy.checkDefl;
            dLRat = copy.dLRat;
            sDLAndLLRat = copy.sDLAndLLRat;
            lLRat = copy.lLRat;
            totalRat = copy.totalRat;
            netRat = copy.netRat;

            seisCat = copy.seisCat;
            seisCode = copy.seisCode;
            seisLoad = copy.seisLoad;
            plugWeld = copy.plugWeld;
        }
 private void writeLRFD99(XmlTextWriter xml, LRFD99 obj)
 {
     string thDesign = obj.GetTHDesignName(obj.TimeHistoryDesign);
     xml.WriteStartElement("THDesign");
     xml.WriteAttributeString("Name", thDesign);
     xml.WriteAttributeString("FrameType", "OMF");
     xml.WriteAttributeString("PatLLF", obj.PatLLF.ToString());
     xml.WriteAttributeString("SRatioLimit", obj.SRatioLimit.ToString());
     xml.WriteAttributeString("MaxIter", obj.MaxIter.ToString());
     xml.WriteAttributeString("PhiB", obj.PhiB.ToString());
     xml.WriteAttributeString("PhiC", obj.PhiC.ToString());
     xml.WriteAttributeString("PhiTY", obj.PhiTY.ToString());
     xml.WriteAttributeString("PhiV", obj.PhiV.ToString());
     xml.WriteAttributeString("PhiTF", obj.PhiTF.ToString());
     xml.WriteAttributeString("PhiVT", obj.PhiVT.ToString());
     xml.WriteAttributeString("PhiCA", obj.PhiCA.ToString());
     xml.WriteAttributeString("CheckDefl", CodeYN(obj.CheckDefl));
     xml.WriteAttributeString("DLRat", obj.DLRat.ToString());
     xml.WriteAttributeString("SDLAndLLRat", obj.SDLAndLLRat.ToString());
     xml.WriteAttributeString("LLRat", obj.LLRat.ToString());
     xml.WriteAttributeString("TotalRat", obj.TotalRat.ToString());
     xml.WriteAttributeString("NetRat", obj.NetRat.ToString());
     xml.WriteAttributeString("SeisCat", obj.SeisCat.ToString());
     xml.WriteAttributeString("SeisCode", CodeYN(obj.SeisCode));
     xml.WriteAttributeString("SeisLoad", CodeYN(obj.SeisLoad));
     xml.WriteAttributeString("PlugWeld", CodeYN(obj.PlugWeld));
     xml.WriteEndElement();
     steelCode = "AISC-LRFD99";
 }
        private void store(OleDbConnection cn, LRFD99 obj)
        {
            string thDesign = obj.GetTHDesignName(obj.TimeHistoryDesign);
            string FrameType = "\"OMF\"";

            string sql = "INSERT INTO [Preferences - Steel Design - AISC-LRFD99] " +
                    "(THDesign, FrameType, PatLLF, SRatioLimit, MaxIter, PhiB, PhiC, PhiTY, PhiV, PhiTF, PhiVT, PhiCA, CheckDefl, DLRat, SDLAndLLRat, LLRat, TotalRat, NetRat, SeisCat, SeisCode, SeisLoad, PlugWeld) VALUES " +
                    "(\"" + thDesign + "\", " + FrameType + ", " + obj.PatLLF + ", " + obj.SRatioLimit + ", " + obj.MaxIter + ", " + obj.PhiB + ", " + obj.PhiC + ", " + obj.PhiTY + ", " + obj.PhiV + ", " + obj.PhiTF + ", " + obj.PhiVT + ", " + obj.PhiCA + ", " + CodeYN(obj.CheckDefl) + ", " + obj.DLRat + ", " + obj.SDLAndLLRat + ", " + obj.LLRat + ", " + obj.TotalRat + ", " + obj.NetRat + ", \"" + obj.SeisCat + "\", " + CodeYN(obj.SeisCode) + ", " + CodeYN(obj.SeisLoad) + ", " + CodeYN(obj.PlugWeld) + ");";

            new OleDbCommand(sql, cn).ExecuteNonQuery();

            sql = "UPDATE [Program Control] set SteelCode=\"AISC-LRFD99\" WHERE 1=1;";
            new OleDbCommand(sql, cn).ExecuteNonQuery();
        }