How to run script with layer_proc.rbm from the command line

edited July 2015 in General
I would like to run a script for layer processing with the layer_proc.rbm through the command line in the non-GUI mode using the -zz option. Is this possible and what is the syntax?

Comments

  • edited November -1

    Hi WaveGuy,

    Since version 0.23 there is a much more powerful framework integrated into KLayout (the DRC framework). The functionality is pretty similar, so it should be possible to rewrite layer_proc scripts to DRC scripts. For a description of DRC scripts see http://klayout.de/doc/manual/index.html.

    You can run DRC scripts with extension ".drc" from the command line using to notation:

    klayout -b -r myscript.drc
    

    (-b is equivalent to -zz, but disables other options too).

    Here is a simple example for a DRC script:

    # specifies input (file, top cell)
    source("input.gds", "TOP")
    
    # specifies output
    target("out.gds")
    
    # computes intersection of layer 2 and 3 and outputs the results to layer 100
    res = input(2, 0) & input(3, 0)
    res.output(100, 0)
    

    Matthias

  • edited November -1
    Great, this works! Thank you!
Sign In or Register to comment.