Hi, I have the code below. I am trying to incorporate all layer entries for M1 in the pallette into a list, however in many cases there are alot of layer derivatives for M1 (drawing 1/2/3 etc), thus alot of code editing. The question I have is is it possible to do something like "list("M1" "*")" instead which would cover all 9 M1 derivatives in this case into one line? Clearly this is not the correct syntax, but I'm assuming this can be done somehow, can anyone advise how this could be done? As in many cases the amount of layer derivatives increases dramatically, much more than this simple example. Thanks, Brian. ;Enable met1 procedure(BsEnableMetal1() let( (metals cv techFile lswLayerList) metals = list("M1" "drawing9") list("M1" "drawing8") list("M1" "drawing7") list("M1" "drawing6") list("M1" "drawing5") list("M1" "drawing4") list("M1" "drawing3") list("M1" "drawing2") list("M1" "drawing1") list("M1" "drawing") ) cv=geGetEditCellView() techFile = techGetTechFile(cv) lswLayerList = leGetValidLayerList(techFile) when(member('("M1" "drawing") lswLayerList) leSetEntryLayer( '("M1" "drawing")) printf("M1 only") ) leSetAllLayerVisible(nil) ;for each layer-purpose pair in metals, check if this is in use in the LSW, if so set invisible, if not do nothing foreach( lpp metals when(member(lpp lswLayerList) leSetLayerVisible(lpp t) ) ) hiRedraw() ));let;procedure hiSetBindKey("Layout" "Alt 1" "BsEnableMetal1()")
↧