POST
|
Hi Rene, You can use spatial filter on MCT thread: // execute the select on the MCT QueuedTask.Run(() => { foreach(FeatureLayer pItem in pointLayers) { // define the spatial query filter var spatialQuery = new SpatialQueryFilter() { FilterGeometry = geometry, SpatialRelationship = SpatialRelationship.Contains }; // gather the selection var pointSelection = pItem.Select(spatialQuery); } } If you want to do selection from the tool then you need to override OnSketchCompleteAsync event protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { } and add code above inside.
... View more
02-27-2018
12:02 AM
|
0
|
1
|
2771
|
POST
|
Hi, Have you tried ITransactions interface? It works without StartEditing fine on big quantities data with file or personal geodatabases. I have not tried it on SDE
... View more
02-20-2018
12:11 AM
|
0
|
0
|
752
|
POST
|
Hi, You can make property in your module class to set combo box. On startup you need from combo box class to set that property to combo box itself. When you need to update combo box content you will find your module and read combobox property and call "UpdateCombo" method. public class MyModule : Module { private static MyModule _this = null; private MyComboBox _combo = null; internal MyModule() { _this = this; } /// <summary> /// Retrieve the singleton instance to this module here /// </summary> public static MyModule Current { get { return _this ?? (_this = (MyModule)FrameworkApplication.FindModule("My_Module")); } } public MyComboBox PolygonCombo { get { return _combo; } set { _combo = value; _combo.UpdateCombo(); } } } public class MyComboBox : ComboBox { /// <summary> /// Constructor to initialize the ComboBox /// </summary> public MyComboBox() { MyModule modOwner = MyModule.Current; if (modOwner == null) return; modOwner.PolygonCombo = this; } } Another way is to use some kind of messaging. I use that approach in my applications: https://stackoverflow.com/questions/23798425/wpf-mvvm-communication-between-view-model
... View more
02-12-2018
01:08 AM
|
2
|
0
|
635
|
POST
|
Hi, I have attached printscreen of Tableviewpane and Add field button structure. More detailed information you can find using tools described earlier.
... View more
02-08-2018
05:03 AM
|
0
|
0
|
1597
|
POST
|
Hi, You can use WPF Snoop or WPF Inspector to inspect ESRI styling. You will find which WPF objects ESRI uses and what are property values, events and etc. The same situation was with Docking panel tab controls. You can find more info on another thread.
... View more
02-07-2018
04:39 AM
|
0
|
0
|
1597
|
POST
|
Hi Mitch, You need to use QueuedTask.Run. https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring
... View more
02-05-2018
01:18 AM
|
2
|
0
|
3598
|
POST
|
Hi Jana, I have found that some functionality is available only using MFC environment: https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IOleFrame_CreateOleClientItem.htm So you need to create VC++ library which can create you IElement of IOLEFrame type. How to do that you could find on GitHub sample: https://github.com/Microsoft/VCSamples/tree/master/VC2010Samples/MFC/ole/MFCBind It uses the same Insert object dialog as ArcMap does.
... View more
01-18-2018
01:46 AM
|
0
|
1
|
1340
|
POST
|
Hi Khamille, Look at tis thread: https://community.esri.com/thread/204673-arcgis-pro-tab-control
... View more
01-02-2018
12:03 AM
|
1
|
1
|
577
|
POST
|
Hi Thomas, FeatureClass has method GetCount(). FeatureClass pFeatClass = featLayer.GetFeatureClass(); int nCount = pFeatClass.GetCount();
... View more
12-08-2017
05:07 AM
|
0
|
1
|
1822
|
POST
|
Hi Morten, I have checked and found that my button was clicked once but fires 2 NavigationCompleted events. My ribbonbutton has PreviewMouseDown implementation which lets prevent double clicks: private void RibbonButton_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (e.ClickCount >= 2) { e.Handled = true; } } The same situation I get when I try to maximize or restore my application size. I get 2 NavigationCompleted events each time. Maybe problem is Ribbon usage?
... View more
12-05-2017
11:23 PM
|
0
|
0
|
843
|
POST
|
Hi Antti, I have changed ViewpointChanged event to NavigationCompleted but situation is still the same. My fixed zoomin tool (code below) generates more than one event. More than one event I get on my application startup to. private async void FixedZoomIn_Click(object sender, RoutedEventArgs e) { try { MainWindow Form = Application.Current.Windows[0] as MainWindow; if (Form == null) return; Viewpoint vp = Form.MyMapView.GetCurrentViewpoint(ViewpointType.CenterAndScale); Viewpoint nvp = new Viewpoint(vp.TargetGeometry as MapPoint, vp.TargetScale / 2); await Form.MyMapView.SetViewpointAsync(nvp); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString(), System.Reflection.Assembly.GetExecutingAssembly().FullName); } }
... View more
12-05-2017
07:04 AM
|
0
|
2
|
843
|
POST
|
I am trying to implement on my runtime application previous/next extent functionality like in ArcMap or ArcGIS Pro using ViewpointChanged event but on each action with viewpoint changing (zooming, panning and etc.) I get more than one event. How can I check is it last event for current action?
... View more
12-05-2017
06:42 AM
|
0
|
4
|
1049
|
POST
|
Hi Colin, We are using UniqueValues, min, max. Please accelerate exposing of this functionality
... View more
11-29-2017
05:39 AM
|
0
|
0
|
1297
|
POST
|
Hi, I have found that it works with geoprocessing package made with ArcMap 10.3.1, but does not work with ArcGIS Pro package and ArcMap 10.5.1 package. ArcMap 10.5.1 geoprocesing sharing tool does not have "Support ArcGIS Runtime" checkbox. Geoprocessing option in "ArcGISLocalServer.AGSDeployment" file must be set to "true". I have checked only loading of geoprocessing service but I hope that calculation will work too.
... View more
11-13-2017
12:23 AM
|
0
|
2
|
1115
|
POST
|
Hi, I have enabled geoprocessing as you suggested, but result is the same: I have a few questions about deployment file. That file is located in my ArcGIS Runtime excutable folder. How can I change it after end of development when I will start to build deployment pack? Or it will be taken from my executable folder? Second question is about geoprocessing child packages. They all are set to “false”. How I can detect which child package must be set to “true”?
... View more
11-12-2017
11:02 PM
|
0
|
0
|
1115
|
Title | Kudos | Posted |
---|---|---|
1 | Thursday | |
1 | a week ago | |
1 | 2 weeks ago | |
1 | a week ago | |
1 | 05-28-2024 12:06 AM |
Online Status |
Offline
|
Date Last Visited |
Friday
|