Valor NPI : ODB++(X) Output script

Version 3

    This is a simple script that will execute an ODB++(X) output.

     

    The script should be placed in the path %VALOR_DIR%\sys\scripts.

     

    It can be executed by doing the following, after starting Valor NPI:

      1) Access File->Script->Run from the Engineering Toolkit main menu.

      2) Navigate to the script (named "odbx_export.txt" unless changed by the user) and then enter the values for the Output File Path, ODB++ Job Name and ODB++ Step Name(s) (4 max., separated by a space) in the Parameters field, as shown below.

      3) You may then press Ok or Apply to execute the script.

    script_gui.JPG

     

    The script content is as follows:

         set OUTPUT_FILE_PATH = "$1"
         set JOB = "$2"
         set STEPS = "$3 $4 $5 $6"

     

         # MODE = full, fab, assy
         set MODE = full

         # LEVEL = 0, 1-4 fab, 1-5 assy
         set LEVEL = 0

         # UNITS = imperial, metric
         set UNITS = metric

     

         COM export_job_odbx,job=${JOB},path=${OUTPUT_FILE_PATH},mode=${MODE},level=${LEVEL},overwrite=yes,\  

            units=${UNITS},origin=no,use_placed_comp_only=no,steps=${STEPS},layers_mode=default,suppress=yes

     

     

    Variable descriptions:

         The OUTPUT_FILE_PATH variable determines where the output XML file will be written.

         The JOB variable is the ODB++ database name.

         The STEP variable is the ODB++ database step names, with 4 maximumallowed, separated by spaces.

         The MODE variable specifies how much data will be output. full = entire database, fab = bare board fabrication related data, assy= pcb assembly related data.

         The LEVEL variable sepcifies how much data will be output, with 0 (for full) or 1 (for fab & assy) indicating the highest amount of output and 4 (for fab) or 6 (for assy) indicating the lowest.

         The UNITS variable designates the units-of-measurement for the file, either metric or imperial (inch).