|
POST
|
I think, you can't select template directly from Create Features pane. But your workflow could be like in sample below:
protected async override void OnClick()
{
await QueuedTask.Run(() =>
{
// Find layer you will work with
var featLayer = MapView.Active.Map.FindLayers("Poly1").First();
// Get all templates and then select template you need or use GetTemplate if you know template name
var editTemplates = featLayer.GetTemplates();
if (editTemplates != null && editTemplates.Count > 0)
{
var editTemplate = editTemplates[0];
// Activate default tool
editTemplate.ActivateDefaultToolAsync();
}
});
}
... View more
10-30-2024
07:44 AM
|
1
|
0
|
2123
|
|
POST
|
Yes. Documentation says that first parameter must be file or folder:
Name
Explanation
Data Type
in_data
[in_data,...]
The folders containing the data files or the data files to convert to geodatabase feature classes.
Folder; File
... View more
10-29-2024
12:10 PM
|
0
|
0
|
3418
|
|
POST
|
Hi,
I think these links could help you: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-change-background-color-of-rectangular/m-p/1030564#M6255
https://community.esri.com/t5/arcgis-pro-sdk-questions/trying-to-change-the-fill-color-of-a/m-p/1505192
... View more
10-28-2024
11:39 PM
|
0
|
0
|
1684
|
|
POST
|
Hi,
Change Stackpanel to Grid:
<Grid Grid.Row="1">
<ContentPresenter Content="{Binding CurrentPage}"></ContentPresenter>
</Grid>
Stackpanel has some limitations
... View more
10-28-2024
08:29 AM
|
0
|
0
|
1422
|
|
POST
|
Hi,
Use GetPlugInWrapper Method—ArcGIS Pro. To find tool reference id move mouse over the tool.
... View more
10-28-2024
08:14 AM
|
1
|
3
|
2148
|
|
POST
|
Hi,
MapTool has possibility to output sketch coordinates in map or screen. Look at ScreenCoordsToMapPoint sample
... View more
10-26-2024
11:30 AM
|
1
|
0
|
842
|
|
POST
|
Link is above. This is python sample at the bottom of page. There is no documentation for each geoprocessing tool for ArcGIS Pro SDK for .NET.
... View more
10-26-2024
11:24 AM
|
0
|
2
|
3579
|
|
POST
|
Hi,
Look at the BackStage_PropertyPage sample. Open ProjectSettingsViewModel.cs file. Look inside InitializeAsync() and CommitAsync() methods how you can access and modify project settings. If you need to save changes right now, you can call :
await Project.Current.SaveAsync();
... View more
10-24-2024
04:02 AM
|
0
|
0
|
3251
|
|
POST
|
Seems like correct workflow.
P.s. Don't forget to set SelectNewFeatures flag of EditOperation to true. Only your new feature will be selected after merge execution and you can take new objectid from selection for shape copying
... View more
10-24-2024
03:21 AM
|
0
|
2
|
2483
|
|
POST
|
Yes, you need to create parameters first:
IReadOnlyList<string> importParams = Geoprocessing.MakeValueArray(@"c:\data\sourcedata", @"\\data\operationaldata.sde", "*airports*.shp", "NO_SUBFOLDERS");
IGPResult result = await Geoprocessing.ExecuteToolAsync("intelligence.BatchImportData", importParams);
if (result.IsFailed)
{
MessageBox.Show("Unable to import", "Batch import");
return;
}
Parameters from documentation sample. Use yours. As I understand featureclass names will be created automatically from source names. After you can rename them.
... View more
10-24-2024
03:19 AM
|
0
|
0
|
3630
|
|
POST
|
Hi,
There is sample how to call python script from ArcGIS Pro. Sample is here: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Geoprocessing/CallScriptFromNet
Another way is to make python tool from your script and call it as geoprocessing tool.
There are differences in arcpy used by ArcMap and ArcGIS Pro. Check Python section for performance issues.
In one of our projects we have found that performance issue could be with using featureclass instead of featurelayer in SelectLayerByLocation method when you call it in calculation cycle. You need to make FeatureLayer from FeatureClass before calculation cycle.
Data type for in_layer for SelectLayerByLocation method must be FeatureLayer, but it works and with FeatureClass.
... View more
10-23-2024
12:27 PM
|
1
|
1
|
2645
|
|
POST
|
Yes, You can call Geoprocessing.ExecuteToolAsync. Tool name will be "BatchImportData_intelligence". You need to have minimum Standard ArcGIS Pro license to use that tool.
... View more
10-23-2024
12:01 PM
|
0
|
2
|
3643
|
|
POST
|
Hi,
I have tested your piece of code in ArcGIS Pro 3.2 and it works in Dockpane and in PropertyPage. Could you share minimum code project to test? I think issue is in parent part of your xaml sample.
... View more
10-23-2024
11:55 AM
|
0
|
2
|
1480
|
|
POST
|
Hi,
I would like suggest you workaround I used in my case. I needed to update polygon feature with new geometry, but using EditOperation ConstructPolygons I got few polygons. So after Execute of operation I checked all results, selected one with my criteria, copied shape from new feature and made undo of last operation. After that I created new EditOperation and called Modify and Execute methods
... View more
10-23-2024
10:54 AM
|
0
|
4
|
2503
|
|
POST
|
Hi,
Have you tried to call geoprocessing tool Batch import data from you add'in? It can import GeoJSON to featureclass.
... View more
10-23-2024
01:18 AM
|
0
|
4
|
3667
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|