POST
|
Thank you for your help, Gintautas. I tried another way to settle the problem. I set "MapView.Active.DrawingPaused = true; "before running GP and "MapView.Active.DrawingPaused = false;" after. That will cause the map rendering suspended and avoid refreshing many times. I think that's an proper way considering current situation. There are still many inconvenience for those who are familiar with ArcObjects but try to use Pro SDK. Sorry for the delay! Dominic
... View more
01-30-2019
09:03 AM
|
1
|
0
|
8
|
POST
|
Hi Gintautas, Thank you for your help. I tried your code but the program get stuck when I run Task.Run() function. I have to make it asynchronous (adding async, await keyword), which again causes the refresh. Since this refresh after join also occurs in ArcPro, I think it must be related to multithread in ArcGIS Pro.
... View more
12-27-2018
12:00 PM
|
0
|
2
|
8
|
POST
|
Thanks, Gintautas. My code is listed as follows: public static async Task < bool > JoinTable ( string sLayerName , string sInField , string sJoinTable , string sJoinField , bool bKeepAll ) { return await QueuedTask . Run ( async ( ) = > { try { string sJoinType = "KEEP_COMMON" ; if ( bKeepAll ) sJoinType = "KEEP_ALL" ; var parameters = Geoprocessing . MakeValueArray ( sLayerName , sInField , sJoinTable , sJoinField , sJoinType ) ; var cts = new CancellationTokenSource ( ) ; var results = await Geoprocessing . ExecuteToolAsync ( "management.AddJoin" , parameters , null , cts . Token , ( eventName , o ) = > { //Debug.WriteLine($@"GP event: {eventName}"); } , GPExecuteToolFlags . None ) ; return ( ! results . IsFailed ) ; } catch ( Exception ex ) { //MessageBox.Show(ex.ToString()); return false ; } } ) ; } When I run the Geoprocessing.ExecuteToolAsync() function, all the layers are forced to refresh even if I set GPExecuteToolFlags to None. I can't find a way to avoid that. Thank you very much.
... View more
12-18-2018
09:17 AM
|
0
|
4
|
8
|
POST
|
I'm sorry but that issue still exists. It seems that all GP Tools have this problem even if you set the GPExecuteToolFlags param. If you run multiple GP Tools at one function, you have to refresh the map again and again even though it's not necessary to update the map (like the join action). Is there any alternative solution? Thank you very much.
... View more
12-17-2018
11:21 AM
|
0
|
6
|
8
|
POST
|
Thanks, Gintautas. I changed the GP flag to GPExecuteToolFlags . None and it doesn't flash. Thanks for your help!
... View more
12-12-2018
04:49 PM
|
0
|
0
|
8
|
POST
|
I need to join an external file (dbf) to a FeatureClass with ArcGIS Pro SDK. To approach this I need to run Geoprocessing Tool "Add Join", which forces the map refresh totally (including base map and all layers). If I join multiple FeatureClasses at one time, the map will refresh several times. That will cause low performance of map display. I'm wondering if there's any solution to avoid that refresh, or any alternative approach to join external tables instead of Geoprocessing Tool to do the join. Thank you very much!.
... View more
12-11-2018
10:29 AM
|
0
|
9
|
192
|
POST
|
Hi, I create the virtual relationship class to join a FeatureClass and external table (.dbf file) through ESRI's guide. However, I can't find a way to remove the join that are created with the virtual relationship class. I know we can use GP tool "Remove Join" to achieve that. But that will cause refresh of the map. Is there any method that could remove the join without using Geoprocessing? Thank you very much!
... View more
09-21-2018
02:47 PM
|
0
|
0
|
60
|
POST
|
Hi Uma, Thanks for your reply. I can use this method to construct a simple marker with specific style. But I need to get the style property later on -- after I create the symbol object. Currently I cannot find the corresponding property from CIMPointSymbol or CIMVectorMarker. Can you give me ideas? Thank you very much. Best, Dominic
... View more
08-30-2018
11:12 AM
|
0
|
1
|
7
|
POST
|
Currently I can construct the point symbol through SymbolFactory.Instance.ConstructPointSymbol() Method and set SimpleMarkerStyle to create the simple marker. But after creating, I need to get the marker style (circle, rectangle, cross, etc) of the point symbol. I wonder if there is any corresponding property for it. Thank you very much.
... View more
08-29-2018
05:31 PM
|
0
|
3
|
146
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|