<?php

$pcad_pcb  = "";

// sets
$pcad_pcb .= "  (layerSets \r\n";
$pcad_pcb .= "    (layerSet \"All Layers\" \"1\" \"1\" \"2\" \"3\" \"4\" \"5\" \"6\" \"7\" \"8\" \"9\" \"10\" \"11\")\r\n";
$pcad_pcb .= "    (layerSet \"Signal Layers\" \"1\" \"1\" \"2\")\r\n";
$pcad_pcb .= "    (layerSet \"Plane Layers\" \"-1\")\r\n";
$pcad_pcb .= "    (layerSet \"Nonsignal Layers\" \"6\" \"6\" \"3\" \"4\" \"5\" \"7\" \"8\" \"9\" \"10\" \"11\")\r\n";
$pcad_pcb .= "    (layerSet \"TOP\" \"1\" \"1\" \"6\" \"3\")\r\n";
$pcad_pcb .= "    (layerSet \"BOT\" \"2\" \"2\" \"3\" \"7\")\r\n";
$pcad_pcb .= "  )\r\n";

// stackup
$pcad_pcb .= "  (layersStackup \r\n";
$pcad_pcb .= "    (layerStackupData \r\n";
$pcad_pcb .= "      (layerStackupName \"Top\")\r\n";
$pcad_pcb .= "      (layerStackupMaterial \"\")\r\n";
$pcad_pcb .= "      (layerStackupThickness \"\")\r\n";
$pcad_pcb .= "      (layerStackupDielectricConstant \"\")\r\n";
$pcad_pcb .= "      (layerStackupDisplay True)\r\n";
$pcad_pcb .= "    )\r\n";
$pcad_pcb .= "    (layerStackupData \r\n";
$pcad_pcb .= "      (layerStackupName \"Bottom\")\r\n";
$pcad_pcb .= "      (layerStackupMaterial \"\")\r\n";
$pcad_pcb .= "      (layerStackupThickness \"\")\r\n";
$pcad_pcb .= "      (layerStackupDielectricConstant \"\")\r\n";
$pcad_pcb .= "      (layerStackupDisplay True)\r\n";
$pcad_pcb .= "    )\r\n";
$pcad_pcb .= "  )\r\n";

file_put_contents($out_file, $pcad_pcb, FILE_APPEND | LOCK_EX);


