コード例 #1
0
ファイル: XEP_EmdBarData.cs プロジェクト: Lebda/EmdConversion
 public override string ToString()
 {
     return
         ("ComponentID: " + ComponentID.ToString() + "|" +
          "X: " + X.ToString() + "|" +
          "Y: " + Y.ToString() + "|" +
          "D: " + D.ToString() + "|" +
          "RefMaterial: " + RefMaterial + "|" +
          "IsActive: " + IsActive.ToString() + "|" +
          "IsDetailing: " + IsDetailing.ToString());
 }
コード例 #2
0
        public IXEP_EmdElement CreateEmdElement()
        {
            IXEP_EmdElement elem = XEP_EmdFactrory.CreateEmdElement();

            elem.Name = XEP_EmdNames.s_KeyStirrupBranch;
            foreach (var item in Points)
            {
                elem.Elements.Add(item.CreateEmdElement());
            }
            elem.AddAttribute(XEP_EmdFactrory.CreateEmdAttribute(XEP_EmdNames.s_KeyStirrupIsActive, IsActive.ToString()));
            elem.AddAttribute(XEP_EmdFactrory.CreateEmdAttribute(XEP_EmdNames.s_KeyStirrupIsDetailing, IsDetailing.ToString()));
            elem.AddAttribute(XEP_EmdFactrory.CreateEmdAttribute(XEP_EmdNames.s_KeyStirrupIsTorsion, IsTorsion.ToString()));
            return(elem);
        }