<ArcMap> <Commands> <Tool id="YOUR-TOOL-ID" onDemand="false" class="YOUR-CLASS" message="..." caption="..." tip="..." category="YOUR-CATEGORY" image="..." /> </Commands>
I am doing the same task. My tool still not working. What do you mean with "OnDemand tag in Config.esriaddinx file"?
Protected Overrides Sub OnUpdate() 'Enabled = My.ArcMap.Application IsNot Nothing If TypeOf pMxDoc.ActiveView Is ESRI.ArcGIS.Carto.IPageLayout Then Enabled = False ElseIf TypeOf pMxDoc.ActiveView Is ESRI.ArcGIS.Carto.IMap Then 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.