Hi,
Could someone help me out with a diesel expression (and VBA) i can use for a button macro? I want to toggle a layer on or off, nothing more than that but i don't know much diesel..
The layer is LSC-WATERMARK, so its only gonna be like:
If LSC-WATERMARK is ON then, turn OFF LSC-WATERMARK and vice versa (obvious i know)..
I've posted this in the AutoLISP forum to request the AutoLISP and Diesel versions..
Thanks in advance,
Here's how to do it VBA:
Sub TurnOffLayer()
If ThisDrawing.Layers.Item("LSC-WATERMARK").LayerOn = True Then
ThisDrawing.Layers.Item("LSC-WATERMARK").LayerOn = False
Else
ThisDrawing.Layers.Item("LSC-WATERMARK").LayerOn = True
End If
End Sub