The process to select by using Sketch tools is not working in 2.3. I double checked to make sure it was not just my code by downloading a fresh set of the samples from here GitHub - Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Communit... and ran of the Feature Selection and the Map Tool Select without changing a thing and they both fail. Is there a known fix to this?
When you use the Pro sketch tools (Map Tab on the ribbon) to select on your sde database features, does that work? Is it only the custom sketch tools in samples and add-ins that are exhibiting this behavior?
I am not seeing this problem with custom sketch tools using Pro 2.3 on my system. I am able to run the Map Tool Select sample and select features with file GDB and SDE databases.
Can you please copy and paste the code for the MapToolSelect class from the Map tool select sample?
I renamed the root folders and reinstalled the software and it has helped a lot. Still a bit slow but manageable.
internal class MapToolSelect : MapTool
IsSketchTool = true;
SketchType = SketchGeometryType.Rectangle;
SketchOutputMode = SketchOutputMode.Screen;
protected override Task OnToolActivateAsync(bool active)
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry)
return ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
// Using the active map view to select
// the features that intersect the sketch geometry
I think I am narrowing it down, I went into the ArcGISPro.exe.config and changed to
<supportedRuntime version="v4.0.30319" sku=".NETFramework,Version=v4.6.1"/>
Now all the add-ins I built work great but the out of the box ones do not. I assume there is a setting in VS where I can set the framework version or write the correct one into the code somewhere? If you have any experience or knowledge in this area I would appreciate the help, I am at a loss when I have to start getting into the XML system files.