Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

RE: layout object purpose number directly?

$
0
0
Thanks. I figured out a solution which I'm adding in case others find this thread in a search (or I find it in a few years). 1) As Andrew mentioned, "techGetPurposeNum" is what should have been in the original post, not "techGetPurposeName", the original was a typo. 2) shape~>lpp will return strings if the layer number and purpose numbers are defined in the tech file and numbers otherwise. Same for shape~>purpose So I can do something like this: purpose_num = if(stringp(shape~>purpose) techGetPurposeNum(tech shape~>purpose) shape~>purpose) 3) It appears that when setting ~>lpp I can use strings *or* numbers. So for example (using made up numbers and names) either of these will work. shape~>lpp = list(50 -1) shape~>lpp = list("METAL1" "drawing") And assuming layer 50 is METAL1, purpose -1 is drawing, if I set via numbers, and then access shape~>lpp I'll see the strings. That helps in terms of removing one additional layer of mapping.

Viewing all articles
Browse latest Browse all 33813

Trending Articles