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
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.