If TypeOf My.ArcMap.Document.ActiveView Is IPageLayout Then MsgBox("Switch to Data View to run the tool") Return End If
Protected Overloads Overrides Sub OnUpdate() ' Disabled if in Layer View If TypeOf My.ArcMap.Document.ActiveView Is IPageLayout Then Me.Enabled = False ElseIf TypeOf My.ArcMap.Document.ActiveView Is IMap Then Me.Enabled = True End If End Sub
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.