Hi David
Thanks
I am sorry for the maybe stupid question (this is first time for me working with the klayout scripting)
Trying to run the script you gave me,i recieve an error saying "undefined method 'layer' for the layout"
What should i do?
Thanks again (i know this is very basic questions)
shirly
Comments
Yes. Open a new layout with a new layer 1, and run this:
Thanks
I am sorry for the maybe stupid question (this is first time for me working with the klayout scripting)
Trying to run the script you gave me,i recieve an error saying "undefined method 'layer' for the layout"
What should i do?
Thanks again (i know this is very basic questions)
shirly
Probably you are running an old version of KL. The Layout.layer method was introduced in version 0.23. Did that fix it?
There is a way to do the same thing on pre-0.23, but I recommend just upgrading.
No question is silly! Here to help! I think you'll find KL scripting to be extremely powerful tool! For me it is the #1 attraction of KL.
I tested your script, it's working for me.
I don't know that we can do that in KL.
Thank you