public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyLoad); ID = elem.GetAttribute(XEP_EmdNames.s_KeyLoadID).GetIntValue(); Type = elem.GetAttribute(XEP_EmdNames.s_KeyLoadType).GetIntValue(); if (elem.AttHelp.Count > 2) { LimitState = elem.GetAttribute(XEP_EmdNames.s_KeyLoadLimitState).GetIntValue(); CombiKey = elem.GetAttribute(XEP_EmdNames.s_KeyLoadCombiKey).Value; CombiType = elem.GetAttribute(XEP_EmdNames.s_KeyLoadCombiType).GetIntValue(); } }
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(); }
public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyStirrupZone); Clear(); foreach (var item in elem.Elements) { if (item.Name == XEP_EmdNames.s_KeyStirrup) { IXEP_EmdStirrupData stirrupData = XEP_EmdFactrory.CreateEmdStirrupData(); stirrupData.CreateFromEmdElement(item); Stirrups.Add(stirrupData); } else if (item.Name == XEP_EmdNames.s_KeyStirrupZoneShape) { ZoneShape.CreateFromEmdElement(item); } else { throw new InvalidOperationException("Invalid element in stirrup zone, element name: " + item.Name); } } ZoneID = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZoneID).GetIntValue(); Material = elem.GetAttribute(XEP_EmdFileConstants.s_RefAttributEmdTag + XEP_EmdNames.s_KeyStirrupZoneMaterial).Value; ZoneBeg = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZoneZoneBeg).GetDoubleValue(); ZoneEnd = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZoneZoneEnd).GetDoubleValue(); IsAutoCutsCalc = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZoneIsAutoCutsCalc).GetIntValue(); NumCutUser = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZoneNumCutUser).GetIntValue(); Position = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZonePosition).Value; Coeff = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupZoneCoef).GetDoubleValue(); }
static IXEP_EmdElement FindReinforcementElement(IXEP_EmdElement elem4Work, int sectionID) { IXEP_EmdElement reinfElem = elem4Work; if (elem4Work.Name == XEP_EmdFileConstants.s_FakeRootElementName) { // more sections List <IXEP_EmdElement> sections = XEP_BaseEmdFile.GetElements(elem4Work, XEP_EmdNames.s_KeySection); IXEP_EmdElement needSection = sections.Where(item => item.GetAttribute(XEP_EmdNames.s_KeyID).GetIntValue() == sectionID).First(); IXEP_EmdAttribute attID = needSection.GetAttribute(XEP_EmdNames.s_KeyID); if (attID == null) { throw new InvalidOperationException("Section in reinforcement file does not have attribute: " + XEP_EmdNames.s_KeyID); } if (attID.Value != sectionID.ToString()) { throw new InvalidOperationException("Section ID attribute is not equals section ID inputed, actual:" + attID.Value + " wanted: " + sectionID.ToString()); } reinfElem = XEP_BaseEmdFile.GetElement(needSection, XEP_EmdNames.s_KeyReinforcement); } if (reinfElem == null) { throw new InvalidOperationException("There is not reinforcemnt element for sectionID: " + sectionID.ToString()); } XEP_BaseEmdFile.CheckName(reinfElem.Name, XEP_EmdNames.s_KeyReinforcement); return(reinfElem); }
public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyInternalForces); ID = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesID).GetIntValue(); N = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesN).GetDoubleValue(); My = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesMy).GetDoubleValue(); Mz = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesMz).GetDoubleValue(); Mx = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesMx).GetDoubleValue(); Vy = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesVy).GetDoubleValue(); Vz = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesVz).GetDoubleValue(); IsCritical = elem.GetAttribute(XEP_EmdNames.s_KeyInternalForcesIsCritical).GetIntValue(); }
public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyBar); ComponentID = elem.GetAttribute(XEP_EmdNames.s_KeyBarComponentID).GetIntValue(); X = elem.GetAttribute(XEP_EmdNames.s_KeyBarX).GetDoubleValue(); Y = elem.GetAttribute(XEP_EmdNames.s_KeyBarY).GetDoubleValue(); D = elem.GetAttribute(XEP_EmdNames.s_KeyBarD).GetDoubleValue(); RefMaterial = elem.GetAttribute(XEP_EmdFileConstants.s_RefAttributEmdTag + XEP_EmdNames.s_KeyBarMaterial).Value; IsActive = elem.GetAttribute(XEP_EmdNames.s_KeyBarIsActive).GetIntValue(); IsDetailing = elem.GetAttribute(XEP_EmdNames.s_KeyBarIsDetailing).GetIntValue(); }
public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyStirrup); DX = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupDX).GetDoubleValue(); D = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupD).GetDoubleValue(); Multiply = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupMultiply).GetIntValue(); DsL = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupDsL).GetDoubleValue(); DsR = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupDsR).GetDoubleValue(); Dss = elem.GetAttribute(XEP_EmdNames.s_KeyStirrupDss).GetDoubleValue(); }
public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyPrincipal); y = elem.GetAttribute(XEP_EmdNames.s_KeysmallY).GetDoubleValue(); z = elem.GetAttribute(XEP_EmdNames.s_KeysmallZ).GetDoubleValue(); }
public double GetMemberLength() { IXEP_EmdElement domElem = GetElement(DocumentRoot, XEP_EmdNames.s_KeyLength); return(domElem.GetAttribute(XEP_EmdFileConstants.s_NoNameAttribut).GetDoubleValue()); }
public void CreateFromEmdElement(IXEP_EmdElement elem) { XEP_BaseEmdFile.CheckName(elem.Name, XEP_EmdNames.s_KeyPoint); X = elem.GetAttribute(XEP_EmdNames.s_KeyPointX).GetDoubleValue(); Y = elem.GetAttribute(XEP_EmdNames.s_KeyPointY).GetDoubleValue(); }
public int GetFormCode() { IXEP_EmdElement domElem = GetElement(DocumentRoot, XEP_EmdNames.s_KeyGeometry); return(domElem.GetAttribute(XEP_EmdNames.s_KeyFormCode).GetIntValue()); }