Inheritance: ConcreteDesignOptions
Ejemplo n.º 1
0
 /// <summary>
 /// Copies all properties from another ACI318_02 object
 /// </summary>
 /// <param name="copy">ACI318_02 object</param>
 public void CopyFrom(ACI318_02 copy)
 {
     tHDesign = copy.tHDesign;
     numCurves = copy.numCurves;
     numPoints = copy.numPoints;
     minEccen = copy.minEccen;
     patLLF = copy.patLLF;
     uFLimit = copy.uFLimit;
     seisCat = copy.seisCat;
     phiT = copy.phiT;
     phiCTied = copy.phiCTied;
     phiCSpiral = copy.phiCSpiral;
     phiV = copy.phiV;
     phiVSeismic = copy.phiVSeismic;
     phiVJoint = copy.phiVJoint;
 }
Ejemplo n.º 2
0
        private void writeACI318_02(XmlTextWriter xml, ACI318_02 obj)
        {
            string thDesign = obj.GetTHDesignName(obj.THDesign);
            xml.WriteStartElement("THDesign");
            xml.WriteAttributeString("Name", "Envelopes");
            xml.WriteAttributeString("NumCurves", "24");
            xml.WriteAttributeString("NumPoints", "11");
            xml.WriteAttributeString("MinEccen", "Yes");
            xml.WriteAttributeString("PatLLF", "0.75");
            xml.WriteAttributeString("UFLimit", "0.95");
            xml.WriteAttributeString("SeisCat", "D");
            xml.WriteAttributeString("PhiT", "0.9");
            xml.WriteAttributeString("PhiCTied", "0.65");
            xml.WriteAttributeString("PhiCSpiral", "0.7");
            xml.WriteAttributeString("PhiV", "0.75");
            xml.WriteAttributeString("PhiVSeismic", "0.6");
            xml.WriteAttributeString("PhiVJoint", "0.85");
            xml.WriteEndElement();

            xml.WriteStartElement("THDesign");
            xml.WriteAttributeString("Name", thDesign);
            xml.WriteAttributeString("NumCurves", obj.NumCurves.ToString());
            xml.WriteAttributeString("NumPoints", obj.NumPoints.ToString());
            xml.WriteAttributeString("MinEccen", CodeYN(obj.MinEccen));
            xml.WriteAttributeString("PatLLF", obj.PatLLF.ToString());
            xml.WriteAttributeString("UFLimit", obj.UFLimit.ToString());
            xml.WriteAttributeString("SeisCat", obj.SeisCat.ToString());
            xml.WriteAttributeString("PhiT", obj.PhiT.ToString());
            xml.WriteAttributeString("PhiCTied", obj.PhiCTied.ToString());
            xml.WriteAttributeString("PhiCSpiral", obj.PhiCSpiral.ToString());
            xml.WriteAttributeString("PhiV", obj.PhiV.ToString());
            xml.WriteAttributeString("PhiVSeismic", obj.PhiVSeismic.ToString());
            xml.WriteAttributeString("PhiVJoint", obj.PhiVJoint.ToString());
            xml.WriteEndElement();
            concreteCode = "ACI 318-02";
        }
Ejemplo n.º 3
0
        private void store(OleDbConnection cn, ACI318_02 obj)
        {
            string thDesign = obj.GetTHDesignName(obj.THDesign);
            //string FrameType = "\"OMF\"";
            string sql = "INSERT INTO [Preferences - Concrete Design - ACI 318-02] " +
                    "(THDesign, NumCurves, NumPoints, MinEccen, PatLLF, UFLimit, PhiT, PhiCTied, PhiCSpiral, PhiV, PhiVSeismic, PhiVJoint, SeisCat) VALUES " +
                    "(\"" + thDesign + "\", " + obj.NumCurves + ", " + obj.NumPoints + ", " + CodeYN(obj.MinEccen) + ", " + obj.PatLLF + ", " + obj.UFLimit + ", " + obj.PhiT + ", " + obj.PhiCTied + ", " + obj.PhiCSpiral + ", " + obj.PhiV + ", " + obj.PhiVSeismic + ", " + obj.PhiVJoint + ", \"" + obj.SeisCat + "\");";

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

            sql = "UPDATE [Program Control] set ConcCode=\"ACI 318-02\" WHERE 1=1;";
            new OleDbCommand(sql, cn).ExecuteNonQuery();
        }