you could write a.py file like
import pya
layout = pya.Layout()
layout.read('c:\Training\123.gds.gz')
for ly_id in layout.layer_indices():
ly_info = layout.get_info(ly_id)
print(ly_info.to_s())
then using klayout to load a.py like,
kla…
Hi Matthias,
I add patch to output clip results as order. when no data in clip bbox, it will return cell idx 0.
Maybe you could add an option in next release.
diff --git a/src/dbClip.cc b/src/dbClip.ccindex 55ab499..3f8aaa5 100644--- a/src/dbClip.…
Hi Matthias,
You are right, clip function use STL map.
However, there are two problems.
1. the output results looks sorted the bbox of cut results, not the input bboxes.
2. if input bboxes cut nothing, no result will output. Then the count of output…
Thanks Matthias,
I add a function in src/gsiDeclRdb.cc
const std::string &database_tag_name(const rdb::Database *db, rdb::id_type tag)
{
return db->tags ().tag (tag).name ();
}
Now I could get tag name for RVE db. Maybe you could conside…
Hi Matthias,
Thanks for your reply.
We use old linux (centos 4.6) with file version 4.10, which could not detect OASIS.
However, I add API for klayout to report file type before reading the stream.
extern std::string stream_format(const std::str…