|
POST
|
You might check your namespaces, there is a new OnSelectionChange() method added at Version 3.0 to ArcGIS.desktop.Framework.Contracts and System.Windows.Controls.Primitives that is available for several of the controls (e.g., SearchTextBox,, ComboBox, etc.). These were not available at 2.9 and prior. They could be 'masking' your call. Do you need a override modifier? The override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event.
... View more
04-11-2023
09:30 AM
|
0
|
3
|
1645
|
|
POST
|
Just a comment regarding Visual Studio 2022. The new version of VS treats many 'warning' messages as errors that stop a build. In VS these same issues were treated as warnings or informational only so you still could get a clean build. Check the error messages and see if you can change your build settings to ignore XDG0005 -them if they appear in consequential.
... View more
04-11-2023
09:15 AM
|
0
|
1
|
2812
|
|
POST
|
To control the color like you describe you may need to build your own FoldierLocator dialog and use the showdialog() command to open it. If you create your own form there is a BackColor property you can use. You would call the following Subroutined after instantiating the form but Before showing it. In this example I've stored my desired Form color in the myAppColor environment variable. I've used 'Named' colors as available from the SystemColors collection. Sub setControlColor(ByRef theForm As System.Windows.Forms.Form)
Dim theControl As Control
Try
theForm.BackColor = My.Settings.Default.myAppColor
Catch eX As Exception
'unable to get the color
theForm.BackColor = SystemColors.Control
End Try
For Each theControl In theForm.Controls
If theControl.GetType Is GetType(TextBox) Then
'do nothing since we want white backgrounds in our text box
Else
theControl.BackColor = My.Settings.Default.myAppColor
theControl.Invalidate()
End If
If theControl.GetType Is GetType(System.Windows.Forms.Button) Then
Dim theButton As System.Windows.Forms.Button
theButton = theControl
theButton.UseVisualStyleBackColor = False
End If
Next
theForm.Refresh()
End Sub
... View more
04-10-2023
03:11 PM
|
0
|
0
|
1480
|
|
POST
|
Since you converted the MXDs to aprx why are you surprised that the default map is not 'open'? Go to the Catalog View pane, map folder, and open the map from there. To do it programmatically you would need to grab the map document collection then, since you know there is only one map, you could do something like map[[0].open(). Otherwise you would need to search the collection by Name.
... View more
04-05-2023
02:14 PM
|
0
|
1
|
5188
|
|
POST
|
if your always getting null, you should check that you have Activated the tab your button is on. FrameworkApplication.ActivateTab('esri_mapping_homeTab'); One activated you execute the button with command..Execute() as you show.
... View more
03-16-2023
02:17 PM
|
0
|
0
|
3111
|
|
POST
|
Prior to upgrading your add-In project to .Net 6 and ArcGIS Pro 3.x, you should upgrade Pro on the developer machine to your target Pro version. Secondly, your SDK version needs to match the Pro target. If you are pulling the SDK from the web it will get the 'newest' SDK by default, which is now Pro 3.1. If you need Pro 3.0 SDK then a manual install of the SDK from ESRI downloads site is required. Look in Project Properties and Build Configuration to update .Net Framework versions. I also had to update csproj as describe above. <?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net6.0-windows</TargetFramework> <RuntimeIdentifier>win10-x64</RuntimeIdentifier> Don't forget to update your Config.DAML! <?xml version="1.0" encoding="utf-8"?> <ArcGIS defaultAssembly="GISWorkbenchPro3.dll" defaultNamespace="GISWorkbenchPro3" xmlns="http://schemas.esri.com/DADF/Registry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.esri.com/DADF/Registry file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd"> <AddInInfo id="{8e190f33-95f2-4249-ae7d-bcfa45a44e72}" version="3.0" desktopVersion="3.0.3.36057">
... View more
03-15-2023
10:21 AM
|
0
|
0
|
2118
|
|
IDEA
|
The Export Training Data tool is long running. Currently the status bar will report 100% complete then take one hour to 3 days to complete writing files. This results in users restarting their computer or running out of disk space during the image chip creation process (which appears to happen AFTER the % done is at 100%). An 'Estimate Training Data Creation Time' tool is needed AND the status bar needs to be more representative of the actual time required to process the data.
... View more
03-15-2023
09:35 AM
|
3
|
1
|
1874
|
|
POST
|
Have you considered using a Map Layout Template (.pagx file extension) that would contain the custom definitions you need? The legend, labels, symbols, etc. can be given unique tags/names so they can be updated in code. In our case we have a user select from a list of templates in a form and then enter titles (on the form). When they click Apply the selected template is loaded with the current ActiveMap in the frame and the maps titles (defined in the template) are automatically updated. *Layout files (.pagx file extension) are saved layouts that can be shared across projects. They can be used as a template for new projects and can create consistency across a set of layouts or throughout an organization.
... View more
03-08-2023
09:47 AM
|
0
|
0
|
4797
|
|
POST
|
No, if you update the Config.daml date and have edited at least one form or module it should work. However, if it does not then you need to do a Clean Solution | Rebuild Solution to pick-up your changes. Visual Studio 2019 was better than 2022 in doing complete builds. VS 2022 try's to be Smart and will not rebuild a file if it thinks the Resources have not changed. Unfortunately, for an ArcGIS Pro Add-In this does not result in the desired behavior.
... View more
03-07-2023
01:44 PM
|
2
|
0
|
2264
|
|
POST
|
Two things to check. 1. in your Config.daml did you update the DATE prior to your (re)build? ArcGIS Pro will only reload an Add-in into the cache if the date has been changed in this file. 2. delete all files from your solutions folder in the.\bin directory. This is where your build results are saved; if you click into the folders, you should see a Debug, Release folder then a net6.0-windows folder that contains the actual compiled Add-in. Richard
... View more
03-07-2023
11:39 AM
|
1
|
2
|
2285
|
|
POST
|
The real question is WHY is System.Data.SqlClient.dll event included in the ArcGIS Pro 3.0 install package, and why is it located at C:\Program Files\ArcGIS\Pro\bin? ArcGIS Pro is built on .Net Framework 6.0.5 which does not support the use of System.Data.SqlClient. All Add-ins should be rebuilt to use Microsoft.Data.SqlClient and WebView 2 (vs. WebBrowser).
... View more
02-15-2023
12:23 PM
|
0
|
0
|
2023
|
|
POST
|
I guess this could have been in ArcGIS Pro 3.0 which I used for UC 2022, then deleted and reverted to ArcGIS Pro 2.9.5 for production work. That being stated this add-in is not located within my defined Add-in paths.
... View more
02-13-2023
08:58 AM
|
0
|
0
|
1807
|
|
POST
|
Found what I was looking for: ProConcepts 3.0 Migration Guide · Esri/arcgis-pro-sdk Wiki · GitHub In 2.x this line: var x = ArcGIS.Desktop.Mapping.LayerFactory.Instance.CreateFeatureLayer(uri, mapView.Map, 0, theShortName) Is now replaced by: var layerParams = new FeatureLayerCreationParams(uri) { MapMemberPosition = MapMemberPosition.AddToBottom, Name = theShortName }; var x = LayerFactory.Instance.CreateLayer<FeatureLayer>(layerParams, mapView.Map);
... View more
02-09-2023
05:11 PM
|
1
|
0
|
1166
|
|
POST
|
In ArcGIS.Desktop.Mapping within the ArcGIS Pro 3.0.3 SDK the following method has been removed: var x = LayerFactory.Instance.CreateRasterLayer(uri, mapView.Map, 0, theShortName) var x = LayerFactory.Instance.CreateFeatureLayer(uri, mapView.Map, 0, theShortName) what are there replacement?
... View more
02-09-2023
04:41 PM
|
0
|
1
|
1175
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 1 | a month ago | |
| 1 | 06-10-2026 08:40 AM | |
| 2 | 06-12-2026 08:45 AM | |
| 1 | 10-01-2025 09:00 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|