|
POST
|
Hi, You can find more samples in ArcGIS Pro SDK Community samples github. Try InspectorTool sample.
... View more
09-05-2024
02:04 AM
|
0
|
1
|
1931
|
|
POST
|
Some SDKs have feature when using LocationDisplayAutoPanMode.Navigation: "If the visible map extent is changed by the user navigating the map interactively, or by a programmatic navigation method, this will cause AutoPanMode to be reset to OFF. However, if the user double-taps or pinches to zoom the map only, the AutoPanMode remains as NAVIGATION while the map is zoomed in or out, allowing users to easily zoom the map while in this mode." Text was taken from Android API reference Feature works on AppStudio too. But it doesn't work on .NET MAUI. There is no text about that feature in ArcGIS Maps SDK for .NET. Is it bug or by design?
... View more
09-04-2024
06:22 AM
|
0
|
2
|
1244
|
|
POST
|
Hi, I would recommend adding dependency to config.daml file to ADCore where esri_core_projectDockPane resides: <dependencies>
<dependency name="ADCore.daml" />
</dependencies>
... View more
09-03-2024
03:47 AM
|
0
|
1
|
1730
|
|
POST
|
Have you seen ArcGIS Pro SDK Community Licensing sample? It works with add-in. It would be like external ArcGIS Pro extension license.
... View more
08-29-2024
11:53 AM
|
0
|
2
|
1616
|
|
POST
|
Hi, Guessing the order of parameters in a Spatial Analyst function is a great art. In your case output parameter is first. To find reason why your geoprocessing fails add few lines: var parameters = Geoprocessing.MakeValueArray(@"C:\temp\test.tif", 2.6, "FLOAT", 100.0, pEnp);
var cts = new CancellationTokenSource();
var results = await Geoprocessing.ExecuteToolAsync("CreateConstantRaster_sa", parameters, null, cts.Token,
(eventName, o) =>
{
System.Diagnostics.Debug.WriteLine($@"GP event: {eventName}");
if (eventName == "OnMessage" || eventName == "OnValidate")
{
System.Diagnostics.Debug.WriteLine($@"Msg: {o}");
}
}, GPExecuteToolFlags.None); More info here.
... View more
08-26-2024
12:32 PM
|
1
|
0
|
1023
|
|
POST
|
I think that you use ArcGIS Pro 3.2. I have tested on ArcGIS Pro 3.2 and have the same results. I had older samples and made testing with them. Old version of sample works, newest don't. The difference is in csproj file. Old version: <TargetFramework>net6.0-windows</TargetFramework>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier> New version: <TargetFramework>net8.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
... View more
08-20-2024
01:00 PM
|
0
|
1
|
2016
|
|
POST
|
Hi, You can create temporary GDB for Analysis.Near(). Clean and fill it with your analysis data each time.
... View more
08-20-2024
06:19 AM
|
0
|
0
|
2086
|
|
POST
|
Hi, Have you tried ArcGIS Pro Esri Community sample CoreHostGDB ? You can modify it for your requirements. Change geodatabase constructor to one of the overloads for enterprise database: public Geodatabase(
DatabaseConnectionProperties databaseConnectionProperties
) or public Geodatabase(
DatabaseConnectionFile databaseConnectionFile
) Add extra button which executes your workflow on selected table record. After testing you can delete all GUI if you don't need it. To create Buffer use GeometryEngine.Instance.Buffer. You can use all stuff from two libraries: ArcGIS.CoreHost.dll and ArcGIS.Core.dll
... View more
08-20-2024
12:59 AM
|
0
|
3
|
2026
|
|
POST
|
Hi, Look at the Community solution here. Maybe it could help you.
... View more
08-19-2024
03:55 AM
|
0
|
2
|
2019
|
|
POST
|
Hi, For Button or MapTool you can override OnUpdate method: protected override void OnUpdate()
{
if (myCondition)
{
Caption = "Title1";
SmallImage = BuildImage("small_image1.png");
LargeImage = BuildImage("large_image1.png");
}
else
{
Caption = "Title2";
SmallImage = BuildImage("small_image2.png");
LargeImage = BuildImage("large_image2.png");
}
}
Or set from code: private void ChangeCaptionImage()
{
IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper("MyAddin_MyCustomButton");
if (wrapper != null)
{
wrapper.Caption = "new caption";
// ensure that T-Rex16 and T-Rex32 are included in your add-in under the images folder and have
// BuildAction = Resource and Copy to OutputDirectory = Do not copy
wrapper.SmallImage = BuildImage("T-Rex16.png");
wrapper.LargeImage = BuildImage("T-Rex32.png");
}
}
private ImageSource BuildImage(string imageName)
{
return new BitmapImage(PackUriForResource(imageName));
}
private Uri PackUriForResource(string resourceName)
{
string asm = System.IO.Path.GetFileNameWithoutExtension(
System.Reflection.Assembly.GetExecutingAssembly().Location);
return new Uri(string.Format("pack://application:,,,/{0};component/Images/{1}", asm, resourceName), UriKind.Absolute);
}
... View more
07-28-2024
08:55 AM
|
0
|
0
|
808
|
|
POST
|
Hi, Any news on the vtpk and style in 200.4? Is it possible to style offline vtpk?
... View more
07-23-2024
01:48 AM
|
0
|
0
|
3636
|
|
BLOG
|
Hi, There are new requirements going into effect on August 31, 2024. When can we expect to receive Cloud Make service update? Thanks
... View more
07-22-2024
12:38 AM
|
0
|
0
|
536
|
|
POST
|
Hi, There is ElementEvent. Event argument member Hint has some different states for changes: ElementAdded , ElementRemoved, PlacementChanged.
... View more
07-12-2024
12:37 AM
|
0
|
2
|
1538
|
|
POST
|
Hi, You can create layer with geoprocessing tool Make Query Layer. It creates a query layer from a DBMS table based on an input SQL select statement. So, you don't need your code above. How to call geoprocessing tool you can find here. Tool name for calling would be "management.MakeQueryLayer"
... View more
07-11-2024
07:09 AM
|
0
|
0
|
2448
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|