|
POST
|
.NET 6 to .NET 8 is not a breaking change. Your 3.0-3.2 addins will run on 3.3 with no need to recompile. If you are using specific 3rd party dlls/drivers, etc. then their forwards compatibility wld need to be verified but, generally speaking, Microsoft .NET 6 is forwards compatible with .NET 8 same as the Esri Pro assemblies.
... View more
03-14-2024
08:37 AM
|
2
|
0
|
1694
|
|
POST
|
Im not sure it can be removed. I think what u r seeing is related to this: https://pro.arcgis.com/en/pro-app/latest/help/data/kml/kml-layers.htm Scroll down to the "Overlays" and "Dynamic content" sections. WIthin the "Overlays" section, it states: KML files can include screen overlays and ground overlays. Screen overlays are
images that appear at a set location on the screen over the display. When you
pan the map or scene, their location relative to the screen is fixed. They can
be turned on and off from the Contents pane, but they cannot be modified.
... View more
03-08-2024
05:21 PM
|
1
|
1
|
1408
|
|
POST
|
I see the issue. This is a tricky one. Because u r making a map-on-the-fly, it does not have an associated MapView. The MapView - as in the "rendering" or "display" of the map (and not the map itself - which is the "data" or model ) is what actually gets exported..... For this to work u need to split it into 2 separate steps - or button clicks....The first step creates the map and renderers it on a MapView. The second step, or "click" creates your layout on-the-fly and exports it. These do not have to happen, of course, in an exact sequence....the requirement for the Map frame to be exported is that the Map, at some point in time, prior to the export, has been rendered on a MapView. It does not have to "immediately" precede the export. To create a MapView pane to render/display the map programmatically do: await FrameworkApplication.Panes.CreateMapPaneAsync(newMap); So, in the case of your specific code example, I made two buttons - a "Create Map" and a "Create Export". The Create Map consolidates all the code to create the map, add the layer, and create a MapView. The Create Export is, basically, everything else. Create the map: protected override void OnClick() {
var census_map = await QueuedTask.Run(() =>
{
var map = MapFactory.Instance.CreateMap(
"Census Map",
MapType.Map,
MapViewingMode.Map,
Basemap.NationalGeographic
);
string url =
@"https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer";
Uri uri = new Uri(url);
LayerFactory.Instance.CreateLayer(uri, map);
return map;
});
FrameworkApplication.Panes.CreateMapPaneAsync(census_map);
}
} Create the export: protected override void OnClick()
{
//Find the map to be exported
Map census_map = null;
var map_panes = FrameworkApplication.Panes.OfType<IMapPane>().ToList();
foreach(var map_pane in map_panes) {
if (map_pane.MapView.Map.Name == "Census Map") {
census_map = map_pane.MapView.Map;
break;
}
}
if (census_map == null) {
//Early exit, MessageBox, etc.
}
await QueuedTask.Run(() => {
//Create the layout
//Export, etc.
};
...
... View more
02-21-2024
01:30 PM
|
1
|
0
|
1359
|
|
POST
|
For the map view _only_ there is mapView.CaptureThumbnail(width, height) https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic19522.html but it sounds like u might already be using this? For a legend, northarrow, other marginalia, etc. u r basically describing the purpose of a Layout. https://pro.arcgis.com/en/pro-app/latest/help/layouts/layouts-in-arcgis-pro.htm Layouts can be exported to a variety of different formats including various image formats and pdf. https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic22445.html - u will also find some code examples on this reference page.
... View more
02-14-2024
10:04 AM
|
1
|
1
|
1272
|
|
POST
|
>I see configurationfolder is still available in the wiki. I am moving my code to latest ArcGIS pro 3.2.x and we use configurationfolder to keep users on the latest version. Is this going away? https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-Registry-Keys < No. >Can anyone think of an available solution to have Pro look to the portal/url for update first. This would be ideal for us This wld be something good to propose on ArcGIS Pro Ideas: https://community.esri.com/t5/arcgis-pro-ideas/idb-p/arcgis-pro-ideas
... View more
02-14-2024
09:50 AM
|
0
|
0
|
779
|
|
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
|
960
|
|
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
|
2
|
1878
|
|
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
|
585
|
|
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
|
1638
|
|
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
|
1657
|
|
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
|
6514
|
|
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
|
1961
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | 3 weeks ago | |
| 1 | 01-08-2026 02:03 PM | |
| 1 | 01-08-2026 02:15 PM | |
| 3 | 12-17-2025 11:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|