public static void writeConcreteBeamAssigments(XmlWriter xml, FrameSection sec)
{
ConcreteSectionProps concrete = sec.ConcreteProperties;
if (concrete != null && sec.ConcreteProperties is ConcreteBeamSectionProps)
{
string mat = MaterialManager.Instance.DefaultSteel.Name;
ConcreteBeamSectionProps concreteBeam = (ConcreteBeamSectionProps)concrete;
xml.WriteStartElement("SectionName");
xml.WriteAttributeString("SectionName", sec.Name);
xml.WriteAttributeString("RebarMatL", mat);
xml.WriteAttributeString("RebarMatC", mat);
xml.WriteAttributeString("TopCover", concreteBeam.ConcreteCoverTop.ToString());
xml.WriteAttributeString("BotCover", concreteBeam.ConcreteCoverBottom.ToString());
xml.WriteAttributeString("TopLeftArea", concreteBeam.RoTopLeft.ToString());
xml.WriteAttributeString("TopRghtArea", concreteBeam.RoTopRight.ToString());
xml.WriteAttributeString("BotLeftArea", concreteBeam.RoBottomLeft.ToString());
xml.WriteAttributeString("BotRghtArea", concreteBeam.RoBottomRight.ToString());
xml.WriteEndElement();
}
}