kevin

About

Username
kevin
Joined
Visits
22
Last Active
Roles
Member

Comments

  • My code is: #load specific layout filewin=pa.Application.instance().main_window()win.load_layout(GDS_FILE,0)view=win.current_view()#load another filef=json.load(open(FILE,'r')) and I use the shell script like" klayout -z -r myscript.lym -rd …
  • @Matthias Thanks!I tried ur suggestions and it works with some my-defined vars. Furthermore, I tried to use a variable like 'filepath=/home/myhome/sometxt.txt'.And in my klayout macro, There are codes read from such file stream. But I got an error…
  • @Matthias Thanks! Another question, Can macro inside the klayout use pickle or json? I tried to use 'klayout -z -r my_script.py args', and a json file path is in the args,which I wrote a json.load(json_file) in my_script, but it shows "ERROR: S…
  • Hi, @EugeneZlenko,A further question: how to save the current DBox's layout View as image(Only the content inside the DBox in the current layout view)