Author Topic: Track Active Drawing  (Read 4536 times)

0 Members and 1 Guest are viewing this topic.

UWPMVG

  • Mosquito
  • Posts: 17
Re: Track Active Drawing
« Reply #15 on: May 20, 2014, 03:51:38 PM »
I will keep looking for a solution for this problem. If any of you comes up with something, let me know. :-)

UWPMVG

  • Mosquito
  • Posts: 17
Re: Track Active Drawing
« Reply #16 on: May 26, 2014, 01:30:34 PM »
I found the solution with help from Kean Walmsley.

The following code works:

Code: [Select]
AddHandler AcApp.DocumentManager.DocumentActivated, AddressOf Me.DocumentManager_DocumentActivated

...

Private Sub DocumentManager_DocumentActivated(ByVal sender As Object, ByVal e As DocumentCollectionEventArgs)
        If Application.DocumentManager.MdiActiveDocument IsNot Nothing Then
            MsgBox("Active drawing has changed!")
        End If
End Sub