checking if layer is on/off

checking if layer is on/off

kwhung2010
Participant Participant
988 Views
2 Replies
Message 1 of 3

checking if layer is on/off

kwhung2010
Participant
Participant

Hi,

I would like to export coordinates of autocad objects to CSV file by VBA, however, I just want to export the objects which layer is on. I appreciate it, if you can help, how to check the object's layer whether is on or off. Thank you!  

0 Likes
Accepted solutions (1)
989 Views
2 Replies
  • VBA
Replies (2)
Message 2 of 3

grobnik
Collaborator
Collaborator
Accepted solution

Here a simple code:

 If thisDrawing.Layers("Walls").LayerOn = True then......

0 Likes
Message 3 of 3

kwhung2010
Participant
Participant

Thanks for your help!

0 Likes