I'd like to be able to generate a command line dieplot with only certain layers visible. If I already have my cell view open in a running cadence session I can do something like: ;; Set only METAL1 and 2 to be visible leSetAllLayerValid( t ) leSetEntryLayer( '("METAL1" "drawing") ) leSetAllLayerVisible( nil ) foreach( layP list( `("METAL1" "drawing") `("METAL2" "drawing") ) leSetLayerVisible( layP t ) leSetLayerSelectable( layP t ) ) ; ** foreach layP ** hiRedraw() ;; plot using a template I created earlier lePlot( "mytemplate.il") the problem is when I want to run this skill code via '-replay' on the command line. the LSW window isn't up so there is no current techfile in it and the code which makes layers visible or invisible fails. Surely there is a simply way but I can't seem to find the missing link. Thanks -Dan