/// <summary> /// Gets a list of all layers for the provided board file. /// </summary> /// <param name="Board">Current board</param> /// <returns>List of layers.</returns> public static List <TV6_Layer> GetV6Layers(IPCB_Board Board) { List <TV6_Layer> tempList = new List <TV6_Layer>(); IPCB_LayerIterator LayerIterator = Board.LayerIterator(); //LayerIterator.AddFilter_ElectricalLayers(); LayerIterator.First(); TV6_Layer tmpLayer; do { tmpLayer = (TV6_Layer)LayerIterator.Layer().GetDEBUGV6LAYER(); tempList.Add(tmpLayer); } while (LayerIterator.Next()); return(tempList); }
/// <summary> /// Gets a list of signal layers for the provided board file. /// </summary> /// <param name="Board">Current board</param> /// <returns>List of layers.</returns> public static List <TV6_Layer> GetV6SigLayers(IPCB_Board Board) { List <TV6_Layer> tempList = new List <TV6_Layer>(); IPCB_LayerIterator LayerIterator = Board.LayerIterator(); LayerIterator.AddFilter_SignalLayers(); LayerIterator.First(); TV6_Layer tmpLayer; //tmpLayer = new V7_Layer( LayerIterator.Layer().Data); do { tmpLayer = (TV6_Layer)LayerIterator.Layer().GetDEBUGV6LAYER(); //if (EDP.Utils.LayerToString(tmpLayer).Contains("Mid")) tempList.Add(tmpLayer); } while (LayerIterator.Next()); return(tempList); }
/// <summary> /// Gets a list of electrical layers for the provided board file. /// </summary> /// <param name="Board">Current board</param> /// <returns>List of layers.</returns> public static List <V7_Layer> GetV7ElectLayers(IPCB_Board Board) { List <V7_Layer> tempList = new List <V7_Layer>(); IPCB_LayerIterator LayerIterator = Board.LayerIterator(); LayerIterator.AddFilter_ElectricalLayers(); LayerIterator.First(); V7_Layer tmpLayer; //tmpLayer = new V7_Layer( LayerIterator.Layer().Data); do { tmpLayer = new V7_Layer(LayerIterator.Layer().Data); //if (EDP.Utils.LayerToString(tmpLayer).Contains("Mid")) tempList.Add(tmpLayer); } while (LayerIterator.Next()); return(tempList); }