
<header>
.FILETYPE ODBSETUP
.VERSION "2.0"
.SCHEMA_VERSION 1
</header>

'date, in the following format:
'.DATE "5/23/2019 2:57:29 PM"

'userlayers: add the following lines:
'.USERLAYERS 
' ..ANYINCLUDES YES

'then add all the userlayers, mapping "a11" (that's a-eleven, not a-L-L) to all the copper, sm, sp, and ss layers, 
'and element_t & element_b to top and bottom

<odbpp_documentation>
.ODBPP_DOCUMENTATION 
 ..ANYINCLUDES NO
.LAYERS_TO_EXPORT 
</odbpp_documentation>

'right after .LAYERS_TO_EXPORT, add the drill layer-range lines.  One for each layer range, like this:
' ..NAME "d_1_16"
'  ...INCLUDE YES

'then, the following:
<layers_to_export>
 ..NAME "rout"
  ...INCLUDE YES
 ..NAME "smt"
  ...INCLUDE YES
 ..NAME "smb"
  ...INCLUDE YES
 ..NAME "sst"
  ...INCLUDE YES
 ..NAME "ssb"
  ...INCLUDE YES
</layers_to_export>

'then, for each copper layer, like this:
' ..NAME "1"
'  ...MAPPEDTO LAYER1
'  ...INCLUDE YES
' ..NAME "2"
'  ...MAPPEDTO LAYER2
'  ...INCLUDE YES
' ..NAME "3"
'  ...MAPPEDTO LAYER3
'  ...INCLUDE YES

'and so on up to the total number of layers
'then the 2nd part of layers to export

<layers_to_export_2>
 ..NAME "ddt"
  ...INCLUDE YES
 ..NAME "assemt"
  ...INCLUDE YES
 ..NAME "assemb"
  ...INCLUDE YES
 ..NAME "spt"
  ...INCLUDE YES
 ..NAME "spb"
  ...INCLUDE YES
</layers_to_export_2>

'then, the top part of the footer:

<footer_1>
.EPLAYERS
.APLAYERS
 ..EXPORT_AP NO
.PACKAGE_OUTLINE "Assembly Outline"
.PINS_NFP_REMOVAL "Unused Pins"
.VIAS_NFP_REMOVAL "Unused Vias"
.REMOVE_EDA_NETS NO
.REMOVE_CADNET_NETLIST NO
.NEUTRALIZE_NETS NO
.UNITS ENGLISH
.ODBPP_VERSION 7.0
.READ_DRC_FEATURES YES
 ..DRCFEATURE ".drc_comp_keepout_lyr"
  ...DRCFEATURELAYER "drc_comp"
  ...PROCESSFEATURE NO
 ..DRCFEATURE ".drc_plane_keepout_lyr"
  ...DRCFEATURELAYER "drc_route"
  ...PROCESSFEATURE NO
 ..DRCFEATURE ".drc_route_keepin_lyr"
  ...DRCFEATURELAYER "drc_route"
  ...PROCESSFEATURE NO
 ..DRCFEATURE ".drc_tp_keepout_lyr"
  ...DRCFEATURELAYER "drc_tp"
  ...PROCESSFEATURE NO
 ..DRCFEATURE ".drc_trace_keepout_lyr"
  ...DRCFEATURELAYER "drc_route"
  ...PROCESSFEATURE NO
 ..DRCFEATURE ".drc_via_keepout_lyr"
  ...DRCFEATURELAYER "drc_route"
  ...PROCESSFEATURE NO
 ..DRCFEATURE ".drc_rule_area_lyr"
  ...DRCFEATURELAYER "fab_drc"
  ...PROCESSFEATURE NO
.ROUND_CORNERS YES
.IGNORE_COMPONENT_LAYOUT NO
.FLAT_RF_NET YES
.COMPRESS YES
.ODBPP_INSIDE NO
.EXPORT_IPC2581 NO
.GEN_SILK_DATA YES
.PART_NUMBER YES
.BOARD_OUTLINE YES
.NPI_NET_TYPES NO
.APPEND NO
.GEN_SEP_VAR_DATA NO
.GEN_ACT_VAR_DATA NO
</footer_1>

'then the output path and output job name
'like this:

'.OutputDirectory '"X:\\proj\\MentorXProjects\\22129718-101_rev000_BSAB_Fireball\\22129718-101_rev000_BSAB_Fireball\\_DATA_FOR_UPLOAD\\FAB_DIR_22129718-101\\"
'.OutputJobName "22129718-001_000_odb_pcb"

'then the bottom part of  the footer:

<footer_2>
.LogFilePath ".\\LogFiles"
.SchemeChanged No 
.Scheme "ODBSetup"
.SchemeLocation "Local"
</footer_2>

'that's it





