Canguro.Model.Serializer.Deserializer.readLinePointForces C# (CSharp) Method

readLinePointForces() private method

private readLinePointForces ( XmlNode node ) : void
node XmlNode
return void
        private void readLinePointForces(XmlNode node)
        {
            uint id = uint.Parse(readAttribute(node, "Frame", "0"));
            string lcName = readAttribute(node, "LoadCase", "").Trim();
            lcName = (lcName.Length > 0) ? lcName : Culture.Get("Case");
            LoadCase lCase = model.LoadCases[lcName];
            LineElement obj = model.LineList[id];
            if (obj != null && lCase != null)
            {
                AssignedLoads loads = obj.Loads;
                ConcentratedSpanLoad load = new ConcentratedSpanLoad();
                load.Type = (LineLoad.LoadType)Enum.Parse(typeof(LineLoad.LoadType), readAttribute(node, "Type", load.Type.ToString()));
                string coordSys = readAttribute(node, "CoordSys", "GLOBAL");
                string dir = readAttribute(node, "Dir", load.Direction.ToString());
                load.Direction = GetLoadDirection(coordSys, dir);
                load.D = float.Parse(readAttribute(node, "RelDist", load.D.ToString()));
                load.L = float.Parse(readAttribute(node, "Force", load.LoadInt.ToString()));
                loads.Add(load, lCase);
            }
        }
Deserializer