POST
|
Hi, I would recommend to use ExecuteToolAsync method with GPToolExecuteEventHandler parameter . More info you could find in another thread. It will allow you to get more information about input/output parameters validity. Another one thing is your where clause. If you check your where clause in ArcGIS Pro Select By Attributes tool, you will find what query for date fields needs timestamp. Your query could be like this: "valid_to = timestamp '2019-01-01 00:00:00' and CATEG IS NOT NULL" Info here
... View more
21m ago
|
0
|
0
|
2
|
POST
|
Hi, ArcGIS Pro SDK supports building stand alone applications using ArcGIS.CoreHost and ArcGIS.Core assemblies. More info on this wiki: ProConcepts: Core Host Now is ChatGPT time, Google is yesterday 🙂
... View more
11 hours ago
|
0
|
0
|
30
|
POST
|
Hi, Your code will modify only last feature. To modify all features code must look like: EditOperation editOperation = new() { Name = editOperationName, ProgressMessage = "Modifying features ...", ShowProgressor = true };
Inspector inspector = new();
using (RowCursor cursor = featureClass.Search(new() { WhereClause = "<my whereclause>" }))
{
if (cursor.MoveNext())
{
Row row = cursor.Current;
inspector.Load(row);
inspector["myattribute"] = < any different value>;
editOperation.Modify(inspector);
}
}
_ = editOperation.Execute();
... View more
2 weeks ago
|
0
|
0
|
155
|
POST
|
Hi, As was described in your link, change of Image in daml will change image of your AddIn in Add In Manager of ArcGIS Pro. You need WPF way to change window icon. Add *.ico file to your AddIn resources and set build Action to "Resource" Open your ProWindow xaml and set Icon property: <controls:ProWindow x:Class="DockpaneSimple.ProWindow1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:ArcGIS.Desktop.Framework.Controls;assembly=ArcGIS.Desktop.Framework"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
mc:Ignorable="d"
Title="ProWindow1" Height="300" Width="300"
Icon="resources\appicon.ico"
WindowStartupLocation="CenterOwner"
> And you will get:
... View more
2 weeks ago
|
1
|
0
|
171
|
POST
|
XAML: <ComboBox ItemsSource="{Binding GeometryTypes}" SelectedItem="{Binding SelectedGeometryType, Mode=TwoWay}" Text="Select Option" /> ViewModel: public List<string> GeometryTypes => new List<string>() { "Polygon", "Polyline", "Point" };
public string SelectedGeometryType { get; set; } = "Polygon";
... View more
3 weeks ago
|
0
|
0
|
327
|
POST
|
Hi, You can do it from xaml: <ComboBox Height="23" Name="comboBox1" Width="120">
<ComboBoxItem Content="Polygon"/>
<ComboBoxItem Content="Polyline"/>
<ComboBoxItem Content="Point"/>
</ComboBox>
... View more
3 weeks ago
|
0
|
0
|
347
|
POST
|
Hi, "The AppStudio Cloud Make build service will be retired in February 2025. Up until the retirement date you will be able to build (using Cloud Make) your app and deploy your apps to app stores (Google Play and Apple App Store)." Source is here. More info is here.
... View more
08-27-2025
11:25 PM
|
0
|
0
|
115
|
POST
|
I realize this is late help, but maybe it will help others. You need to check IsNull first on desired field: if (!row.IsNull(fieldName))
{
var value = row.GetString(fieldName);
return value;
} It applies to all Get* methods.
... View more
08-27-2025
11:11 PM
|
0
|
0
|
455
|
POST
|
I am facing similar issues on 200.7 and .NET 9 MAUI. Last of them is with ArcGIS Runtime: Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid argument: Scale is less than or equal to zero. void ArcGISException.HandleCoreError(CoreError error, bool throwException) Assembly: Esri.ArcGISRuntime Version: 200.7.0.0 PublicKeyToken: xxxxxxxxxxxxxxxx void Interop.CheckError(IntPtr errorHandle, bool throwOnFailure, GCHandle wrapperHandle) void CoreMapView.InteractionZoomToScale(double scale, CoreCoordinate2D screenPoint) bool MapView.OnGeoViewManipulationDelta(PointF origin, PointF screenLocation, double translateX, double translateY, double scale, double rotation, bool isFlick, DeviceIndependentPointingDevice device) bool UserInteractionHandler.OnManipulationDelta(PointF origin, PointF screenLocation, double translateX, double translateY, double scale, double rotation, bool isFlick, DeviceIndependentPointingDevice device) bool AndroidDeviceInteractionHandler.OnTouchEvent(MotionEvent ev) GeoView(CoreGeoView geoView, Context context, IAttributeSet attr)+(object s, TouchEventArgs e) => { } Called from: bool IOnTouchListenerImplementor.OnTouch(View v, MotionEvent e) Application life cycle: Exception - This event error 09:33:30.000 AM Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid argument: Scale is less than or equal to zero. Ui Lifecycle info 09:28:57.738 AM Window.Activated Ui Lifecycle info 09:28:57.715 AM Window.Resumed Ui Lifecycle info 09:28:34.904 AM Window.Stopped Ui Lifecycle info 09:28:33.904 AM Window.Deactivated All crashes after resume are random and it is not ArcGIS Maps SDK fault. I have found workaround for map freezing where suggests handle OnResume() event. Would it be helpful to make some delay inside OnResume()? Do you have some experience of handling application resume issues?
... View more
07-29-2025
03:09 AM
|
0
|
0
|
213
|
POST
|
Hi, You can access them from Catalog pane : protected override void OnClick()
{
var catalog = Project.GetCatalogPane();
var items = catalog.SelectedItems;
var item = items.OfType<ProGPXItem>().FirstOrDefault();
if (item == null)
return;
MessageBox.Show($"Selected Custom Item: {item.Name}");
} Change items.OfType object type <T> to your needs or use without <T>
... View more
07-13-2025
10:49 PM
|
1
|
0
|
851
|
POST
|
Hi, You need to start from FeatureLayer or StandaloneTable to get origin or joined table. protected override async void OnClick()
{
var map = MapView.Active.Map;
if (map == null || map.Layers.Count == 0)
{
MessageBox.Show("No layers found in the map.");
return;
}
var bfl = map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(layer => layer.Name.Equals("your layer name"));
if(bfl.HasJoins)
{
await QueuedTask.Run(() => {
var table1 = bfl.GetTable().GetJoin().GetOriginTable();
var table2 = bfl.GetTable().GetJoin().GetJoinedTable();
// your code here
});
}
}
... View more
07-02-2025
03:58 AM
|
0
|
1
|
473
|
POST
|
Hi, Your code works fine. Check layer name in TOC. Another one thing is your layer selectable?
... View more
06-12-2025
02:23 PM
|
0
|
1
|
326
|
POST
|
Hi, Try to change newSubpane parameter value to true: Geoprocessing.OpenToolDialog(scriptPath, null, null, newSubPane: true);
... View more
06-11-2025
10:14 PM
|
0
|
0
|
316
|
POST
|
Custom renderers could help you. The custom renderer approach allows you to use native controls and their features. By writing custom renderers, you can capture native touch events.
... View more
06-11-2025
07:36 AM
|
0
|
0
|
739
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 02-19-2024 10:09 PM | |
1 | 03-20-2023 05:01 AM | |
1 | 07-13-2025 10:49 PM | |
1 | 04-06-2022 06:31 AM |
Online Status |
Online
|
Date Last Visited |
3m ago
|