Пример #1
0
 public void CreateFromEmdElement(IXEP_EmdElement elem)
 {
     XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyShape);
     Points.Clear();
     foreach (var item in elem.Elements)
     {
         IXEP_EmdPointData pointData = XEP_EmdFactrory.CreateEmdPointData();
         pointData.CreateFromEmdElement(item);
         Points.Add(pointData);
     }
 }
 public void CreateFromEmdElement(IXEP_EmdElement elem)
 {
     XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyStirrupBranch);
     Points.Clear();
     foreach (var item in elem.Elements)
     {
         IXEP_EmdPointData pointData = XEP_EmdFactrory.CreateEmdPointData();
         pointData.CreateFromEmdElement(item);
         Points.Add(pointData);
     }
     IsActive    = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupIsActive).GetIntValue();
     IsDetailing = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupIsDetailing).GetIntValue();
     IsTorsion   = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupIsTorsion).GetIntValue();
 }