|
POST
|
Hi, You can select direct from layer: await QueuedTask.Run(async () =>
{
polygonLayer.Select(queryFilter, SelectionCombinationMethod.New);
object[] listOfPara = { polygonLayer };
await StartATask("management.DeleteFeatures", listOfPara);
}, cps.Progressor);
... View more
03-07-2022
07:41 AM
|
1
|
4
|
2189
|
|
POST
|
Hi, You can iterate through map feature layers and make spatial query: SpatialQueryFilter filter = new SpatialQueryFilter();
filter.FilterGeometry = geometry;
filter.SpatialRelationship = SpatialRelationship.Intersects;
var allLayers = map.GetLayersAsFlattenedList().OfType<FeatureLayer>();
foreach (var layer in allLayers)
{
var featClass = layer.GetFeatureClass();
using (var rows = featClass.Search(filter, false))
{
while (rows.MoveNext())
{
using (var feature = rows.Current as Feature)
{
}
}
}
}
... View more
03-06-2022
11:32 PM
|
1
|
0
|
1563
|
|
POST
|
Hi, You can repair project manually. Project file is renamed zip file. You can extract it and modify damaged part. More info in my own question here: https://community.esri.com/t5/arcgis-pro-sdk-questions/styleprojectitem-method-searchcolorramps-always/m-p/1141613#M7747
... View more
03-03-2022
10:14 PM
|
1
|
0
|
1448
|
|
POST
|
Hi, I have similar situation with color ramps month ago. It was problem with ArcGIS Pro project. Have you tried your code on new created ArcGIS Pro project?
... View more
03-03-2022
08:26 AM
|
1
|
2
|
1456
|
|
POST
|
Hi, Sorry, if it was unclear. I don't want to change privileges. I want to read them from ArcGIS Pro SDK.
... View more
03-01-2022
06:18 AM
|
0
|
1
|
1245
|
|
POST
|
Hi, If I understand right, it must be like this: protected XViewModel()
{
_CommandX = new RelayCommand(() => CmdX(), true);
}
private ICommand _CommandX;
public ICommand CommandX
{
get { return _CommandX; }
}
/// <summary>
/// Execute the X command
/// </summary>
private async void CmdX()
{
AllProcesses Process = new AllProcesses();
var mukeys = await Process.LookupMukey();
//codes below - calling multiple methods and passing the list of mukeys as one of the parameters
}
// or
private void CmdX()
{
AllProcesses Process = new AllProcesses();
var mukeys = Process.LookupMukey().Result;
//codes below - calling multiple methods and passing the list of mukeys as one of the parameters
}
... View more
03-01-2022
05:32 AM
|
0
|
0
|
1908
|
|
POST
|
Hi, I would like to check if featureclass is editable (depending on logged user) without loading featurelayer to map. Where are located priviliges of featureclass displayed in featureclass properties window?
... View more
03-01-2022
05:22 AM
|
0
|
3
|
1267
|
|
POST
|
Hi, Have tried EllipticArcBuilder ? More info here: https://github.com/Esri/arcgis-pro-sdk/blob/master/Examples/Geometry/ProSnippets.cs
... View more
02-24-2022
10:35 PM
|
0
|
1
|
3686
|
|
POST
|
Hi, If I understand right you need code like this: import time
start_time = time.time()
buffer(fc1,fcbuf1,15)
elapsed_time = time.time() - start_time
arcpy.AddMessage(time.strftime("First operation elapsed %H:%M:%S", time.gmtime(elapsed_time)))
start_time = time.time()
buffer(fc2,fcbuf2, 22)
elapsed_time = time.time() - start_time
arcpy.AddMessage(time.strftime("Second operation elapsed %H:%M:%S", time.gmtime(elapsed_time)))
start_time = time.time()
buffer(fc3,fcbuf3,31)
elapsed_time = time.time() - start_time
arcpy.AddMessage(time.strftime("Last operation elapsed %H:%M:%S", time.gmtime(elapsed_time)))
... View more
02-23-2022
07:01 AM
|
0
|
0
|
3895
|
|
POST
|
You can add "async" to "var mukeys = await LookupMukey();" calling method like this: public async voif Your_Method()
{
var mukeys = await LookupMukey();
} or change LookupMukey method calling to: var mukeys = LookupMukey().Result;
... View more
02-22-2022
09:08 AM
|
0
|
2
|
1940
|
|
POST
|
Hi, In the constructor of your tool you need to add line : UseSnapping = true; Then in the "OnSketchCompleteAsync" create feature using EditOperation Create method: // Create an edit operation
var createOperation = new EditOperation();
createOperation.Name = string.Format("Create {0}", layer.Name);
createOperation.SelectNewFeatures = true;
// Queue feature creation
createOperation.Create(layer, geometry);
return createOperation.Execute();
... View more
02-21-2022
10:39 PM
|
0
|
0
|
801
|
|
POST
|
Hi, At first "return Mukeys;" breaks code execution at this point and your clip operation will not be executed. More information about EditOperation Clip method here: https://pro.arcgis.com/en/pro-app/2.7/sdk/api-reference/#topic9498.html From your question difficult to understand that task do you want to realize. Do you want to clip single feature or selected features? What is your clipping geometry and etc. From your
... View more
02-21-2022
10:28 PM
|
0
|
1
|
1216
|
|
POST
|
Hi, Your function must be like this : public async Task<List<string>> LookupMukey()
{
var mukeys = new List<string>();
var MV = MapView.Active;
int mukeyCount = 0;
var SelectionLayer = MV.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(fl => fl.Name.Contains("SelectionLayer")).FirstOrDefault();
await QueuedTask.Run(() =>
{
using (var SelectionTable = SelectionLayer.GetTable())
{
using (var rowCursor = SelectionTable.Search())
{
while (rowCursor.MoveNext())
{
using (Row row = rowCursor.Current)
{
var mukey = Convert.ToString(row["mukey"]);
mukeys.Add(mukey);
mukeyCount++;
}
}
}
}
});
return mukeys;
} And call to function: var mukeys = await LookupMukey();
... View more
02-21-2022
10:14 PM
|
0
|
4
|
1951
|
|
POST
|
Hi, There is no possibility to change symbol from ArcGIS Pro. So, I think, these properties (UseSelectionSymbol, SelectionSymbol) are reserved for future implementation.
... View more
02-18-2022
07:52 AM
|
1
|
0
|
1508
|
|
POST
|
Hi, Maybe it helps you: https://community.esri.com/t5/geoprocessing-questions/edit-a-joined-table-arcgis-pro/td-p/546829 P.s. "You can edit joined tables, but only the base table fields. Fields from the joined table are read-only." https://pro.arcgis.com/en/pro-app/latest/help/data/tables/edit-an-active-table.htm
... View more
02-16-2022
10:15 PM
|
0
|
0
|
691
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | Tuesday | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Online
|
| Date Last Visited |
Tuesday
|