POST
|
Overlay graphics are not included in image exports in ArcGIS Pro. I know, because I ran into the exact same issue. This has been conformed by ESRI. It is unclear if this will be added in the future. The alternative is to use the graphics layer instead. Kris
... View more
06-16-2021
12:55 PM
|
1
|
0
|
1526
|
POST
|
That is the same for me. I don't think I ever figured out how to "fix" this. I just ran with it and made sure it looked good at runtime (which is where it really counts) and then moved on. Kris
... View more
06-03-2021
12:27 PM
|
1
|
0
|
4614
|
POST
|
This is a complicated answer. We ran into the same issue when developing our configuration. It took a lot of effort to figure out the right combination of flags and event handlers to make it work. Here is a basic summary of what we did. In the constructor IsSketchTool = true SketchType = Rectangle SketchOutputMode = Screen CompleteSketchMouseUp = true ContextMenuID = set it to the appropriate name you are using (should match that in the Config.daml file) In the OnSketchCompleteAsync method: Before using the QueuedTask, determine if the shift or CTRL key is depressed. We have a library method that determines this. If shift is depressed, then flag the selection mode as add. If control is depressed, then flag the selection mode is remove. Cast the geometry parameter to Polygon and check if Area is 0. If this value is 0, then there was a single point click and not a drag to create a rectangle. If the Area is not 0, then use the appropriate calls to get the features within the geometry area. We have a library method we wrote that does this (it is used in a lot of places) but it is specific to our API so it can't be shared. But it does use the standard AGP SDK API. There are plenty of examples of how to do this. Based on the selection mode, add or remove the features that intersect with the geometry to/from the current selection. I hope that helps. Kris
... View more
06-02-2021
11:52 AM
|
2
|
1
|
3704
|
POST
|
The Wiki has all kinds of details on how to handle this. The main trick is to use the correct Style assignment in the XAML of your window. As long as you do this, then it should look consistent in both light and dark themes. See ProGuide Style Guide · Esri/arcgis-pro-sdk Wiki · GitHub. And check out the rest of the wiki - there are pro guides and snippets. This was a huge hep for me personally when I was setting up our configuration and getting things working. Kris
... View more
06-01-2021
09:33 AM
|
2
|
0
|
4642
|
POST
|
Hello, We have a product that we built as a managed configuration. It has been working fine under ArcGIS Pro 2.6 and 2.7. We recently updated to ArcGIS Pro 2.8 and started getting an “Application has stopped working” crash on startup. We reviewed the dmp file and the error is due to a missing .dll. This is where things start to get interesting. When we dug into the issue, we found that something strange is happening during the proConfigX extraction step. All files in the proConfigX file are correctly extracted initially, but then 64 of those files are subsequently deleted. (You can see this happen by opening File Explorer on the AssemblyCache folder; the files appear briefly and then disappear). Here are the steps to reproduce the problem. Download the WaterGISPro.proConfigX file into Documents\ArcGIS\AddIns\ArcGISPro\Configurations. Create a shortcut to ArcGIS Pro using the following command line parameter /config:WaterGISPro Run ArcGIS Pro using the shortcut ArcGIS Pro will crash and show the AGP crash report dialog Open the AssemblyCache folder (%UserProfile%\AppData\Local\ESRI\ArcGISPro\AssemblyCache) Open the {3f6515f4-079b-4838-9dc6-9e39ebd6a708} folder Notice there are no files starting with A-D. Keeping the assembly cache folder open, double-click the shortcut again. Watch the File Explorer window – you will see files get extracted and then get deleted Every file starting with A thru D is deleted Then ArcGIS Pro crashes Note that there is some random aspect to this behavior; it crashes most times, but occasionally it starts up correctly. We can reproduce this on multiple machines. I am unable to attach the proConfigX file as it is 77 MB. Is there somewhere we can upload the proConfigX file so you can investigate? Thanks, Kris
... View more
05-27-2021
02:05 PM
|
0
|
0
|
441
|
POST
|
Make sure you add a using statement for System.Linq. FirstOrDefault() is actually an extension method defined in that namespace. Kris
... View more
05-27-2021
10:16 AM
|
0
|
0
|
1248
|
POST
|
My pleasure. I wouldn't hate on VB. Just be happy it's not VB6 and you have to convert from VB6 to VB.NET. Keep in mind that a lot of features currently in C# may not be available in VB.NET. That means you may have even more verbose code than you normally have with VB.NET. If there is any way you can move to C#, I would do it. Make the case hard to the powers that be. "Technical debt" would be my biggest argument. There are far fewer VB.NET developers out there than C#. It may be "cheaper" now to stay in VB.NET but it will be far more expensive down the line. Kris
... View more
05-21-2021
07:30 AM
|
3
|
0
|
1124
|
POST
|
There are free converters online for C# to VB.Net but I don't know how well they will work with Linq. Here is what I came up with: Dim layer as FeatureLayer = map.GetLayersAsFlattenedList().OfType(Of FeatureLayer)().Where(Function(layer) layer.Name = layerName).FirstOrDefault() To figure out the lamda expression, I searched for "lambda vb.net". You can also search for "linq vb.net" for some samples as well. HTH. Kris
... View more
05-21-2021
07:19 AM
|
1
|
0
|
1146
|
POST
|
Thanks for the link @KirkKuykendall1. I was hoping we'd be able to do something without using an add-in. Or at least have the button classes in a non-addin project that can be referenced from the add-in's config.daml file. There is an assembly attribute for a button but specifying the other assembly doesn't seem to make it work. ArcGISpro.dll (non-addin assembly where button classes are located) ArcgISPro.UI.dll (add-in project with config.daml file) I would like to reference a button class defined in ArcGISPro.dll in the ArcGISPro.UI.dll The goal here is to keep duplicate code to an absolute minimum. Why have a button class called "EditGeoTablesButton" in both products when it can be defined once in ArcGISPro.dll, referenced via a button definition in ArcGISPro.UI.dll and then that button used in the two product's config.daml files. The two products simply reference the button in the add-in, the add-in config.daml file finds the button class in ArcGISPro.dll. Kris
... View more
01-26-2021
10:38 AM
|
0
|
2
|
1234
|
POST
|
Hello, We currently have two products that integrate with ArcGIS Pro. There is a lot of feature overlap and to avoid duplicating code, we'd like to share button classes. Each product is setup as a configuration (using the /config:<name> command line parameter) and each has its own config.daml file. We currently have an add-in project with a config.daml file that defines shared buttons and references classes in the same project. These shared buttons are referenced from the config.daml file in the two product configurations. However, we'd like to have these shared button classes in a project that is *not* an add-in project. Is this possible? We understand that images must be in an add-in which is fine. It's the buttons, menus, conditions, etc. that we need to share but would like not to be in an add-in. If you need any clarification, please ask. TIA, Kris
... View more
01-26-2021
09:26 AM
|
0
|
5
|
1247
|
POST
|
Thank you both for your responses. This is very helpful. In addition, i am trying to figure out the id of the context menu that is opened with you right-click when you have the explore tool active. We would like to add a tool to that list. I've tried several of the context menu ids that I found in the Daml constants but they didn't seem to work I looked in the customize ribbon dialog and couldn't find a way to find the id of the context menu that way. Thanks again. Kris
... View more
10-27-2020
07:13 AM
|
0
|
0
|
1087
|
POST
|
Hi All, I would like to add some custom commands to the explore context menu. This is the drop-down menu for the Explore split button. Does anyone know what the name of this menu is? I can't seem to find it in the list of constants. Thanks, Kris Culin
... View more
10-23-2020
12:36 PM
|
0
|
3
|
1127
|
POST
|
Thanks Uma. I will investigate this idea later this week when I have a little bit of extra time. I do have a question related to this though. Is there a way *not* to add the features to the undo stack? Typically features are created using EditOperation.Create. Is there an alternative where nothing is added to the undo stack (and it also won't "confuse" AGP when undo/redo is used as well). TIA, Kris
... View more
10-07-2020
10:22 AM
|
0
|
1
|
1481
|
POST
|
Thanks Uma. I will look into the Map Notes to see if that is an approach we can take. Is there a sample that shows how map notes are used (or created)? Right now I am working on taking a screen capture of just the map area and making pretty good progress. Are there plans in the future to include overlays in the export API? This was available in ArcMap. Thanks again for your assistance. Kris
... View more
10-07-2020
08:23 AM
|
0
|
3
|
1481
|
Title | Kudos | Posted |
---|---|---|
1 | 05-22-2024 07:46 AM | |
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 |
Online Status |
Offline
|
Date Last Visited |
08-23-2024
02:28 PM
|