|
POST
|
Hi Team, We have developed a solution on v2.4 and which was working very good. I have updated to v2.5 and from then i am facing below errors. When i checked in my installation directory(C:\Program Files\ArcGIS\Pro\bin) - i am able to find these dlls (with 01/14/2020 date.) Is there anything else - we have to do the configurations. Please help me. FYI: Still same solution is working properly on ArcGIS Pro v2.4.
... View more
02-09-2020
07:53 PM
|
0
|
2
|
1115
|
|
POST
|
Hi All, Currently we are having multiple edit modules in the project. For example, EditModule1 --> will perform Split functionality on FeatureClass1. EditModule2 --> will perform Extent functionality on FeatureClass2. In both the scenarios - we need to observe the feature classes changes. So, we have implemented onRowChangedEvent on featureclass1 with business logic1. onRowCreatedEvent got implemented on featureclass2 with business logic2. But the problem is - whenever there is a change in featureclasse 2 , onRowChangedEvent is getting triggered. I have unsubscribed this event after completion of Edit session1. But no luck. Please find the sample code snippet below. //Creating the Edit Operation await QueuedTask.Run(() => { ActiveMapView.SelectFeatures(geometry); var editOp = new EditOperation(); editOp.Name = "Edit Module1"; editOp.SelectModifiedFeatures = true; editOp.SelectNewFeatures = true; if (_rowChangedToken == null) { _rowChangedToken = ArcGIS.Desktop.Editing.Events.RowChangedEvent.Subscribe(onRowChangedEvent, featureLayer.GetTable()); } //some extra lines of code to call split functionality. //Execute the Edit Operation editOp.Execute(); ArcGIS.Desktop.Editing.Events.RowChangedEvent.Unsubscribe(_rowChangedToken); }); Question 1: if i am not wrong, we can implement multiple Row Events on single project. But we have to unsubscribe the events (in each module wise) properly. Please correct me - if this is not the scenario. 2. Please correct me what is the mistake in my approach and why this event is getting triggered from other edit modules. Is there any good example i can refer to understand this completely. Thank you in advance.
... View more
01-29-2020
05:04 AM
|
0
|
1
|
669
|
|
POST
|
Hi, Able to resolve this issue and please find my final workflow below. Step 1: Capture the OnSketchCompleteAsync OnSketchCompleteAsync { subscribe RowChangedEvent } Step 2: In the RowChangedEvent { Compare the Polygon geometry(before and after the geometry modifications If there is any geometry change{ a. Get the list of coordinates from Original Polygon //Index of the shape field var shapeIndex = lyrDefn.FindField(shapeField); //Original geometry of the modified row var geomOrig = obj.Row.GetOriginalValue(shapeIndex) as Geometry; Polygon geometryOrig = geomOrig as Polygon; IReadOnlyList<Coordinate2D> coordinatesOrig = geometryOrig.Copy2DCoordinatesToList(); b. Get the list of coordinates from Modified Polygon //Index of the shape field var shapeIndex = lyrDefn.FindField(shapeField); //New geometry of the modified row var geomNew = obj.Row[shapeIndex] as Geometry; Polygon geometryNew = geomNew as Polygon; IReadOnlyList<Coordinate2D> coordinatesNew = geometryNew.Copy2DCoordinatesToList(); c. Now Compare the coordinates and i. If we add any vertexes - Modified Geometry.Except(Original Geometry), will return the newly added vertex coordinates details. ii. If we delete vertexes - Original Geometry.Except(Modified Geometry), will return the deleted vertex coordinate details. IEnumerable<Coordinate2D> differenceQuery1 = coordinatesNew.Except(coordinatesOrig); Now based on scenairo i or ii --> we will update the vertex table. } If anyone else has any other approach - please let me know. Thank you.
... View more
01-28-2020
02:12 AM
|
0
|
0
|
1669
|
|
POST
|
Hi Sean Jones, Thanks for your reply. Please find my scenario below. We have created a relationship class between polygon feature class and standalone table. Due to this relationship, whenever we delete polygon – the associated entries from the table are also getting deleted. But when we created a new polygon/ modify the existing polygon geometry – the corresponding records in the table are not getting updated. to address this Modify geometry changes - i am trying to capture the vertex level events. I have tried to use the "OnSketchModifiedAsync " virtual method now. But this method is not getting triggers for every vertex change. Please find the sample code snippet below. internal class MapTool1 : MapTool { public MapTool1 () { IsSketchTool = true; SketchType = SketchGeometryType.Point; SketchOutputMode = SketchOutputMode.Screen; var systemCursor =System.Windows.Input.Cursors.Arrow; Cursor = systemCursor; } protected override async Task<bool> OnSketchModifiedAsync() { MessageBox.Show("Entered into OnSketchModifiedAsync function"); await QueuedTask.Run(async() =>{ ActiveMapView.SelectFeatures(await GetCurrentSketchAsync()); var sketch = await GetCurrentSketchAsync(); var editOp = new EditOperation(); editOp.Name = "Edit Vertex"; editOp.SelectModifiedFeatures = true; editOp.SelectNewFeatures = true; MessageBox.Show(editOp.EditOperationType.ToString()); //ArcGIS.Desktop.Editing.Events.RowChangedEvent.Subscribe(onRowChangedEvent, featureLayer.GetTable()); //Execute the Edit Operation // editOp.Execute(); //ArcGIS.Desktop.Editing.Events.RowChangedEvent.Unsubscribe(_rowChangedToken); //ArcGIS.Desktop.Editing.Events.RowChangedEvent.Unsubscribe(_rowCreatedToken); }); return true; } Here if i enable the RowChangedEvent subscription - whenever there is a change in the feature table - the method is getting triggered and ideally this will happen only once we finish the geometry changes. In this situation, to achieve my goal i have to run multiple geoprocessing tools to get the vertices information from polygon feature and then load into table. But this will not a suitable option for us, since we are having complex polygons with thousands of vertex (some times). Please correct me, if i am doing any wrong here. or please suggest any other alternative way to achieve my goal. Thank you.
... View more
01-23-2020
08:16 PM
|
0
|
1
|
1669
|
|
POST
|
Hi A Zendel, I believe you can achieve this by using 'Calculate Field' options in the Actions --> When Exiting the Step., within the Task steps.
... View more
01-21-2020
06:58 AM
|
0
|
0
|
564
|
|
POST
|
Hi All, I would like to capture the Edit operation events. I am able to capture the Row level events based on Feature class. (ProSnippets Editing · Esri/arcgis-pro-sdk Wiki · GitHub ). But i need to capture the events based on Vertex operation (i.e Adding Vertex and Delete Vertex). Can you please help me - how to handle these events. Thank you in advance.
... View more
01-21-2020
06:56 AM
|
0
|
3
|
1756
|
|
POST
|
Hi Jason Camerano, Amir Bar-Maor, I am going through your ArcGIS Pro Task explanatory videos. Can you please help me in below two situations. 1. How can we make Field as mandatory field - using Tasks.(i hope you are not using attribute rules/ making field as non-nullable field) (ArcGIS Pro Tasks: An Introduction - YouTube : Screen at 34.43sec) 2. How can we validate topology rules on polygons (Creating and Managing GIS Data: ArcGIS Pro Tasks: An Introduction - YouTube : screen at 46.57Sec) Thank you in advance.
... View more
01-03-2020
06:17 AM
|
0
|
7
|
3546
|
|
POST
|
Thank you Wolf. This helped me to start. Appreciate your help on this resolution and clarification.
... View more
12-19-2019
01:58 AM
|
0
|
0
|
3279
|
|
POST
|
Hi Wolf, I have tried this option. Please find the observations below. 1. I have added this piece of code in my class file and inherited from ArcGIS Button. 2. This code is getting executed only when i clicked on the button. 3. Then OnUpdate() is executing infinitely. <button id="Button1" caption="Button1" className="Button1" loadOnClick="true" smallImage="Images\xyz16.png" largeImage="Images\xyz32.png"> <tooltip heading="Button1"> Button1<disabledText /> </tooltip> </button> internal class Button1 : Button { /* protected override void OnClick() { MessageBox.Show("Testing"); OnUpdate(); }*/ protected override void OnUpdate() { MessageBox.Show("Observing the ribbon loading event" + FrameworkApplication.ActiveTab); base.OnUpdate(); //base.OnUpdate(); } } Please let me know, if i am doing any wrong here.
... View more
12-18-2019
02:14 AM
|
0
|
2
|
3279
|
|
POST
|
Thank you Wolf for your time in analyzing this. I will use this approach.
... View more
12-16-2019
07:04 PM
|
0
|
0
|
3279
|
|
POST
|
Hi Wolf, Thank you for your response. Yes all these ribbons are defined in my add-in, through config.daml. Also, Mapview are created through code. For ex, If “MapViewA” is tagged to “Ribbon A”, “MapViewB” is tagged to “RibbonB” etc. Now requirement is : If we make “RibbonA” active, then “MapViewA” has to get active automatically. If RibbonB is active then MapViewB should become active etc etc. Hope this clarifies your question. Please let me know, if you need any details further.
... View more
12-15-2019
07:54 PM
|
0
|
5
|
3279
|
|
POST
|
Hi All, By using ActiveMapViewChangedEvent subscribe method (ActiveMapViewChangedEvent ), i am able to change/activate my ribbon/tab based on the active map view. Now we want to implement opposite communication. i.e whenever we change the ribbon/tab, the corresponding MapView has to get activate. I have tried to use ArcGIS.Desktop.Framework.Events.ActivePaneChangedEvent.Subscribe(OnActivePanChanged) and ActiveWindowChangedEvent.Subscribe(OnActiveWindowChanged) options. But these two methods are not getting fired when we change the ribbon/tab. Appreciate your help on this. Thank you.
... View more
12-11-2019
08:08 PM
|
0
|
7
|
3502
|
|
POST
|
HI, Currently we have created a widget using ArcGIS Api for Silverlight. Whenever we click on map - we need to capture the mouse coordianates into two different text boxes(which are in widget). Can anyone please help me. Thank you.
... View more
01-05-2016
02:28 PM
|
0
|
0
|
2878
|
|
POST
|
Hi, we have one webapplication which was built by using arcgis api for silverlight. whenever we are accessing the application for the first time in a day, we are getting 'Layer is not initialized' . From our end, we have analyzed the MXD before creating MSD. There we didnt find any error messages. we have few warning and information messages. we are clearing the rest cache for every 60minutes using ArcGIS REST API Admin settings. Please let me know, how to solve this issue.
... View more
10-04-2013
02:08 AM
|
0
|
1
|
2129
|
|
POST
|
Hi All, We have developed a GUI with the help of PYQT. Now we have to add this GUI with ArcMap as a extension. Meanwhile some of the tools in the GUI (i.e Combobox - to display list of layers) needs to interact with .Mxd also Can you guys please help on this. THanks and Regards, Sreeni.
... View more
06-10-2013
05:27 AM
|
0
|
7
|
5723
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2020 09:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-25-2025
07:26 AM
|