private void writeStaticCase(XmlWriter xml, AnalysisCase aCase)
{
AnalysisCaseProps props = aCase.Properties;
if (props is StaticCaseProps)
{
StaticCaseProps scprops = (StaticCaseProps)props;
foreach (StaticCaseFactor factor in scprops.Loads)
{
string lType, lName, sFact;
AnalysisCaseAppliedLoad appLoad = factor.AppliedLoad;
if (appLoad is AccelLoad)
{
lType = "Accel load";
lName = ((AccelLoad)appLoad).Value.ToString();
sFact = "1.0";
}
else
{
lType = "Load case";
lName = ((LoadCase)appLoad).Name;
sFact = factor.Factor.ToString();
}
xml.WriteStartElement("Case");
xml.WriteAttributeString("Case", aCase.Name);
xml.WriteAttributeString("LoadType", lType);
xml.WriteAttributeString("LoadName", lName);
xml.WriteAttributeString("LoadSF", sFact);
xml.WriteEndElement();
}
}
}