POST
|
Thanks John Jones. After looking at your answer, I changed the Add Graphic method to a non-async method and just returned IDisposable instead of Task<IDisposable>. It's working good for now, but I observe a slight delay, I will take a look at the DelayedInvoker. Cheers!
... View more
06-04-2020
08:07 AM
|
0
|
0
|
1269
|
POST
|
To represent a graphic moving along with mouse cursor, I am adding a point graphic on mouse move and clear it when mouse move is triggered at a new location and a graphic for new location. But the graphics never gets cleared. They stay on map. Here is the code snippet private IDisposable PtGraphic;
protected override void OnToolMouseMove(MapViewMouseEventArgs e)
{
QueuedTask.Run(() =>
{
var pt = ActiveMapView.ClientToMap(e.ClientPoint);
ClearGraphic(ref PtGraphic);
PtGraphic = AddGraphicToMap(pt, ColorFactory.Instance.RedRGB, 3, SimpleMarkerStyle.Circle);
});
base.OnToolMouseMove(e);
}
private void ClearGraphic(ref IDisposable graphic)
{
if (graphic != null)
graphic.Dispose();
graphic = null;
}
public static async Task<IDisposable> AddGraphicToMap(Geometry geom, CIMColor color,
double size = 1.0, SimpleMarkerStyle markerStyle = SimpleMarkerStyle.Rectangle)
{
///Build Symbology
return MapView.Active.AddOverlay(geom, symbol);
} Am I missing something ? Appreciate any help.
... View more
06-03-2020
03:13 PM
|
0
|
3
|
1326
|
POST
|
Are Group elements supported as annotation features in ArcGIS Pro SDK? How to iterate over Group Elements from an annotation feature class ?
... View more
06-03-2020
11:24 AM
|
0
|
0
|
259
|
POST
|
Thanks Charles, I have tried IsAvailable method already and it does return true even after the "Licensed" checkbox is turned off using "Configure your Licensing Options" from Licensing tab.
... View more
04-23-2020
01:31 PM
|
1
|
0
|
1367
|
POST
|
Thanks for your response. I could not find a C# SDK alternative for CheckExtension method.
... View more
04-23-2020
07:00 AM
|
0
|
2
|
1367
|
POST
|
May be my question was not so clear, I would like to validate whether the tool is licensed/assigned and show user a message that the tool requires an extension rather than showing an error halfway through the execution where the extension comes into picture and throws an error cannot run the tool without license.
... View more
04-22-2020
09:47 PM
|
0
|
4
|
1367
|
POST
|
I do see this Pro SDK snippet which looks for the availability of extension to checkout and check-in. Is there a way to just check whether the extension is licensed/enabled or not ?
... View more
04-22-2020
03:18 AM
|
0
|
6
|
1500
|
POST
|
Thanks for the explanation of ActiveMapViewChanged event. ActivePaneChanged event helps resolve the issue. Cheers!
... View more
03-17-2020
11:02 PM
|
0
|
0
|
979
|
POST
|
I am looking for following methods from IMSegmentation2 class(ArcObjects) in ArcGIS Pro SDK. InsertMAtDistance CalibrateByMs InterpolateZsBetween (CalculateNonSimpleZs – Is this the alternative in Pro SDK?) I couldn't find these methods or any alternatives in ArcGIS Pro SDK. Any help is appreciated. Thanks!
... View more
03-17-2020
06:32 AM
|
0
|
3
|
727
|
POST
|
I am working with ActiveMapViewChanged event as shown in the code snippet. private void SubscribeMapEvents()
{
...
ActiveMapViewChangedEvent.Subscribe(UpdateUIElements);
}
private void UpdateUIElements(ActiveMapViewChangedEventArgs obj)
{
if (obj.IncomingView != null){
ReInitializeUIElements();
}
else
{
ResetUIElements();
}
} Idea is to update the UI elements with the information from MapView when it changes and reset to initial state when there is no map view. The event triggers correctly when there is no map with IncomingView value as null, and when it updates the event is triggered with active map view's instance in the IncomingView parameter. Whereas, when I open an attribute table from Table of contents with an active map, this event is triggered twice. First time with IncomingView as null and the second time with the active map view's instance. This behavior is causing an unwanted reset of the controls even when there is an active map present.
... View more
02-27-2020
04:20 AM
|
0
|
2
|
1175
|
POST
|
Hi Annette, Thanks for your response. It resulted in an empty polygon with 0 points.
... View more
01-14-2020
09:23 AM
|
0
|
1
|
416
|
POST
|
Does GeometryEngine operations need spatialreference attribute defined for the input geometries ? I have tried polygon intersection, where both the input geometries(and their vertex points) does not have any spatial reference defined which yielded no results whereas the polygon geometries should be intersecting
... View more
01-08-2020
10:07 AM
|
0
|
3
|
474
|
POST
|
I have used GP tools for create tin and edit tin. Now, I am looking for an alternative to QueryPixelBlock from TIN in Pro, I couldn't find any sdk methods or tools.
... View more
11-25-2019
01:32 AM
|
0
|
1
|
983
|
POST
|
I am looking for Arcobjects SDK alternatives for ITin and ITinEdit in ArcGIS Pro SDK. Does ArcGIS Pro SDK support this? Appreciate any help on references to samples or API methods.
... View more
11-13-2019
02:55 AM
|
0
|
6
|
1176
|
Title | Kudos | Posted |
---|---|---|
1 | 04-07-2023 05:05 AM | |
1 | 06-22-2020 08:52 AM | |
1 | 04-23-2020 01:31 PM |
Online Status |
Offline
|
Date Last Visited |
Monday
|