POST
|
Mody, I think what you are after is "LookupSymbol" on FeatureLayer: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic26414.html Also, on "CanLookupSymbol" https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic26409.html there is a list of supported renderers: CIMSimpleRenderer CIMUniqueValueRenderer CIMClassbreaksRenderer Graduated Unclassed CIMDictionaryRenderer CIMProportionalRenderer
... View more
02-14-2024
09:43 AM
|
0
|
1
|
154
|
POST
|
This is currently not supported. We will take this as a new requirement. We will try for 3.3 but it may not be possible until 3.4. Note: this is supported via REST - perhaps u may be able to use python or similar to script a little utility: https://developers.arcgis.com/rest/services-reference/enterprise/generate-image.htm
... View more
02-14-2024
09:36 AM
|
0
|
0
|
99
|
POST
|
it's on the MapView https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic19525.html https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic19523.html
... View more
02-12-2024
08:49 AM
|
0
|
0
|
69
|
POST
|
in the code snippet, I see two potential issues: 1. "Fields" property is defined as List of "Field" - unless u have a data template defined, I would change it to List<string> and store the field _name_ or alias rather than the field object itself. 2. U may need to add a manual property notification event after u change the list of field (names). So something like - NotifyPropertyChanged("Fields") right after listOfFields is updated - this alerts the binding that the list has changed and will refresh the combo box contents.
... View more
01-03-2024
09:25 AM
|
1
|
0
|
306
|
POST
|
>I am unaware how can I access the attribute field of that particular feature class. 1. Select/Search for the row(s) u want to retrieve from the feature class 2. Loop through the rows in the row cursor retrieving the value(s) from each row using either the name of the field or a field index (retrieved from FindField). FindField is useful for situations where u dont know if the returned rows contains the field u r looking for - in that case it will return "-1" rather than a 0-based field index. A good place to start learning more is here - this section of the GDB concept doc goes into quite some detail on how to select and search for rows and the pattern to use to retrieve attribute values: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#querying-data
... View more
01-02-2024
08:49 AM
|
2
|
1
|
325
|
POST
|
All Pro .pdb files are optimized and are stripped of debug symbol information. Therefore my default setting is "Enable Just My Code" to skip the Pro .pdb symbol loading. They have nothing usable in them anyway so this setting helps to speed up the Pro application startup in the debugger. As an example: 'ArcGISPro.exe' (CoreCLR: clrhost): Loaded 'C:\ArcGIS\bin\Extensions\Editing\ArcGIS.Desktop.Editing.dll'.
Skipped loading symbols. Module is optimized and the debugger option
'Just My Code' is enabled. Usually pdbs dont load if they are missing/cannot be found or dont match the version of the dll they are "paired" with. Perhaps that is the case in your situation? that the debugger is finding older pdbs...? but, that all said, I am not sure what difference it is making to your debug experience (not loading them) given that all user code/symbol info is optimized away.... Anyway, here's an article from MS - it may hlp u in debugging why your pdbs dont load, espec if u do not want to use the "Just My Code" option: https://learn.microsoft.com/en-us/visualstudio/debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger?view=vs-2022#compiler-symbol-options
... View more
12-20-2023
05:59 PM
|
1
|
0
|
954
|
POST
|
The best you can do is add your own notification to the application. The Create dockpane "built-in" message is not accessible. var feature_name = "Parcels";
ArcGIS.Desktop.Framework.FrameworkApplication.AddNotification(
new ArcGIS.Desktop.Framework.Notification() {
Message = $"Create {feature_name} complete",
Title = "Create features",
ImageUrl = @"pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/MarsCat32.png"
}
);
... View more
12-20-2023
02:50 PM
|
2
|
2
|
361
|
POST
|
hi mody, this actually proved to be a lot trickier than I expected. Seems Datagrid is not "fully" WPF compliant - it does not have a dependency property for its selected items (the way, say a ListBox or ComboBox has). https://stackoverflow.com/questions/22868445/select-multiple-items-from-a-datagrid-in-an-mvvm-wpf-project gave some options for a solution. I went with this one: >>One way to to what you want is to register the SelectionChanged event of the DataGrid to update the property of your ViewModel, that stores the selected items.<< Sub-classing the Datagrid and adding a dependency property for the selected items is a more sophisticated way to go for sure, and is explained in the stackoverflow post, but using the "SelectionChanged" event on the datagrid is v straighforward and this, at least, should get u pointed in the right direction. I will get this added as a sample to community samples for a complete solution. It's too much code to paste here in its entirety. <UserControl x:Class="DatagridMultiSelect.UI.DataGridDockpaneView"
....>
....
<Grid>
....
<DataGrid Grid.Row="1" HorizontalAlignment="Stretch" Height="Auto"
ItemsSource="{Binding FeatureData}" VerticalAlignment="Top"
x:Name="dataGrid"
Style="{DynamicResource Esri_DataGrid}"
HeadersVisibility="Column"
AutoGenerateColumns="True"
IsReadOnly="True"
SelectionMode="Extended"
SelectionUnit="FullRow"
CanUserSortColumns="True"
RowHeaderWidth="0" Margin="0,0,5,0"/> Code behind of the view: public partial class DataGridDockpaneView : UserControl {
public DataGridDockpaneView()
{
InitializeComponent();
this.Loaded += DataGridDockpaneView_Loaded;
}
private void DataGridDockpaneView_Loaded(object sender, RoutedEventArgs e)
{
var dg_vm = this.DataContext as DataGridDockpaneViewModel;
dg_vm.SetDataGrid(this.dataGrid);
} and in the dockpane view model: internal class DataGridDockpaneViewModel : DockPane
{
private const string _dockPaneID = "DatagridMultiSelect_UI_DataGridDockpane";
private DataGrid _dataGrid = null;
private static readonly object _lock = new object();
internal void SetDataGrid(DataGrid dataGrid) {
_dataGrid = dataGrid;//wire up the datagrid
//From:https://stackoverflow.com/questions/22868445/select-multiple-items-from-a-datagrid-in-an-mvvm-wpf-project
_dataGrid.SelectionChanged += (o, e) => {
var grid = o as DataGrid;
var selected = grid.SelectedItems;
lock (_lock) {
//"MyRecord" is whatever your custom DataGrid
//content items are...
var sel_fd = selected.OfType<MyRecord>().ToList();
//TODO - use the selection from the grid...
//
}
};
}
...
//Elsewhere:
internal class MyRecord
{
//your custom class
}
... View more
12-18-2023
05:07 PM
|
0
|
0
|
279
|
POST
|
this might help: https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Geometry#build-a-donut-polygon
... View more
12-11-2023
10:44 PM
|
1
|
1
|
263
|
POST
|
Gotcha. it's not supported. i'll take this as a new requirement for GP
... View more
12-08-2023
08:57 AM
|
0
|
2
|
414
|
POST
|
@sgn_GSI i did a quick scan of DigiCert's web site for KeyLocker: https://knowledge.digicert.com/solution/digicert-keylocker Sounds like KeyLocker performs in the same role as the USB token - as in, KeyLocker wld hold the private keys but in the cloud. Note step 9: "Your certificate is issued and associated with the key generated and stored in KeyLocker"... so probably a similar workflow as with a USB - once u sign up w/KeyLocker, they say u get a certificate without private keys that u then use for signing (I assume it goes in the store? same as w a USB) and the actual request for the private key during signing wld most likely trigger the call to the KeyLocker? The designated "KeyLocker lead" is, I guess, whoever has the password allowing sign in to the KeyLocker (step 10) and who, presumably, is responsible for the signing. Looks like they charge u for each signing (in batches of 1000) tho rather than a one time purchase cost of a USB based token or similar hardware device (w/ unlimited use until the certificate expires). However, there is the convenience of not needing a physical USB or smart card or other device. Obviously, with these new workflows, automated signing/unattended signing is prob going to be a problem as signing cld require a pwd/PIN each time (whether KeyLocker or USB). With KeyLocker it sounds like u have to be careful too if u r running multiple builds w/signing as u cld quicky burn through your 1000 signings limit.
... View more
12-07-2023
06:01 PM
|
0
|
1
|
484
|
POST
|
> that would defeat the whole purpose of the new requirement imposed by the CA/B. I dont think so. the certificate in the store (read from the USB by the OS) wld be without the private keys (unlike w/ the old spec). For YubiKey specifically, I believe it provides a smart card minidriver that the Microsoft crypto api loads when it encounters, in this case, a YubiKey. The certificate (in the store) from the USB, and -without- the private keys - has an associated cryptographic provider that gets called (by the api) to compute the signature. This triggers the whole PIN/pwd prompt to protect access to the private key - which is on the USB - and is required to complete the signing process. Obviously the USB must be present or signing fails. ArcGISSignAddin.exe is just a wrapper on top of the windows crypto api and shld just work. There's no external change to the crypto api afaik. yes we are looking at this.
... View more
12-07-2023
03:57 PM
|
0
|
3
|
487
|
Title | Kudos | Posted |
---|---|---|
2 | a week ago | |
1 | 03-18-2024 06:28 PM | |
1 | 03-19-2024 10:15 AM | |
1 | 03-18-2024 03:46 PM | |
2 | 03-14-2024 08:37 AM |
Online Status |
Online
|
Date Last Visited |
29 seconds ago
|