/// <summary>
 /// WriteCE3クラスへメンバーの書き込み
 /// </summary>
 /// <param name="writeCE3">書き込み対象WriteCE3クラス</param>
 /// <param name="origin">書き込み時の原点</param>
 /// <returns>正常終了でtrue</returns>
 public override bool WrMb3Member(WriteCE3 writeCE3, Point origin)
 {
     base.WrMb3Member(writeCE3, origin);
     writeCE3.WriteNewLine();
     writeCE3.WriteRecordString("PACKAGE", packageName);
     writeCE3.WriteNewLine();
     writeCE3.WriteRecordString("REMARKS", remarksText);
     writeCE3.WriteNewLine();
     writeCE3.WriteRecordInt("ANGLEX10", AngleX10);
     writeCE3.WriteNewLine();
     writeCE3.WriteRecord("+REFNUM");
     writeCE3.WriteNewLine();
     refNum.WrMb3(writeCE3, origin);
     writeCE3.WriteRecord("-REFNUM");
     writeCE3.WriteNewLine();
     writeCE3.WriteRecord("+CONTENTS");
     writeCE3.WriteNewLine();
     if (contentsObj != null)
     {
         foreach (MbeObj obj in contentsObj)
         {
             obj.WrMb3(writeCE3, origin);
         }
     }
     writeCE3.WriteRecord("-CONTENTS");
     writeCE3.WriteNewLine();
     return(true);
 }
Example #2
0
        /// <summary>
        /// WriteCE3クラスへメンバーの書き込み
        /// </summary>
        /// <param name="writeCE3">書き込み対象WriteCE3クラス</param>
        /// <param name="origin">書き込み時の原点</param>
        /// <returns>正常終了でtrue</returns>
        public override bool WrMb3Member(WriteCE3 writeCE3, Point origin)
        {
            //保存時は互換性のためにLineStyleのBending2を使わない。
            //Bending2のラインのときは始点終点を入れ替えて保存する。

            Point pt0 = this.GetPos(0);
            Point pt1 = this.GetPos(1);

            if (lineStyle == MbeLineStyle.Bending2)
            {
                SetPos(pt1, 0);
                SetPos(pt0, 1);
            }
            base.WrMb3Member(writeCE3, origin);
            writeCE3.WriteRecordInt("WIDTH", LineWidth);

            if (lineStyle == MbeLineStyle.Straight)
            {
                writeCE3.WriteRecordString("STYLE", lineStyleName[(int)MbeLineStyle.Straight]);
            }
            else
            {
                writeCE3.WriteRecordString("STYLE", lineStyleName[(int)MbeLineStyle.Bending1]);
            }
            if (lineStyle == MbeLineStyle.Bending2)
            {
                SetPos(pt0, 0);
                SetPos(pt1, 1);
            }
            return(true);
        }
Example #3
0
 /// <summary>
 /// Mb3ファイルへメンバーの書き込み
 /// </summary>
 /// <param name="writeCE3"></param>
 /// <returns></returns>
 public virtual bool WrMb3Member(WriteCE3 writeCE3, Point origin)
 {
     writeCE3.WriteRecordString("LAYER", MbeLayer.GetLayerName(layer));
     for (int i = 0; i < posCount; i++)
     {
         writeCE3.WriteRecordInt(string.Format("XPOS{0}", i), posArray[i].X - origin.X);
         writeCE3.WriteRecordInt(string.Format("YPOS{0}", i), posArray[i].Y - origin.Y);
     }
     writeCE3.WriteRecordString("SIGNAME", signame);
     return(true);
 }
Example #4
0
 /// <summary>
 /// WriteCE3クラスへメンバーの書き込み
 /// </summary>
 /// <param name="writeCE3">書き込み対象WriteCE3クラス</param>
 /// <param name="origin">書き込み時の原点</param>
 /// <returns>正常終了でtrue</returns>
 public override bool WrMb3Member(WriteCE3 writeCE3, Point origin)
 {
     base.WrMb3Member(writeCE3, origin);
     writeCE3.WriteRecordInt("HEIGHT", Height);
     writeCE3.WriteRecordInt("WIDTH", Width);
     writeCE3.WriteRecordString("SHAPE", GetPadShapeName(shape));
     writeCE3.WriteRecordString("THMLRLF", GetThermalReliefTypeName(thermalRelief));
     writeCE3.WriteRecordString("PINNUM", PinNum);
     writeCE3.WriteRecordInt("SRMARGIN", SrMargin);
     if (no_ResistMask)
     {
         writeCE3.WriteRecordInt("NO_RM", 1);
     }
     return(true);
 }
Example #5
0
 public virtual bool WriteMb3Member(WriteCE3 writeCE3)
 {
     writeCE3.WriteRecordString("S", MbeObjPin.GetPadShapeName(shape));
     writeCE3.WriteRecordInt("W", width);
     writeCE3.WriteRecordInt("H", height);
     return(true);
 }
Example #6
0
 public override bool WriteMb3(WriteCE3 writeCE3)
 {
     writeCE3.WriteRecord("+LIB_INFO");
     writeCE3.WriteRecordString("P", libPath);
     writeCE3.WriteRecord("-LIB_INFO");
     //writeCE3.WriteNewLine();
     return(true);
 }
Example #7
0
 public virtual bool WriteMb3Member(WriteCE3 writeCE3)
 {
     writeCE3.WriteRecordInt("A", (active? 1:0));
     writeCE3.WriteRecordInt("M", (mirror ? 1 : 0));
     writeCE3.WriteRecordString("N", name);
     writeCE3.WriteRecordUlong("L", checkvalue);
     return(true);
 }