Index: PCBWay_Api2.xml =================================================================== --- PCBWay_Api2.xml (revision 36883) +++ PCBWay_Api2.xml (revision 36884) @@ -1,6 +1,6 @@ - + @@ -168,9 +168,152 @@ No - + + + 3.2)) + error(Thickness, "4-layer FR4 board must be between 0.4 and 3.2 in thickness"); + } + if (int($boardLayer) == 6) { + if ((float($Thickness) < 0.8) || (float($Thickness) > 3.2)) + error(Thickness, "6-layer FR4 board must be between 0.8 and 3.2 in thickness"); + } + if (int($boardLayer) == 8) { + if ((float($Thickness) < 1.0) || (float($Thickness) > 3.2)) + error(Thickness, "8-layer FR4 board must be between 1.0 and 3.2 in thickness"); + } + if (int($boardLayer) == 10) { + if ((float($Thickness) < 1.2) || (float($Thickness) > 3.2)) + error(Thickness, "10-layer FR4 board must be between 1.2 and 3.2 in thickness"); + } + if (int($boardLayer) == 12) { + if ((float($Thickness) < 1.6) || (float($Thickness) > 3.2)) + error(Thickness, "12-layer FR4 board must be between 1.6 and 3.2 in thickness"); + } + if (int($boardLayer) == 14) { + if ((float($Thickness) < 2.0) || (float($Thickness) > 3.2)) + error(Thickness, "14-layer FR4 board must be between 2.0 and 3.2 in thickness"); + } + if ((float($MinHoleSize) < 0.15) || (float($MinHoleSize) > 0.3)) { + error(MinHoleSize, "Mininum hole size on FR-4 must be between 0.15 and 0.3"); + } + if ((int($MinTrackSpacing) == 3) || (int($MinTrackSpacing) == 4) || (int($MinTrackSpacing) == 5)) { + if (int($FinishedCopper) != 1) + error(FinishedCopper, "FR4 board with 3/3 or 4/4 or 5/5 spacing must have finished copper 1 oz Cu"); + } + if (int($MinTrackSpacing) == 6) { + if ((int($FinishedCopper) != 1) && (int($FinishedCopper) != 2)) + error(FinishedCopper, "FR4 board with 6/6 spacing must have finished copper 1 or 2 oz Cu"); + } + if (int($MinTrackSpacing) == 8) { + if ((int($FinishedCopper) < 1) && (int($FinishedCopper) > 13)) + error(FinishedCopper, "FR4 board with 8/8 spacing must have finished copper between 1 and 13 oz Cu"); + } + } + + if ($Silkscreen == "Black") { + if (($SolderMask == "Red") || ($SolderMask == "Blue") || ($SolderMask == "Black") || ($SolderMask == "Purple") || ($SolderMask == "Matt black") || ($SolderMask == "Matt green")) + error(Silkscreen, "Invalid SilkScreen/soldermask color combination with. Please choose White for SilkScreen!"); + } + if ($Silkscreen == "White") { + if ($SolderMask == "White") + error(Silkscreen, "Invalid SilkScreen/soldermask color combination with. Please choose Black for SilkScreen!"); + } + if (float($Thickness) < 0.6) { + if (($SurfaceFinish == "HASL with lead") || ($SurfaceFinish == "HASL lead free")) + error(Thickness, "Board must be at least 0.6mm thick for HASL finish. Select a thicker board or a different finish!"); + } + ]]> + + +