|
POST
|
I have found one sample, you can follow it and check if it works: https://forum.esri-cis.ru/index.php?qa=36329&qa_1=identify Site in Russian language, but code in VB At first work with IIdentifyDialog variable (until ClearLayers). After cast it to IIdentifyDialog2 variable and try your workflow
... View more
06-22-2020
04:31 AM
|
0
|
0
|
1381
|
|
POST
|
Hi Sai, ArcGIS Pro SDK recommends use of 'using' when you work with database objects. It will manage object life cycle. Try change your code like this: using (var feat = featCursor.Current) { //Modify feature attributes feat.Store(); context.Invalidate(feat); }
... View more
06-21-2020
10:40 PM
|
0
|
1
|
1518
|
|
POST
|
Hi Matthias, IIdentifyDialog2 works with tables, when IIdentifyDialog works with layers. https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#CartoUI_library.htm
... View more
06-21-2020
10:34 PM
|
0
|
2
|
1381
|
|
POST
|
Hi Anuj, 10.8 Desktop .Net SDK is based on different .Net framework version (4.5.2). ArcGIS 10.2 based on 3.5.1. Calling application (ArcMap) .NET version must be greater or equal tool .NET version. Your ArcGIS Destop and ArcObjects SDK version must match. You can build tool on 10.2 and run it on 10.8 (with some changes to ArcMap config file), but not opposite.
... View more
06-16-2020
11:44 PM
|
0
|
0
|
1301
|
|
POST
|
Hi Daniel, Code from SDK ConstructionTool sample works fine, but it doesn't use cursor. // create a new edit operation to encapsulate the string field modifications var modifyStringsOperation = new EditOperation { Name = String.Format("Modify string field '{0}' in layer {1}.", stringFieldName, mapMember.Key.Name) }; ICollection<long> oidSet = new List<long>(); var iCnt = 0; // with each ObjectID of the selected feature foreach (var oid in currentSelectedFeatures[mapMember.Key]) { // set up a new dictionary with fields to modify var modifiedAttributes = new Dictionary<string, object> { // add the name of the string field and the new attribute value to the dictionary // in this example a random string is used {stringFieldName, string.Format("Update {0}", ++iCnt)} }; // put the modify operation on the editor stack modifyStringsOperation.Modify(mapMember.Key, oid, modifiedAttributes); oidSet.Add(oid); } // execute the modify operation to apply the changes await modifyStringsOperation.ExecuteAsync();
... View more
06-09-2020
05:45 AM
|
0
|
1
|
2272
|
|
POST
|
Hi Berndt. Have you tried like this: strMsgs += Await QueuedTask.Run(Return getDefs()) I don't know VB Net syntax, but you must return value from your QueedTask.Run. Another way: strMsgs += Await QueuedTask.Run(Function() Return getDefs() End Function) In c# we use {} instead of Function() End Function. About await and async. You can use Result from QueedTask.Run. Then you do not need add async. Like this: strMsgs += QueuedTask.Run(Function() .... End Function).Result I found info for c# but I think it could be suitable and for VB Net: https://www.exprodat.com/blogs/33195/ (Enabling Edit and Continue section)
... View more
06-09-2020
12:20 AM
|
1
|
2
|
4994
|
|
POST
|
Hi Simon, Have you tried to set docking attributes(dock="group" dockWith="esri_core_contentsDockPane") in config.daml file? Enter your own dockpane id instead of esri_core_contentsDockPane. More info here: https://github.com/esri/arcgis-pro-sdk/wiki/ProGuide-Dockpanes
... View more
06-08-2020
11:58 AM
|
0
|
2
|
1807
|
|
POST
|
Hi, Sample for IDETable, but it will work and for IDEFeatureClass IGPUtilities gputilities = new GPUtilitiesClass(); IDETable TargetTable = (IDETable)gputilities.MakeDataElement(pathToTable, null, null); pathToTable = Path.Combine(pWorkspace.PathName, tableName);
... View more
06-08-2020
04:44 AM
|
0
|
0
|
1119
|
|
POST
|
Hi Mark, Add-in is renamed zip file which contains Install folder with your add-in dll and it libraries. If you compiled add-in dll with library references which have attribute "Copy local" true, then your add-in always will load libraries from zip. To use newest libraries you need to put them to GAC, o before using load them from well known location.
... View more
05-28-2020
06:26 AM
|
0
|
0
|
1439
|
|
POST
|
Hi Vidmas, Esri uses default combobox style in ArcGIS Pro. https://github.com/Esri/arcgis-pro-sdk/wiki/proguide-style-guide#combo-boxCombo Box Default Style: Yes ArcGIS Pro provides default styling for text content of a Combo box control, including mouse over behavior and selection highlight. If needed, style the individual properties such as Background/Foreground by using Esri brushes. <ComboBox Background="{DynamicResource Esri_BackgroundPressedBrush}" Foreground="{DynamicResource Esri_TextMenuBrush}"> <ComboBoxItem >Item1</ComboBoxItem> <ComboBoxItem >Item2</ComboBoxItem> <ComboBoxItem >Item3</ComboBoxItem> </ComboBox> So one of the ways is to set comboboxitem template (add additional Setter from my code to your combobox style) : <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ComboBoxItem}"> <TextBlock Text="{Binding Name}" Style="{DynamicResource Esri_TextBlockRegular}" /> </ControlTemplate> </Setter.Value> </Setter> P.s. Your buttons at the bottom of window (Reset, Cancel, Ok) needs Esri style too to look like in others ArcGIS Pro windows (Style="{DynamicResource Esri_SimpleButton}")
... View more
05-24-2020
10:53 PM
|
2
|
4
|
10032
|
|
POST
|
Hi Helen, The answer depends on your ExcelData property. If your ExcelData property is type of List<string>, then string strAllAccount = string.Join("', '", ExcelData.ToArray());
... View more
05-19-2020
10:19 PM
|
0
|
3
|
2201
|
|
POST
|
Hi Rob, CodeBase property is not suitable for your case. To get the absolute path to the loaded manifest-containing file, use the Assembly.Location property instead. var dllPath = System.Reflection.Assembly.GetExecutingAssembly().Location; Then take directory name from Location and do not use Install folder: var layerFile = System.IO.Path.Combine(Path.GetDirectoryName(dllPath), @"LayersFiles\KILOMETERRIBBON.lyrx"); In Visual Studio project remember to mark your lyrx as Copy to local = true
... View more
05-13-2020
10:28 PM
|
1
|
1
|
1600
|
|
POST
|
You need to use ObservableCollection for datagrid binding and object of your collection must implement INotifyPropertyChanged. I implement IEditableObject too. Then you create new item you must to fill StringValues and ComboValue properties too depending on your layer object.
... View more
05-11-2020
03:30 AM
|
0
|
0
|
2022
|
|
POST
|
Hi Mody, You need to use different templates in xaml for each combobox column. The xaml source of my previous picture is very difficult . It uses triggers and etc.. I have tried to simplify xaml but I am not really sure about bindings validity. <DataGrid Style="{DynamicResource Esri_DataGrid}" HeadersVisibility="Column" IsReadOnly="False" ItemsSource="{Binding AvailableParameters, Mode=TwoWay}" SelectedIndex="{Binding SelectedParameterIndex}" SelectionUnit="FullRow" ScrollViewer.CanContentScroll="True" VerticalScrollBarVisibility="Auto"> <DataGrid.Columns> <DataGridTextColumn Header="Name" Binding="{Binding Name, Mode=OneWay}" IsReadOnly="True" Width="1*"/> <DataGridComboBoxColumn Header="Value" ItemsSource="{Binding DataContext.StringValues, RelativeSource={RelativeSource FindAncestor, AncestorType=DataGrid}}" SelectedItemBinding="{Binding DataContext.ComboValue, RelativeSource={RelativeSource FindAncestor, AncestorType=DataGrid}, Mode=TwoWay}" Width="1*"> </DataGridComboBoxColumn> <DataGridComboBoxColumn Header="Value2" ItemsSource="{Binding DataContext.StringValues2, RelativeSource={RelativeSource FindAncestor, AncestorType=DataGrid}}" SelectedItemBinding="{Binding DataContext.ComboValue2, RelativeSource={RelativeSource FindAncestor, AncestorType=DataGrid}, Mode=TwoWay}" Width="1*"> </DataGridComboBoxColumn> </DataGrid.Columns> </DataGrid> Your binding list object class must have properties StringValues and ComboValue which return some data depending on your layer type. If you need two combox columns then you need to add additional properties StringValues2 and ComboValue2 for next column. Another way is binding to window datacontext: https://gallery.technet.microsoft.com/scriptcenter/WPF-DatagridComboBoxColumn-03c5ea2e Both ways are a little bit tricky, but you can find more info on internet.
... View more
05-11-2020
02:22 AM
|
0
|
0
|
2022
|
| 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
|