|
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
|
2050
|
|
POST
|
Hi, There is no possibility to change symbol from ArcGIS Pro. GintautasKmieliauskas_0-1645199446566.png So, I think, these properties (UseSelectionSymbol, SelectionSymbol) are reserved for future implementation.
... View more
02-18-2022
07:52 AM
|
1
|
0
|
1554
|
|
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
|
706
|
|
POST
|
Hi, You should implement the INotifyDataErrorInfo interface in your view model class. Please refer to https://social.technet.microsoft.com/wiki/contents/articles/19490.wpf-4-5-validating-data-in-using-the-inotifydataerrorinfo-interface.aspx for more information and examples. For red star (*) you should make 2 texbox'es inside grid or stackpanel. One of them preset text "*" and make Foreground = "red". Second textbox will show field label with esri style. If you want to make universal dialog for different database table records you should bind "*" textbox visibility to database field property.
... View more
02-10-2022
10:45 PM
|
2
|
0
|
1780
|
|
POST
|
It was issue with ArcGIS Pro project file. Save as didn't solve the issue. I have recreated project from scratch and now it works fine. I have extracted both projects to files. There is CIMProjectItem record in GISProject.xml file which is related to ArcGIS Colors. In damaged project CatalogPath setting is equal to full project path + ArcGIS Colors: <CatalogPath>C:\MyProject\Project\ArcGIS Colors</CatalogPath> In working project: <CatalogPath>ArcGIS Colors</CatalogPath> The same situation with ColorBrewer Schemes (RGB).
... View more
02-08-2022
07:26 AM
|
1
|
0
|
1176
|
|
POST
|
It was working until ArcGIS Pro 2.7 SDK. ArcGIS Pro SDK community sample Raster Colorizer doesn't work too. It throws exception: System.ArgumentOutOfRangeException HResult=0x80131502 Message=Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Source=mscorlib StackTrace: at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at System.Collections.Generic.List`1.get_Item(Int32 index) at Colorizer.BtnNewColor.<>c__DisplayClass0_0.<OnClick>b__0() in D:\ArcGIS_SDK_Samples\arcgis-pro-sdk-community-samples-master\Raster\Colorizer\BtnNewColor.cs:line 54 at System.Threading.Tasks.Task.Execute()
... View more
02-03-2022
01:04 AM
|
0
|
1
|
1332
|
|
POST
|
Hi, These links will not help you but will explain problem: https://community.esri.com/t5/arcgis-pro-sdk-questions/namespace-problems-in-xaml/m-p/1090296 https://community.esri.com/t5/arcgis-pro-sdk-questions/something-broken-in-the-tablecontrol-sample/m-p/1013686
... View more
02-02-2022
10:24 PM
|
1
|
0
|
1041
|
|
POST
|
Hi, Your problem is related with using SelectLayerByAttribute and SelectLayerByLocation. You need to use layer, not featureclass for first parameter. More info here: https://community.esri.com/t5/python-questions/calls-to-arcpy-management-tools-get-progressively/m-p/1124545#M63213 https://community.esri.com/t5/python-questions/each-arcpy-loop-takes-a-bit-longer-to-finish/m-p/433320
... View more
01-25-2022
11:12 PM
|
0
|
1
|
2627
|
|
POST
|
Hi, You can use Create with other parameters: var polygFeatureClass = polygFeatureLayer.GetFeatureClass();
var shapeFieldName = polygFeatureClass.GetDefinition().GetShapeField();
Dictionary<string, object> attributes = new Dictionary<string, object>();
attributes.Add(shapeFieldName, polygonGeometry1);
attributes[Nazev] = value1.ToString();
attributes[vyskyt] = 0;
editOp.Create(polygFeatureClas, attributes); Get polygon
... View more
01-17-2022
06:33 AM
|
2
|
1
|
1494
|
|
POST
|
Hi, 1. Check image properties in Visual Studio. "Build Action" must be set to "Resource". 2. Check image location in project. From your code it must be in the root of project. Maybe it in the "Images" folder. 3. Sometimes helps another way of image location defining: <Image Source="/your_addin_name;component/your_image_relative_path" />
... View more
01-16-2022
10:30 PM
|
1
|
1
|
2348
|
|
POST
|
Hi, How to create featurelayer you can find in ArcGIS Pro SDK Snippets string url = @"E:\WorkingFolder\MyAddIn\GISTMPConnection.sde\ApexSwatCompare_layer";
Uri uri = new Uri(url);
await QueuedTask.Run(() => LayerFactory.Instance.CreateLayer(uri, MapView.Active.Map));
... View more
01-14-2022
06:25 AM
|
0
|
1
|
2158
|
|
POST
|
Hi, There is ArcGIS Pro SDK sample, You can find it here: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/AddInInfoManager Class AddIn has all you need
... View more
01-13-2022
10:12 PM
|
0
|
0
|
2349
|
|
POST
|
Let's clear up your question: "Have different label for each layer in a FeatureLayer" Do you mean "Have different label for each layer in a Map" or "Have different label for each feature in a FeatureLayer"? If first case it is enough to do "foreach(entity in layers)" and set Symbol parameters for first or default LabelClass. But each your layer must have one symbol symbolization. In second case you need using ArcGIS Pro create symbolization classes for your layer using subtypes or your layer attribute table fields save layer to lyrx. In your code apply symbolization from lyr file to layer then update LabelClasses. You can create and symbolization classes from code. Simplest solution, I think, is to create lyrx file with symbolization and labeling using ArcGIS Pro and in code apply lyrx for layer only.
... View more
01-12-2022
03:02 AM
|
0
|
1
|
3641
|
|
POST
|
You update only first or default layer label class. You need to create new/update list of LabelClasses as in link . You can add label classes from symbology layers . Each symbology class will have label class. So you need to set each label class for text size, font and etc. Then you don't need directly to use attribute fields like text size or font.
... View more
01-11-2022
06:26 AM
|
0
|
4
|
3667
|
|
POST
|
How to create classes you can find here: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-you-create-a-new-label-class/td-p/821023
... View more
01-11-2022
04:13 AM
|
0
|
0
|
3682
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 07-21-2026 10:23 PM | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|