Exemplo n.º 1
0
 public static List<PCKStandardInfo> LoadPnc(string fileName)
 {
     List<PCKStandardInfo> list = new List<PCKStandardInfo>();
     var pncInfo = PNCHelper.LoadPnc(fileName);
     foreach (var item in pncInfo.Holes)
     {
         PCKStandardInfo pckInfo = new PCKStandardInfo();
         pckInfo.AxisType = item.AxisType;
         pckInfo.X = item.X;
         pckInfo.Y = item.Y;
         pckInfo.W = item.W;
         pckInfo.B = item.C;
         pckInfo.C = item.C;
         list.Add(pckInfo);
     }
     return list;
 }
Exemplo n.º 2
0
        public static List <PCKStandardInfo> LoadCnc(string fileName, string scriptMode)
        {
            List <PCKStandardInfo> list = new List <PCKStandardInfo>();
            var holes = PNCHelper.LoadCnc(fileName, scriptMode);

            foreach (var item in holes)
            {
                PCKStandardInfo pckInfo = new PCKStandardInfo();
                pckInfo.AxisType = item.AxisType;
                pckInfo.X        = item.X;
                pckInfo.Y        = item.Y;
                pckInfo.W        = item.W;
                pckInfo.B        = item.C;
                pckInfo.C        = item.C;
                list.Add(pckInfo);
            }
            return(list);
        }
Exemplo n.º 3
0
        private List <PCKStandardInfo> ConvertToPckStandardList(List <PCKInfo> pckList)
        {
            List <PCKStandardInfo> list = new List <PCKStandardInfo>();

            foreach (var item in pckList)
            {
                PCKStandardInfo pckInfo = new PCKStandardInfo();
                pckInfo.AxisType      = item.AxisType;
                pckInfo.X             = item.X;
                pckInfo.Y             = item.Y;
                pckInfo.W             = item.W;
                pckInfo.B             = item.B;
                pckInfo.C             = item.C;
                pckInfo.StandardValue = item.StandardValue;

                list.Add(pckInfo);
            }
            return(list);
        }
Exemplo n.º 4
0
        private List<PCKStandardInfo> ConvertToPckStandardList(List<PCKInfo> pckList)
        {
            List<PCKStandardInfo> list = new List<PCKStandardInfo>();
            foreach (var item in pckList)
            {
                PCKStandardInfo pckInfo = new PCKStandardInfo();
                pckInfo.AxisType = item.AxisType;
                pckInfo.X = item.X;
                pckInfo.Y = item.Y;
                pckInfo.W = item.W;
                pckInfo.B = item.B;
                pckInfo.C = item.C;
                pckInfo.StandardValue = item.StandardValue;

                list.Add(pckInfo);
            }
            return list;
        }