POST
|
Hi Thomas, Thanks for that. We did try something like that but we got some Not on this thread errors. That's probably us as we added it to an existing synchronous codebase. What we'll do in future is have a test project that does simple things in the async world. Once that is working so we know what we are doing is Ok; we can then try and get it to run synched. Thanks Adam
... View more
08-22-2015
07:17 AM
|
0
|
0
|
486
|
POST
|
Hi Thomas, Thanks for your reply. That was precisely my point. If we use await in a function then that function has to be marked as async and so it goes on up the entire stack. At some point we want to sync up and also be guaranteed, for instance, that the FeatureClass we create in code (annoyingly via Geoprocessing) has been created before we make a field, before we then add a row etc etc. That's fine for greenfield development but adding this to a large existing codebase is going to require major rework. The time (and therefore also cost) of updating the code to work with Pro will affect both when we can release a version for Pro and and indeed whether it is commercially worth it. Given that Esri decided to go all asyncy with it latest API; does Esri have any tips on how best to manage a single codebase that functions under both ArcGIS and Pro? Perhaps a reasonably complex example that can be compiled to cover both platforms. Thanks, Adam
... View more
08-22-2015
06:05 AM
|
0
|
2
|
830
|
POST
|
Just to add to this. Anything that changes the UI seems to be a problem. For example. QueuedTask.Run(() => LayerFactory.CreateFeatureLayer(new Uri(Path.Combine(this.GeodatabasePath, this.FeatureClassName)), MapView.Active.Map)); If I am running sync then obviously this does not complete. I've tried things like GetAwaiter() and GetAwaiter().GetResult() but no luck, The main way of getting it to work is to sync up the User Interface by showing a MessageBox MessageBox.Show("Hello"); Then I can see the Layer in ArcGIS Pro. I even made an auto disappearing MessageBox after x milliseconds; that works but is tedious. Are there any functions in the SDK that I can use to force a UI refresh of some kind. Thanks, Adam
... View more
08-21-2015
05:41 AM
|
0
|
4
|
830
|
POST
|
Hi, Esri's usage of async looks all very well for completely new code. However, we have a very large existing code base that runs on ArcGIS and a couple of other platforms. We are struggling to see how we can use a lot of our existing code within both the new ArcGIS Pro async model and sync platforms like ArcGIS, AutoCAD & Microstation. Async can be a bit like a virus in a codebase - once you start putting it in you have to follow it right through the codebase. That's fine for tiny little apps but for a large existing codebase - major rework. Any advice on how we can turn async back to sync safely without breaking ArcGIS Pro. Thanks in advance, Adam
... View more
08-21-2015
05:03 AM
|
0
|
5
|
3567
|
POST
|
Hi, I want to be able to add features to a Feature Class but not have to add that Feature Class to the map. Currently the snippets I see require that. Any advice on how to do it? Thanks, Adam
... View more
08-21-2015
04:56 AM
|
0
|
4
|
3086
|
POST
|
Found it myself (at least in code). await Geoprocessing.ExecuteToolAsync("management.CopyFeatures", parameters, null, new CancelableProgressorSource(progDlg).Progressor, GPExecuteToolFlags.None) Set GPExecuteFlags to None. Adam
... View more
08-21-2015
04:52 AM
|
1
|
0
|
844
|
POST
|
Hi Lance, Thanks for the update. Would be happy to be a beta tester for this - would hopefully help both Esri and ourselves. Thanks, Adam
... View more
02-20-2015
03:13 AM
|
0
|
0
|
516
|
POST
|
Personal Geodatabases will not be supported in the initial release. We are investigating support in a later release. Hi Lance, Thanks for the info. Adam
... View more
04-25-2014
01:33 AM
|
0
|
0
|
757
|
POST
|
Pro includes support for file geodatabases. Beta 1 supports uncompressed file geodatabase data. Beta 2 will support both compressed and uncompressed data. Hi Lance, Thanks for the clarification. Can you confirm whether Personal Geodatabases are supported in ArcGIS Pro please? Thanks, Adam
... View more
04-24-2014
01:35 AM
|
0
|
0
|
757
|
POST
|
Hi Jan, In a concurrent usage scenario, if a user has activated an extension then it will be removed from the pool of licences. This is regardless of whether they ever use the extension. Whether that is a good thing is in the eye of the beholder. Bad for lots of occasional users as the licence tends to get stuck on a computer where the functionality is not being used. Great when exclusive access to the tool is needed when a job has to got out the door. I think a much better way would be to acquire the licence for the duration of each tools activity unless the user has specifically checked the licence out to their machine. Best of both worlds! Adam
... View more
02-20-2014
04:49 AM
|
0
|
0
|
485
|
POST
|
Hi, Fortunately found the answer on another forum thread - thanks Neil Clemmens and Simon Earnshaw. Essentially you have to activate the Activeview - so ESRI. A bit like setting the defaults on a Coordinate System - if they are defaults why the ?!?! do you have to set them? I have to say the ArcObjects API is the worst API I have ever worked with. More complicated than it needs to be; mind numbingly obtuse with it's all the direct casts and often a single line of code will set off all kinds of random consequences. I spend my days writing a couple of lines of code and then testing to see if what I think the API might be doing is actually what the API is doing.... repeat ad infinitum. Cheers All, Adam Hi, I am trying to change the Real-World Location of a MapFrame whilst in an IMapDocument.Open context. The normal code of using the ActiveView's Envelope doesn't seem to work in this case as I guess the document isn't actually open in the ArcGIS window. MapFrame.MapBounds doesn't seem to work either. Still it seems perfectly sensible that if copy layers over and do all kinds of other great stuff in the IMapDocument context that a simple change in Envelope should be simple! Having said that; the idea that a MapFrame/Map doesn't have centre and rotation properties anyway is pretty laughable.... Does anyone know how this might be done? Thanks, Adam
... View more
06-02-2011
07:14 AM
|
0
|
0
|
188
|
POST
|
Hi, I am trying to change the Real-World Location of a MapFrame whilst in an IMapDocument.Open context. The normal code of using the ActiveView's Envelope doesn't seem to work in this case as I guess the document isn't actually open in the ArcGIS window. MapFrame.MapBounds doesn't seem to work either. Still it seems perfectly sensible that if copy layers over and do all kinds of other great stuff in the IMapDocument context that a simple change in Envelope should be simple! Having said that; the idea that a MapFrame/Map doesn't have centre and rotation properties anyway is pretty laughable.... Does anyone know how this might be done? Thanks, Adam
... View more
06-02-2011
06:02 AM
|
0
|
1
|
419
|
POST
|
Hi Michael, Thanks for the clarification. I think I got confused as I looked at it from a Multiple Layout perspective as that is what I 'wanted' to see - my fault. I look forward to giving it try and see what it can do. Due to this functionality are Multiple Layouts off the agenda for a future version or are Data-Driven Pages a stop gap? Thanks again, Adam
... View more
10-30-2009
03:14 AM
|
0
|
0
|
2071
|
POST
|
Hi, Further to my problems of getting the Data Driven Toolbar to show... I cannot be sure I have actually made any pages so is there an example of a mxd that already has this setup amoungst the Tutorial data? Thanks in advance, Adam
... View more
10-29-2009
01:29 AM
|
0
|
2
|
707
|
Title | Kudos | Posted |
---|---|---|
1 | 03-14-2024 02:06 AM | |
1 | 03-13-2024 01:19 PM | |
1 | 03-12-2024 02:56 AM | |
1 | 08-04-2021 05:01 AM | |
1 | 01-18-2022 02:10 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|