AcadLayerStateManager
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
AcadLayerStateManager

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
jkappa



Joined: 11 Jul 2005
Posts: 2

Posted: Mon Jul 11, 2005 8:29 pm    Post subject: AcadLayerStateManager Reply with quote

Hi there,
I have a totally convoluted drawing that I inherited (1000+ layers) and I need a little utility to switch between layer states.

I have my userform with 3 buttons, and I want button1 one to restore the GEO layer state, button2 the PVGRDR state, and button3 the UTILS state.

So here goes my program, can you help me fix it?
I'm quite pathetic at programming, so please don't laugh:

UserForm1

Private Sub CommandButton1_Click()
Module1.LAYERRESTORE
End Sub

Private Sub CommandButton2_Click()
Module1.LAYERRESTORE
End Sub

Private Sub CommandButton3_Click()
Module1.LAYERRESTORE
End Sub

Module1

Sub LAYERRESTORE()

Dim LS As AcadLayerStateManager
Dim State As String

LS.Restore

End Sub

And that's as far as I got--told ya I'm quite pathetic.
TIA

JK
Ps: I would also like to embed it to the drawing so other people can use it without having to vbaload it or vbarun it.

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB