|
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
|
1725
|
|
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
|
1148
|
|
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
|
1304
|
|
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
|
1011
|
|
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
|
2522
|
|
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
|
1428
|
|
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
|
2309
|
|
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
|
2107
|
|
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
|
2275
|
|
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
|
3534
|
|
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
|
3560
|
|
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
|
3575
|
|
POST
|
Hi, You can look at ArcGIS Pro Snippets: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-TextSymbols https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Labeling private static Task<CIMTextSymbol> CreateSimpleTextAsync()
{
return QueuedTask.Run <CIMTextSymbol>(() =>
{
//Create a simple text symbol
return SymbolFactory.Instance.ConstructTextSymbol(ColorFactory.Instance.BlackRGB, 8.5, "Corbel", "Regular");
});
}
//Note: call within QueuedTask.Run()
//Get the layer's definition
var lyrDefn = featureLayer.GetDefinition() as CIMFeatureLayer;
//Get the label classes - we need the first one
var listLabelClasses = lyrDefn.LabelClasses.ToList();
var theLabelClass = listLabelClasses.FirstOrDefault();
//Set the label classes' symbol to the custom text symbol
//Refer to the ProSnippets-TextSymbols wiki page for help with creating custom text symbols.
var textSymbol = await CreateSimpleTextAsync();
theLabelClass.TextSymbol.Symbol = textSymbol;
lyrDefn.LabelClasses = listLabelClasses.ToArray(); //Set the labelClasses back
featureLayer.SetDefinition(lyrDefn); //set the layer's definition
//set the label's visiblity
featureLayer.SetLabelVisibility(true); P.s. Sample for one class, but you can create classes for each attribute value combination
... View more
01-11-2022
04:02 AM
|
0
|
6
|
3575
|
|
POST
|
Hi, Have you tried like this: string statisticsFields = "Shape_Length SUM;Shape_Area SUM";
var parameters = Geoprocessing.MakeValueArray(shpLayer, file, dissolveFields, statisticsFields, "MULTI_PART", "DISSOLVE_LINES");
var gpResult = Geoprocessing.ExecuteToolAsync("Dissolve_management", parameters, null, CancelableProgressor.None, GPExecuteToolFlags.None);
... View more
01-10-2022
10:29 PM
|
1
|
1
|
2681
|
|
POST
|
Hi, I would recommend to execute the same tool from ArcGIS Pro Geoprocessing pane. Then copy python script and check, how parameters looks in python script. For .NET there is no better way to get geoprocessing function parameters. Using Geoprocessing.MakeValueArray try to get the same or similar.
... View more
01-10-2022
06:55 AM
|
0
|
3
|
2701
|
| 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
|