Converting Oasis to GDS through commandline or scripting

edited November 2015 in General
I have a need to convert a oasis file to a gds file through either a command line app or a scripting call.Is it possible to somehow do this through Klayout in a commmandline mode

Comments

  • edited November -1

    Download TRT, install it, and look in TRT > File actions > Batch convert file types.

    You will probably want to pull out just the code you need to make your own custom .rb file, and also read up on how to run from command line

    Please post your completed script here when done, to help others with the same question.

    Thanks,

    David

  • edited November 2015

    klayout -rd input=$1 -rd output=$2 -r ./inout.rb -zz

    opt = RBA::SaveLayoutOptions::new
    opt.set_format_from_filename($output)
    opt.oasis_substitution_char = ""
    
    ly = RBA::Layout::new
    ly.read($input)
    ly.write($output, opt)
    
Sign In or Register to comment.