|
POST
|
Hallo Karen, I will setup a test system with German language and region and try to reproduce your issue. Can you tell me the projections that you are using for your geometries (both the feature class that you are modifying and the feature class from where you copy the data)? Or maybe you can attach a sample dataset to your reply. Wolf
... View more
08-06-2021
06:18 AM
|
0
|
0
|
4133
|
|
POST
|
You can call QueuedTask.Run anywhere. Putting business logic into the Module class makes sense if you need access to your logic from various tools and buttons from within your add-in. Also note that you can access your Module class (which is a singleton) from any other add-in or managed configuration through FrameworkApplication.FindModule("MyAddIn_Module"). In your business logic make sure that you don't 'nest' calls to QueuedTask.Run, meaning that you should not call a function that calls QueuedTask.Run from within the context of another QueuedTask.Run action. If you write re-usable functionality that is calling Pro API methods that require to run from within the context of QueuedTask.Run make sure to put the following comment in your summary description of your method: This method must be called on the MCT. The Pro API is using the same pattern for methods that need to run from the MCT.
... View more
08-04-2021
01:48 PM
|
1
|
0
|
2733
|
|
POST
|
You can get the signed in user name for the current active portal, but only when the user signed in. QueuedTask.Run(() => {
var portal = ArcGISPortalManager.Current.GetActivePortal();
if (portal != null) {
// make sure is signed in
var IsSignedOn = portal.IsSignedOn();
if (!IsSignedOn) portal.SignIn();
var signOnUserName = portal.GetSignOnUsername();
// ...
}
});
... View more
08-04-2021
12:05 PM
|
1
|
0
|
2767
|
|
POST
|
The Geoprocessing tool's dockpane is using a third party control(s) for its user interface including the progress bar. Unfortunately this control is not available through the Pro SDK's API. You can however, style a WPF Progressbar control to match the Geoprocessing's progress bar. The Overlay3D community sample is using a progress bar on a dockpane: arcgis-pro-sdk-community-samples/Map-Exploration/Overlay3D at master · Esri/arcgis-pro-sdk-community-samples (github.com). As with all WPF controls you have to make sure that you update any WPF properties only on the GUI thread. To show progress from a background or worker thread (like from within QueuedTask.Run() ) you have to update the ProgressValue property of the WPF progress bar on the GUI thread, which you can do by using the Dispatcher's Invoke method: System.Windows.Application.Current.Dispatcher.Invoke(() => {
// update your WPF property here:
ProgressValue++;
});
... View more
08-04-2021
10:41 AM
|
1
|
0
|
2203
|
|
POST
|
In 2.8 all Pro assemblies were switched from mixed (x86 and x64) to 64 bit only. Unfortunately the XAML designer loader cannot load x64 bit assemblies. Here is a knowledge base article to that regard: Error: Could not load file or assembly 'ArcGIS.Desktop.Framework, Culture=neutral' or one of its dependencies. The system cannot find the file specified. (esri.com) Hopefully the upcoming release of Visual Studio 2022 will fix this issue.
... View more
08-02-2021
09:19 AM
|
1
|
2
|
4542
|
|
POST
|
Sorry about the delayed reply, but even after consulting with Pro development, I was not able to find a solution for the F1 custom help functionality from the Pro Ribbon. We add this as a future enhancement to the Pro API. Thanks for pointing this out.
... View more
07-30-2021
12:30 PM
|
1
|
0
|
1671
|
|
POST
|
I attached a sample that is using a dockpane to show the selected [line] rows and the respective length. Note that the length was computed using a area specific projection (in my case Hawaii), so you might want to change this to fit your needs. When you click on a line in the grid the corresponding feature will flash on the map.
... View more
07-26-2021
10:46 AM
|
1
|
2
|
5684
|
|
POST
|
Unfortunately the 'dll loading' bug is located in the Microsoft.Data.SqlClient managed code, so as soon Microsoft fixes this problem, your add-in will work with the Microsoft.Data.SqlClient Nuget. There is nothing the Pro SDK can or has to do to fix this. The problem is caused by the assumption that the executing assembly's path (ArcGIS Pro's exe) is the same path from which the add-in is running. This is incorrect as the addin is loaded at run time from a different folder that ArcGIS Pro.exe, in my case the add-in executable folder is under: C:\Users\wlfka\AppData\Local\ESRI\ArcGISPro\AssemblyCache\.... To test if this is really the case I simply copied all native Microsoft.Data.SqlClient dlls into the Pro executable folder with is: C:\Program Files\ArcGIS\Pro\bin in my case. The same add-in that didn't work before is now working without problem, because is finds the native dll under the wrong location. before i copied the native dlls: After:
... View more
07-23-2021
02:15 PM
|
1
|
0
|
10746
|
|
POST
|
There is a sample that is using a dockpane with a 'tab control' showing a table control for multiple feature layers: arcgis-pro-sdk-community-samples/Map-Exploration/TableControlsDockpane at master · Esri/arcgis-pro-sdk-community-samples (github.com) I guess you would like to only show the actual selected items which is possible with minor modifications.
... View more
07-23-2021
09:57 AM
|
0
|
0
|
2886
|
|
POST
|
I think I see your desired workflow now, i will try to find some matching samples over the weekend.
... View more
07-23-2021
09:49 AM
|
0
|
1
|
5714
|
|
POST
|
It looks like this is a problem with the Nuget, see SqlClient troubleshooting guide - ADO.NET Provider for SQL Server | Microsoft Docs ... and out of the scope of the Pro SDK. I would recommend to wait until Microsoft.Data.SqlClient is a bit more mature and the Pro SDK moves to .Net 6 (with the 3.0 release or Pro).
... View more
07-23-2021
09:46 AM
|
0
|
1
|
10761
|
|
POST
|
You are correct. I didn't even notice that. Turns out to access SQL server the SqlClient Nuget is not needed. Seems like SQL access functions are built into the .Net. After I pasted in your code snippet i let Visual Studio resolve the reference and it did pick the System.Data.SqlClient reference. Is there a reason why you include and are trying to use the NuGet?
... View more
07-22-2021
03:14 PM
|
0
|
1
|
10767
|
|
POST
|
I tried your code (with a few modifications) in VS 2019 and Pro 2.8. I attached my sample add-in. Maybe it's an issue in VS 2017 only. protected override void OnClick()
{
try
{
var result = DoConnectQueryTableCount(
@"Server=WIN10-DEV-PRO;Database=FeatureTest;Trusted_Connection=True;",
@"[FeatureTest].[dbo].[TESTLINES]");
MessageBox.Show($@"Returned from DoConnectQueryTableCount = {result}");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
private string DoConnectQueryTableCount(string connectionString, string tableName)
{
var result = "failed";
using (var connection = new SqlConnection(connectionString))
{
using (var command = connection.CreateCommand())
{
command.CommandText = $@"select count(*) from {tableName}";
connection.Open();
result = command.ExecuteScalar().ToString();
connection.Close();
}
}
return result;
} Here's the result. Can you try the attached solution in your system after changing the connection/table info?
... View more
07-22-2021
01:34 PM
|
0
|
2
|
10774
|
|
POST
|
I don't quite understand what your workflow is and why you are opening the attribute table. Can you show a screenshot of what you're trying to show? Are you computing something based on an attribute column's value?
... View more
07-22-2021
09:18 AM
|
0
|
1
|
5736
|
|
POST
|
@GregG It depends on the 'build action' that you specify in the image's properties. Your property probably has a build action of 'Resource' versus 'Content'. When you specify resource the image will be embedded into your assembly as a resource and is available under 'Resources...'. If you specify 'Content' (with an appropriate copy action) the esriaddinx will contain the jpg image file under the folder structure you use in your project file. You can verify that the image files get attached to the esriaddinx file by 'unzipping' the file and looking into the 'Install' folder. You should see your jpgs under that folder:
... View more
07-22-2021
08:47 AM
|
0
|
0
|
3590
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2025 10:48 AM | |
| 1 | 05-24-2021 09:04 AM | |
| 1 | 12-03-2020 08:44 AM | |
| 1 | 10-07-2025 07:27 AM | |
| 2 | 12-29-2025 10:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-21-2026
01:59 PM
|