IDEA
|
Better support should be added to the SDK that specifies what versions of ArcGIS Pro are supported by a specific configuration. For example, a property in the ConfigurationManager could return a list of versions that are supported. Only the versions at or above the versions specified would be supported and a message displayed if you are running an older version. For example, if the SupportedVersions return only "3.2.2" and the user is running 3.2.1, then a message would be displayed that ArcGIS Pro 3.2.2 or higher is required. This may be necessary if a newer SDK contains functionality that the configuration uses that older versions do not provide. This includes something that was patched in an update like 3.2.2, not just a minor release of 3.2.
... View more
03-01-2024
02:31 PM
|
0
|
0
|
178
|
IDEA
|
When the /config command line parameter is used on a shortcut to ArcGIS Pro and the configuration fails to load, ArcGIS Pro should display a message reflecting that failure. For example, if /config:TestPro is provided and it fails to load, then a message should be displayed: The configuration 'TestPro' failed to load. If the proConfigX file was not found, that could be included in the message as well.
... View more
03-01-2024
02:23 PM
|
0
|
0
|
197
|
POST
|
Thank you, Kory. As a developer, I know how crucial it is to have sample code that reproduces an issue. It makes it a lot easier to diagnosis the issue and fix it. So, it was my pleasure to put something together. An AGP developer has been in contact already, and I've brought my manager into the email thread, so he is kept abreast of the status. We look forward to the patch with the fix. Kris
... View more
12-11-2023
05:52 AM
|
1
|
0
|
234
|
POST
|
Hi All, I am hoping someone in the community can help me. Even better, someone on the AGP development team will see this post and jump on it. We currently have an AGP configuration to host our application inside ArcGIS Pro. We started initially with ArcGIS Pro 2.6. We just recently upgraded our code base to target net6 and we now support ArcGIS Pro 3.1+. We also have 27 docking windows in our application. These controls are Windows Forms controls, and we host them inside of a WindowsFormsHost in the DockPane in ArcGIS Pro. We did this in ArcGIS Pro 2.6+ and brought it forward to ArcGIS 3.1+. However, we have noticed one major regression. Keypresses are being eaten by ArcGIS Pro 3.1+. So, if a user tries to rename a node in one of our docking windows and starts typing, not all the letters will be typed. If I type the alphabet a-z, only the letters "efghiklrt" are typed into the node's label. All other letters are skipped/ignored. This behavior works 100% in ArcGIS Pro 2.x. It does NOT work in ArcGIS Pro 3.x. I have attached two samples. AGPEatenKeysAddIn.zip is for ArcGIS Pro 3.x. AGPEatenKeysAppAGP2.zip is for AGP2. All you need to do is extract, open the solution, build and run in the appropriate version of AGP. There is a button on the Add In tab that will open the dock pane that is in the add-in. Just rename any node in the tree provided and start typing. Note that in the AGP2 sample F2 won't rename, and you'll need to single click the node with the mouse to start editing node. F2 is implemented in the AGP3 sample. We are not in the position to switch our controls to WPF. It was already an 18-month effort to target net6 and it would take far longer to start using WPF in any capacity. Using WPF controls is *NOT* an option. Any suggestions for a workaround are appreciated and will be considered. I am really hoping an ESRI developer will dig into this issue. Maybe they can find a work around but better is to fix the issue since it is a regression. If you have any questions or need more information, please ask. TIA, Kris
... View more
12-07-2023
05:21 AM
|
1
|
2
|
370
|
POST
|
Excellent. Thank you so much. My manager will be very pleased. Kris
... View more
12-05-2023
12:56 PM
|
0
|
0
|
156
|
POST
|
Hi All, I am working to modify the context menu for feature layers in the contents pane. One of the menu items, "Create Chart" (which has a submenu), I would like to move into our own submenu. However, I am unable to find the ID for this. I cloned and searched the SDK (specifically the daml files) and have found nothing. There is no item with the label "Create Chart" but it is definitely appearing in the context menu: This is our modified context menu: As you can see, "Create Chart" is appearing after "Data" and before "Sharing". However, this menu item is *not* in our config.daml file. I cannot find it referenced anywhere in the AGP SDK daml files. I have no add-ins installed and our application runs as a configuration in AGP. I am using a Basic license of ArcGIS Pro 3.2. TIA, Kris
... View more
12-05-2023
08:09 AM
|
0
|
2
|
247
|
POST
|
Hello, Our application has about 27 dock panes that can be opened by our users. These are typically grouped together where they relate to each other so they are easier to find when open. In our daml file, we are using dock="group" and dockWith="id" where "id" is the id of our dockPane. However, the dock panes open docked to the left by default. Questions: Can we open the dock pane floating by default but also grouped together so that common panes are tabbed but floating? For example, I have dock panes "Dock1", "Dock2", and "Dock3". I want them floating but docked together when they are initially opened. If I use dock="group" they get docked together but they are docked to the left by default. If I set dock="float" they open floating but not docked together even though dockWith is set. Is there a way to reset the layout that was saved in a previous session of AGP so on the next open (or even in the current session), the default settings of the dock pane are used from the daml file? It feels like this used to work but regressed in AGP 3.x but I can't say for sure. TIA, Kris
... View more
11-14-2023
07:16 AM
|
1
|
0
|
208
|
POST
|
In your config.daml file, change your desktopVersion attribute to 3.0. That should get it working. Kris
... View more
04-18-2023
02:10 PM
|
0
|
0
|
973
|
POST
|
Hi Chris, Everything you have described in your list CAN be done in ArcGIS Pro using the SDK via an AddIn. The question is whether you will target ArcGIS Pro 2.x or 3.x. I can't tell you what to use but I do recommend that you target ArcGIS Pro 3. The documentation is current for that version and finding older documentation could be problematic. I recommend that you read through the sdk wiki on GitHub at Home · Esri/arcgis-pro-sdk Wiki (github.com). It is well written and has lots and lots of details. They also have a set of samples you can clone from GitHub. I made extensive use of the samples to understand how things work. Creating tools (for layout), buttons for the ribbon, etc., is very easy in ArcGIS Pro. I think you will enjoy using the SDK. Since you mention Windows Forms, I do need to point out that AGP3 targets .NET6. AGP2 targets .NET Framework 4.8. Don't let that discourage you though. It doesn't sound like your code is super extensive so getting it .NET 6 read should not be all that difficult (I could be wrong - just making an assumption here - and comparing to my own very extensive product line that took months to move to net6). Again, don't get discouraged. Microsoft has really good documentation on the migration from .NET Framework to .NET 5+. Check this out - Migrate a Windows Forms app to .NET 5 - Windows Forms .NET | Microsoft Learn. Although it says .NET 5, it does apply to .NET 5+. If your code base is 100% C# then the migration should go very, very smoothly. If you have 3rd party user controls, you'll need to upgrade to net6 compatible versions. At this point, all the major vendors have net6 compatible controls. Good luck and have some fun. Kris
... View more
04-17-2023
03:43 PM
|
2
|
1
|
597
|
POST
|
Hello, My team is in the process of upgrading our configuration from AGP 2.9 to AGP 3.1. During our initial testing, we found that our delete behavior is not working by causing an invalid operation on the EditOperation. We tracked down the issue to the change in behavior for the EventToken property on the EditOperation class. This is a direct copy of the summary comments for the property: //
// Summary:
// Provides a way for calling code to identify a particular EditOperation within
// a subsequent EditEvent. Setting an EventToken in an EditOperation is optional
// - by default it is null. If set to a non-null object, the EditOperation is subsequently
// successful, and, an EditEvent is published, then the EventToken object set here,
// will be available from the corresponding ArcGIS.Desktop.Editing.Events.EditCompletedEventArgs.EventToken. However, there was an apparent bug in AGP 2.9. In 2.9, when creating a chained edit operation, the parent was not being set to the internal private field. As a result, the EditOperation, if it was the parent or the chained instance, held on to its own EventToken instance. Look at the EventToken property here: public object EventToken
{
get
{
if (_parentOperation == null)
{
return _eventToken;
}
return _parentOperation.EventToken;
}
set
{
ThrowIfReentrant();
_eventToken = value;
}
} In AGP 2.x, the _parentOperation field was always null. Therefore, when the EventToken was assigned on a ChainedEditOperation instance, it would hold onto its own EventToken and the getter would always return that instance, not the parent's instance. In AGP 3.x, this changed. You apparently "fixed" this bug. Even though you can assign the EventToken to a ChainedEditOperation, it is only returned IF the parent is null. But the parent is NEVER null for a ChainedEditOperation. Why do you have the parent null check in the first place? Based on the comments, it seems like you should be able to assign the EventToken independently of the parent, which is what we do in our code. We use the EventToken in some very important use cases. Working around this fix is difficult (not impossible, but difficult). Would it be possible to revert the fix in some way to bring back the original behavior? Perhaps add an overload for the CreateChainedEditOperation where you can pass in the EventToken you want to use? Though it may not be possible to know at the time the method is called what to provide. Or maybe instead, the overload takes a Boolean to flag to use a local instance instead of the parent EditOperation's instance of the EventToken. The point I am trying to make is that this was a VERY subtle change in behavior and the only reason I figured it out is because I am very good at debugging my own code. I also compared the call stack between the use of AGP 3.x SDK AGP 2.x SDK (which is no easy feat). I am hoping someone from ESRI can respond to this with details on what is truly expected with the use of the EventToken. It really makes you wonder what other subtle changes might be in the SDK that could cause unexpected behavioral changes. Kris Culin
... View more
04-12-2023
01:46 AM
|
0
|
0
|
169
|
POST
|
I'm getting the same message. The target framework for the project is net48 (which is required by the AGP 2.x SDK). It's already in the SDK project format though. Could that be the problem? Kris
... View more
03-15-2023
08:59 AM
|
0
|
0
|
477
|
POST
|
There is a migration process to go from .NET Framework 4.x to .NET 6. There is lots of documentation online, including YouTube. Just do a search. Microsoft has some pretty good workflows/steps as well. There is an extension available in VS2019 that can analyze your code to determine if there would be any issues during the migration. I would look into this as well. .NET 6 has a rewritten implementation of System.Windows.Forms and for the most part can be migrated with few issues (especially if you have no 3rd party controls). Kris
... View more
07-19-2022
10:08 AM
|
0
|
0
|
770
|
POST
|
@DavidMrázek You should also look at OnToolDoubleClick and OnDoubleClick. It appears we use the latter. Kris
... View more
06-29-2022
02:03 AM
|
1
|
1
|
627
|
BLOG
|
Thanks @Anonymous User. I figured that would be the case but I wanted to confirm anyway. It is unfortunate as it will make it more difficult to support 2.x for our existing users until the upgrade is complete. Kris
... View more
06-23-2022
02:35 PM
|
2
|
0
|
575
|
BLOG
|
@Anonymous User Will it be possible to install ArcGIS Pro 2.x and 3.0 side-by-side? Or can only one of them be installed at the same time? Regards, Kris Culin
... View more
06-23-2022
01:56 PM
|
0
|
0
|
617
|
Title | Kudos | Posted |
---|---|---|
1 | 11-14-2023 07:16 AM | |
1 | 12-11-2023 05:52 AM | |
1 | 12-07-2023 05:21 AM | |
2 | 04-17-2023 03:43 PM | |
1 | 06-29-2022 02:03 AM |
Online Status |
Offline
|
Date Last Visited |
03-01-2024
10:33 PM
|