|
POST
|
Hi,
Thread I have found is near your case. There is no answer from @UmaHarano about releasing new functionality.
... View more
10-21-2024
10:28 PM
|
0
|
0
|
1333
|
|
POST
|
You could check if exists unsaved manual edit and ask user to save them and try to start your tool/button again. We use that workflow in our applications.
Call HasEdits method from Datastore.
... View more
10-17-2024
10:55 AM
|
1
|
1
|
3667
|
|
POST
|
You don't need to copy all feature/row values to dictionary. You need fill dictionary with field values, you want to change, only. All other original field values will not be modified.
// Modify Node
updateDangleNodeAndLegShapes.Modify(nodesMapMember, selectedFeatures[nodesMapMember].First(),
new Dictionary<string, object>() { { "SHAPE", newNode }, { "NodeClass", "testing_addin" } });
// Modify NodeLeg
updateDangleNodeAndLegShapes.Modify(legsMapMember as Layer, selectedFeatures[legsMapMember].First(), newLeg);
... View more
10-16-2024
10:40 PM
|
1
|
4
|
3691
|
|
POST
|
Have you tried to read current version before changing and save it for later using?
private ArcGIS.Core.Data.Version _fromVersion;
private Task ChangeToHistoricVersion()
{
// Before changing to historic version
_fromVersion = versionManager.GetCurrentVersion();
}
private Task ChangeToCurrentVersion()
{
// changing back to current version
MapView.Active.Map.ChangeVersion(historicalVersion, _fromVersion);
}
... View more
10-16-2024
11:09 AM
|
0
|
1
|
2650
|
|
POST
|
Hi,
Working with Inspector and EditOperation has some limitations.
All features loaded into the inspector must be from the same feature layer. Only feature values that are modified in the inspector are applied to the loaded feature(s). If tables are joined to the feature layer then the joined attributes are loaded also.
You can't use Modify and Inspector in cycle. Only last Modify will be executed. Your workflow must be like this: Load, Modify, Execute, Load, Modify, Execute... If you want to have possibility undo in one operation, you need to use CreateChainedOperation. I would recommend do not use inspector in your case. There are plenty of overloads of Modify methods which you could use for your workflow without inspector and execute all modifications at once.
More info about Editing here.
... View more
10-15-2024
11:11 PM
|
1
|
6
|
3723
|
|
POST
|
Hi,
There are no special courses. Visit developers.arcgis.com to get started. There are plenty of videos from Esri developer summit tech sessions on youtube or Esri media space
... View more
10-15-2024
10:33 PM
|
0
|
0
|
746
|
|
POST
|
Savint to lyrx:
LayerDocument layerDocument = new LayerDocument(layer);
layerDocument.Save(@"c:\Data\MyLayerDocument.lyrx");
Opening from lyrx:
//Note: Call within QueuedTask.Run()
var layerDoc = new LayerDocument(@"E:\Data\SDK\Default2DPointSymbols.lyrx");
var createParams = new LayerCreationParams(layerDoc.GetCIMLayerDocument());
LayerFactory.Instance.CreateLayer<FeatureLayer>(createParams, MapView.Active.Map);
Modifying existing layer symbology using lyrx:
private static async Task ModifyLayerSymbologyFromLyrFileAsync(FeatureLayer featureLayer, string layerFile)
{
await QueuedTask.Run(() => {
//Does layer file exist
if (!System.IO.File.Exists(layerFile))
return;
//Get the Layer Document from the lyrx file
var lyrDocFromLyrxFile = new LayerDocument(layerFile);
var cimLyrDoc = lyrDocFromLyrxFile.GetCIMLayerDocument();
//Get the renderer from the layer file
var rendererFromLayerFile = ((CIMFeatureLayer)cimLyrDoc.LayerDefinitions[0]).Renderer as CIMSimpleRenderer;
if (rendererFromLayerFile == null)
return;
//Apply the renderer to the feature layer
featureLayer?.SetRenderer(rendererFromLayerFile);
});
}
... View more
10-09-2024
12:40 PM
|
0
|
1
|
2412
|
|
POST
|
Lyrx is a pure text solution - xml:
{
"type" : "CIMLayerDocument",
"version" : "1.1.0",
"build" : 3219,
"layers" : [
"CIMPATH=map/meteoritesuk.xml"
],
"layerDefinitions" : [
{
"type" : "CIMFeatureLayer",
"name" : "MeteoritesUK",
"uRI" : "CIMPATH=map/meteoritesuk.xml",
"sourceModifiedTime" : {
"type" : "TimeInstant"
},
"description" : "MeteoritesUK",
"layerElevation" : {
"type" : "CIMLayerElevationSurface",
"mapElevationID" : "{D9EFA120-D6D6-4152-8711-6765DCCF05C5}"
},
"expanded" : true,
"layerType" : "Operational",
"showLegends" : true,
"visibility" : true,
"displayCacheType" : "Permanent",
"maxDisplayCacheAge" : 5,
"showPopups" : true,
"autoGenerateFeatureTemplates" : true,
"featureTable" : {
"type" : "CIMFeatureTable",
"displayField" : "NAME",
"editable" : true,
"dataConnection" : {
"type" : "CIMStandardDataConnection",
"workspaceConnectionString" : "DATABASE=.\\SDK.gdb",
"workspaceFactory" : "FileGDB",
"dataset" : "MeteoritesUK",
"datasetType" : "esriDTFeatureClass"
},
"studyAreaSpatialRel" : "esriSpatialRelUndefined",
"searchOrder" : "esriSearchOrderSpatial"
},
... View more
10-08-2024
10:59 PM
|
0
|
3
|
2429
|
|
POST
|
Hi,
You need to get page, you want to migrate using id from config.daml, and select it. Code below:
var appPage = PropertySheet.Page("esri_sdk_PropertyPageAppSettings");
appPage.IsSelected = true;
... View more
10-08-2024
10:47 PM
|
0
|
1
|
1288
|
|
POST
|
Hi,
I would recommend you use Esri lyrx format to save layer and load it later. More info here.
... View more
10-06-2024
11:22 PM
|
0
|
5
|
2488
|
|
POST
|
Hi,
You can call another overload of Export method with envelope parameter:
mapView.Export(BMP, envelope); //Export to BMP
... View more
10-03-2024
12:57 PM
|
0
|
1
|
1342
|
|
POST
|
From my opinion you need to make raster layer from NetCDF file using geoprocessing, then read value from raster layer.
... View more
10-01-2024
10:16 PM
|
0
|
0
|
985
|
|
POST
|
Hi,
You can call GeometryEngine method NearestVertex to get part and point indexes. Parameters will be polyline from IdentifyGraphicsOverlayResult and tapping MapPoint
... View more
09-30-2024
12:34 PM
|
0
|
2
|
2345
|
|
POST
|
If you need to get it during dragging you need to listen for PropertyChanged event as in sample from thread:
mapView.GeometryEditor.PropertyChanged += (s, e) =>
{
if (e.PropertyName == nameof(mapView.GeometryEditor.Geometry))
{
// Geometry has changed
}
};
... View more
09-27-2024
11:37 AM
|
0
|
1
|
2383
|
| 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
|