private void readSpringAssignments(XmlNode node)
{
uint id = uint.Parse(readAttribute(node, "Frame", "0"));
LineElement obj = model.LineList[id];
if (obj != null)
{
JointDOF dofi = obj.DoFI;
JointDOF dofj = obj.DoFJ;
string[] str = new string[] { "PI", "V2I", "V3I", "TI", "M2I", "M3I", "PJ", "V2J", "V3J", "TJ", "M2J", "M3J" };
// xml.WriteStartElement("Frame");
float[] dofiValues = new float[6];
float[] dofjValues = new float[6];
string val;
for (int i = 0; i < 6; i++)
if (!(val = readAttribute(node, str[i], "0")).Equals("0"))
dofiValues[i] = float.Parse(val);
dofi.SpringValues = dofiValues;
obj.DoFI = dofi;
for (int i = 0; i < 6; i++)
if (!(val = readAttribute(node, str[i + 6], "0")).Equals("0"))
dofjValues[i] = float.Parse(val);
dofj.SpringValues = dofjValues;
obj.DoFJ = dofj;
}
}