예제 #1
0
        //
        public void WriteText(List <string> text)
        {
            text.Add("$PAD");
            //Sh "1" C 1 1 0 0 0
            //Dr 0.6 0 0
            //At STD N 00E0FFFF
            //Ne 0 ""
            //Po -1 0

            text.Add(string.Format("Sh \"{0}\" {1} {2} {3} {4} {5} {6}",
                                   number, GetShape(), size.Width, size.Height, 0, 0, 0));
            text.Add(string.Format("Dr {0} {1} {2}", drill, 0, 0));
            text.Add(string.Format("At {0} {1} {2}", GetType(), "N", Layer.GetLayerBitmaskString_Legacy(_layers.ToString())));  // layer mask "00E0FFFF"
            text.Add(string.Format("Ne 0 \"\""));
            text.Add(string.Format("Po {0} {1}", position.At.X, position.At.Y));

            text.Add("$EndPAD");
        }