I've created a ArcGIS Pro Map Tool (Add-In) and when I activate it the first time in a session, it takes 15+ seconds before it becomes active. Is this normal?
Once the tool has been activated in a session, the next time it is activates immediately.
Any response?
Hi. Just saw this thread and I would say that most of my tools definitely have a delay the first time you run them too. I create all mine in Visual Studio (C#). If there is anything to try to help improve the performance of that 'first click', I'd be interested too.
Thanks,
Let me check with product development, i will get back to you about this.
Thanks for responding. I went back and created a vanilla ArcPro Project and a vanilla Add-In with a single Map Tool (no further coding). The tool activates right away. If I add feature class layers to the vanilla project (SQL Server SDE/AD Security through VPN), save and reopen again, the activation takes 15+ secs. Remove the layers and the tool activates right away. Is the "map tool" checking the connections or opening an edit session or ? And if so, is there a way to prevent that behavior?
This is not normal. Usually, at least in my experience, Map tools activate with no noticeable delay. There are other issues that can cause a delay in activation. First ArcGIS Pro is using JIT (Just In Time) loading of your add-in (see https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#jit-loading ) which can cause a delay if your add-in takes a long time to load and/or initialize. Secondly, any activity in the mapview can cause a map tool's activation delay as well, so i would also watch for any map activities going on in the background.
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.