|
POST
|
Hi, You can use IMapLayers.MoveLayerEx IMapLayers you can get by casting IMap object.
... View more
09-06-2022
11:05 PM
|
0
|
1
|
1288
|
|
POST
|
Hi, From oracleDatabase call OpenTable and then from table you can get count of rows. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic6928.html https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic17394.html
... View more
08-30-2022
10:20 PM
|
0
|
0
|
877
|
|
POST
|
Hi, Your StringFormat doesn't work on Labels. You need to use ContentStringFormat or change to TextBlock. More info here: https://stackoverflow.com/questions/4206612/wpf-stringformat-on-label-content/4209539#4209539
... View more
08-25-2022
10:30 PM
|
0
|
1
|
5605
|
|
POST
|
Hi, RasterLayer has method SetColorizer which is analog of FeatureLayer SetRenderer. One difference that Raster colorizer has only color without symbol. Common idea is the same. How to change raster colorizer look at ArcGIS Pro sample : https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Raster/ChangeColorizerForRasterLayer
... View more
08-22-2022
06:27 AM
|
1
|
0
|
1608
|
|
POST
|
The way to set geoprocessing parameters is like this: var parameters = Geoprocessing.MakeValueArray(SelectedProximityLayer, "WITHIN_A_DISTANCE_GEODESIC", featOrigin, "100 NAUTICALMILES", "NEW_SELECTION", "NOT_INVERT"); There is no need to form object or string array. Geoprocessing MakeValueArray knows how to convert each parameter depending on it type.
... View more
08-21-2022
10:51 PM
|
0
|
1
|
3879
|
|
POST
|
There is no reason to use SelectLayerByAttribute or SelectLayerByLocation from geoprocessing. You can select layer features directly using FeatureLayer method Select .
... View more
08-16-2022
10:32 PM
|
0
|
0
|
1414
|
|
POST
|
Hi, I use Select . It covers both: SelectLayerByAttribute and CopyFeatures.
... View more
08-16-2022
07:18 AM
|
0
|
2
|
1426
|
|
POST
|
Hi, I suggest you to use Esri pattern EmbeddableControl. It has tool - dockpane connection realized already. How to use it you can found here: ProGuide Using Embeddable Controls · Esri/arcgis-pro-sdk Wiki · GitHub
... View more
07-29-2022
04:34 AM
|
0
|
0
|
1877
|
|
POST
|
I am using ArcGIS Pro 2.9.1 P.s. I have installed 2.9.2 and it works. Check your database or paths
... View more
07-28-2022
10:12 PM
|
0
|
4
|
3271
|
|
POST
|
Hi, First, geoprocessing tools don't need QueuedTask.Run. Second, your input parameters of geoprocessing tools organized in a wrong way. Code below works fine internal static async Task RenameRasterAndGenerateContours()
{
var oldRasterPath = @"d:\Temp\Contours\contours.gdb\test";
var newRasterPath = @"d:\Temp\Contours\contours.gdb\test1";
var progressor = new CancelableProgressorSource().Progressor;
var parameters = Geoprocessing.MakeValueArray(oldRasterPath, newRasterPath, "RasterDataset");
var results = await Geoprocessing.ExecuteToolAsync("Rename_management", parameters, null, progressor, GPExecuteToolFlags.None).ConfigureAwait(true);
if (results.ErrorCode != 0)
{
var messages = new StringBuilder("The Rename geoprocessing tool errored with the following messages:");
messages.AppendLine();
foreach (var message in results.ErrorMessages)
messages.AppendLine($" - {message.Text}");
throw new InvalidOperationException(messages.ToString());
}
var contourInterval = "42";
var contourPath = $"{newRasterPath}_contour_{contourInterval}";
parameters = Geoprocessing.MakeValueArray(newRasterPath, contourPath, contourInterval);
results = await Geoprocessing.ExecuteToolAsync("Contour_sa", parameters, null, progressor, GPExecuteToolFlags.None).ConfigureAwait(true);
if (results.ErrorCode != 0)
{
var messages = new StringBuilder("The Contour geoprocessing tool errored with the following messages:");
messages.AppendLine();
foreach (var message in results.ErrorMessages)
messages.AppendLine($" - {message.Text}");
throw new InvalidOperationException(messages.ToString());
}
}
... View more
07-27-2022
10:53 PM
|
1
|
6
|
3280
|
|
POST
|
Hi, I have wrote about geoprocessing sdk help for .Net developers few times but unsuccessful. Geoprocessing tool name should be constructed like "SummarizeAttributes_geoanalytics". MakeValueArray method doesn't need MCT. It should look like this: List<string> fields = new List<string() { "Class_name", "Ft2" };
var sum_params = Geoprocessing.MakeValueArray(summarizeLayer, out_table, $"{string.Join(",", fields)}");
... View more
07-19-2022
10:53 PM
|
0
|
1
|
3630
|
|
POST
|
Hi, Have you tried GetConfigDamlAddInInfo method from @Wolf suggested sample? Returning AddIn class has Id property and it must contain Guid you are looking. It works on 2.9
... View more
07-13-2022
10:28 PM
|
0
|
1
|
3683
|
|
POST
|
Hi, You can use ArcGIS Pro configuration instead of simple add-in. Configuration has build in About dialog functionality. You can check on ArcGIS Pro community sample https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ConfigWithMap. Another way is to use ApplicationSettings window or as you mentioned Backstage property page(ArcGIS Pro community sample https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/BackStage_PropertyPage )
... View more
07-13-2022
03:15 AM
|
0
|
0
|
2552
|
|
POST
|
Hi, I think my suggested workflow is suitable only for simple delete operation. It stops all features deleting on first wrong case.
... View more
07-05-2022
01:45 AM
|
0
|
0
|
2262
|
|
POST
|
Hi, This is a WPF question, not ArcGIS Pro SDK question. Set name for the first frame like x:Name="frame1" and set height for second one like this: Height="{Binding ActualHeight, ElementName=frame1}"
... View more
07-04-2022
11:53 PM
|
1
|
1
|
1563
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|