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
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.