示例#1
0
def run_script(file_name, script_name):
    ret = eagle_util_funcs.run_eagle([
        file_name,
        '-S' + script_name,
    ])

    if ret != 0:
        print("Eagle returned error!")
        sys.exit(ret)
示例#2
0
def run_script(file_name, script_name):
    ret = eagle_util_funcs.run_eagle([
        file_name,
        '-S' + script_name,
        ]
        )

    if ret != 0:
        print("Eagle returned error!")
        sys.exit(ret)
示例#3
0
def generate_drill(brdFile, outFile, layers):
    ret = eagle_util_funcs.run_eagle([
        '-X',  # Run the command line CAM processor
        '-N',  # No output messages
        '-dEXCELLON',  # Output in gerber format
        '-o' + outFile,  # Output path
        brdFile,  # Input board
    ] + layers  # Layers to process
                                     )

    if ret != 0:
        print("Eagle returned error!")
        sys.exit(ret)
示例#4
0
def generate_drill(brdFile, outFile, layers):
    ret = eagle_util_funcs.run_eagle([
        '-X',               # Run the command line CAM processor
        '-N',               # No output messages
        '-dEXCELLON',       # Output in gerber format
        '-o' + outFile,     # Output path
        brdFile,            # Input board
        ] + layers          # Layers to process
        )

    if ret != 0:
        print("Eagle returned error!")
        sys.exit(ret)
示例#5
0
def run_eagle_bom_ulp(infile, outfile, ulpfile):
    eagle_util_funcs.run_eagle([
        '-C',
        'run %s %s; quit' % (ulpfile, outfile),
        infile,
    ])
示例#6
0
def run_eagle_bom_ulp(infile, outfile, ulpfile):
    eagle_util_funcs.run_eagle([
        '-C', 'run %s %s; quit' % (ulpfile, outfile),
        infile,
        ])