For details see here: https://www.klayout.de/forum/discussion/1889/copy-shapes-method#latest
For details see here: https://www.klayout.de/forum/discussion/1889/copy-shapes-method#latest