|
POST
|
Hi, You can call ImportXMLWorkspaceDocument geoprocessing tool from ArcGIS Pro SDK. Esri ArcGIS Pro SDK Community samples of geoprocessing here.
... View more
02-25-2025
04:35 AM
|
0
|
2
|
1176
|
|
POST
|
Hi, Have you set API Key? API key is a permanent token that grants your application access to ArcGIS location services. Create a new API key or access existing API keys from your ArcGIS for Developers dashboard (https://links.esri.com/arcgis-api-keys). // Provide an access token for your app (usually when the app starts).
Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.ApiKey = "YOUR_ACCESS_TOKEN";
// Create a map with an ArcGIS basemap.
var map = new Map(BasemapStyle.ArcGISNavigation);
// If preferred, you can provide a key directly for the basemap.
//map.Basemap.ApiKey = "YOUR_ACCESS_TOKEN"; Or it could be done MauiApp builder: var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.UseArcGISRuntime(config => config
.UseLicense("[Your ArcGIS Maps SDK License key]")
.UseApiKey("[Your ArcGIS location services API Key]")
.ConfigureAuthentication(auth => auth
.UseDefaultChallengeHandler() // Use the default authentication dialog
// .UseOAuthAuthorizeHandler(myOauthAuthorizationHandler) // Configure a custom OAuth dialog
)
);
return builder.Build();
... View more
02-23-2025
10:24 PM
|
2
|
1
|
1404
|
|
POST
|
Hi, As I understand from API reference, it must be like that: IFeatureSet featureSet;
if (outputFeatures.CanGetOutputFeatures)
featureSet = await outputFeatures.GetOutputFeaturesAsync();
else
featureSet = outputFeatures.Features ;
... View more
02-20-2025
10:37 PM
|
1
|
0
|
1265
|
|
POST
|
Hi, You also need to explicitly include logic in your app to request this permission at run-time. var status = await Permissions.CheckStatusAsync<Permissions.LocationWhenInUse>();
// Request location permission if not granted.
if (status != PermissionStatus.Granted)
{
status = await Permissions.RequestAsync<Permissions.LocationWhenInUse>();
}
... View more
02-17-2025
03:46 AM
|
0
|
2
|
1209
|
|
POST
|
Hi, You can use management.AddFields to add all fields in one call.
... View more
02-16-2025
10:31 PM
|
1
|
0
|
912
|
|
POST
|
Hi, You can override OnToolMouseMove. How to do that you can find in Esri ArcGIS Pro SDK Community sample MagnifierWindow.
... View more
02-11-2025
04:59 AM
|
0
|
0
|
527
|
|
POST
|
Hi, Yes. It is possible. TableView has method Highlight. The table view must be showing the Selected Records view. How to get TableView from table name you can found in TableViewerTest from Esri ArcGIS Pro SDK Community samples. Code sample uses method OpenAndActivateTablePane fromTableViewerTest sample: protected override void OnClick()
{
var myTable = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(fl => fl.Name.Equals("YourTableName")).FirstOrDefault()
?? throw new Exception(@"Can't find 'YourTableName' Layer");
var myTablePanes = Module1.OpenAndActivateTablePane(myTable);
if (myTablePanes.TablePane == null)
throw new Exception($@"Unable to activate {myTable.Name}");
TableView tableView = myTablePanes.TablePaneEx.TableView;
if (tableView == null) throw new Exception($@"Can't get TableView for {myTable.Name}");
if (tableView.IsReady && tableView.CanHighlight)
{
tableView.Highlight(237, true);
}
} You need to listen for MapSelectionChangedEvent, collect selected objects objectid's and store current selected objectid. Selection set and current objectid I would recommend store in Module properties.
... View more
02-07-2025
12:40 PM
|
1
|
0
|
780
|
|
POST
|
@MK13 Sorry. I am Esri distributor only. My situation is very similar to yours.
... View more
02-06-2025
10:11 PM
|
0
|
0
|
2467
|
|
POST
|
Hi, You could call geoprocessing tool management.AssignDomainToField directly from code. Samples are here. Another way is to use SchemaBuilder. More about SchemaBuilder is here.
... View more
02-04-2025
11:17 PM
|
0
|
0
|
526
|
|
POST
|
We have proverb in my native language: "Butter buttered". So, the same thing is with Envelope and Expand method. Envelope has own Expand method: var sr = SpatialReferenceBuilder.CreateSpatialReference(8826);
MapPoint minPt = MapPointBuilderEx.CreateMapPoint(2456480, 1307526, sr);
MapPoint maxPt = MapPointBuilderEx.CreateMapPoint(2456895, 1307790, sr);
EnvelopeBuilderEx builderEx = new EnvelopeBuilderEx(minPt, maxPt, sr);
Envelope envelope = builderEx.ToGeometry();
var expandedExtent = envelope.Expand(1.5, 1.5, true); It works as expected without QueuedTask.Run. It could be a bug in GeometryEngine method.
... View more
02-04-2025
02:06 AM
|
1
|
1
|
2253
|
|
POST
|
@DanNarsavage_IDWR Yes, you are right. Expand methos doesn't need to be run within QueuedTask.Run. I think issue is with your returned geometry (from GetGeometry method) extent. Try to check extent for null and for IsEmpty.
... View more
02-03-2025
09:26 AM
|
0
|
3
|
2268
|
|
POST
|
Hi, Take a look at these: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Asynchronous-Programming-in-ArcGIS-Pro ArcGIS Pro SDK for .NET: Synchronous and Asynchronous Custom Method Design - YouTube Shortly. If you want something return from asynchronous method you need to use Task<return_data_type>. That method could contain QueuedTask.Run or orther .NET methos which returns Task. You can make synchronous method and call QueuedTask.Run outside method. Below two samples with your mehod implemetation: public Envelope GetExtent()
{
var geometry = GetGeometry();
var extent = geometry.Extent;
var geometryEngine = GeometryEngine.Instance;
return geometryEngine.Expand(extent, 1.5, 1.5, true);
}
var newExtent = await QueuedTask.Run(() =>
{
return GetExtent();
}); or public Task<Envelope> GetExtentAsync()
{
var geometry = GetGeometry();
var extent = geometry.Extent;
var geometryEngine = GeometryEngine.Instance;
return QueuedTask.Run(() =>
{
return geometryEngine.Expand(extent, 1.5, 1.5, true);
});
}
var newExtent = await GetExtentAsync();
... View more
02-02-2025
06:21 AM
|
0
|
5
|
2299
|
|
POST
|
You are right. JobsManager belongs to ArcGIS.Desktop.Workflow.Models namespace. Overview of name namespace states: "The ArcGIS.Desktop.Workflow.Models provides access to retrieving jobs and configuration information from the Workflow Manager Classic database.". I don't know about compatibility.
... View more
01-29-2025
10:39 PM
|
0
|
0
|
1466
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 4 weeks ago | |
| 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 |
Friday
|