Hi can any one show some light on how to perform the solution. For example if i have "M1 drawing layer" visible in LSW , then if i press some bindkey the M1 dummy layer should get vissible. I have tried some code but it isnt working. Copied for reference below
for(i 1 10
x=leIsLayerVisible( list("layer" "drawing") )
if( x == "t" then (
hiSetBindKey("Layout" "Ctrl<Key>8" "showDummySet() ")
I think you need to use leSetLayerVisible instead of leSetEntryLayer, you might want to give that a try.
I was getting this error for both leSetLayerVisible & leSetEntryLayer as
*WARNING* (TECH-2000192): leIsLayerVisible: Invalid layer/purpose - ("layer" "drawing").
I am not able to set the layer as per my wish. So either i have to use a "when" and make the code huge or any other option to sort this out.
You have quotes around "layer" which means it will be treated as a literal string, rather than the variable you intended. Take these quotes away and you may get it working. (I have not looked in detail at this code, I just noticied this bit).
Thanks a lot Lawrence, the code is working fine .