|
POST
|
Depending on your testing results I would suggest a little bit to change my first scenario. Before calling StartSketchAsync execute your dummy tool using FrameworkApplication.SetCurrentToolAsync("<dummy_tool_id>");
... View more
11-24-2023
04:58 AM
|
0
|
3
|
2895
|
|
POST
|
There is one way to create sketch. Using MapTool StartSketchAsync. So my idea is to create dummy MapTool without adding to ribbon. Set loadOnClick="false". Set SketchGeometryType as RegularPolyline. Then implement idea from thread to get instance of dummy MapTool. If MapView.Active.GetCurrentSketchAsync() returns null, call StartSketchAsync from your dummy MapTool instance and retry to call MapView.Active.GetCurrentSketchAsync().
... View more
11-23-2023
01:33 PM
|
0
|
5
|
2911
|
|
POST
|
Thanks for efforts. Our ArcGIS AppStudio application uses that package without problems on iOS and Android. Developing of AppStudio application was on Windows. It works fine too. I had issue with size when testing MAUI application on Windows. I will try to make test on Android. Package belongs to our client. I will inform client about migration to tpkx.
... View more
11-20-2023
11:29 PM
|
0
|
0
|
2231
|
|
POST
|
Hi, First step is to manage modules dependencies. You need to add dependency to module where group (tab) exists. For ArcGIS Pro module it could look like that: <dependencies>
<dependency name="ADMapping.daml" />
</dependencies> For custom module: <dependencies>
<!-- id of "Add-in B" same as AddInInfo id="{00000000-0000-0000-0000-000000000000}"-->
<dependency name="{00000000-0000-0000-0000-000000000000}" />
</dependencies> It will manage module loading order. At the time you want to insert button group/tab will be already created. Second step is updating group/tab. <updateModule refID="esri_mapping">
<groups>
<updateGroup refID="esri_mapping_navigateGroup">
<insertButton refID="New_Menu_Item_Button" />
</updateGroup>
</groups>
</updateModule> More info here
... View more
11-20-2023
10:23 PM
|
1
|
1
|
1352
|
|
POST
|
Explore Esri ArcGIS Pro sdk community samples. arcgis-pro-sdk-community-samples/Map-Exploration/IdentifyWithSketchTool at master · Esri/arcgis-pro-sdk-community-samples · GitHub
... View more
11-20-2023
08:25 AM
|
1
|
0
|
2111
|
|
POST
|
Hi, There is ArcGIS Pro sdk community sample which shows how to add balloon/line callout with a leader line to an annotation feature. Maybe it could help you
... View more
11-18-2023
01:26 AM
|
0
|
1
|
2404
|
|
POST
|
Hi @AndyWeis, Tile package is public. So, you can try it. 8c6ad98330ec4e10b15990c810d234ff It's Raster tile package. I use Esri.ArcGISRuntime.Maui 200.2.0
... View more
11-18-2023
12:35 AM
|
0
|
3
|
2246
|
|
POST
|
Hi, Take a look at these links: ArcMap addin migration to Pro - Esri Community Solved: ArcObjects SDK To ArcGIS Pro SDK Conversion Guide - Esri Community ArcGIS Pro has MapControl too. Esri ArcGIS Pro sdk community samples with MapControl here: arcgis-pro-sdk-community-samples/Framework/MapControl at master · Esri/arcgis-pro-sdk-community-samples · GitHub arcgis-pro-sdk-community-samples/Map-Exploration/MagnifierWindow at master · Esri/arcgis-pro-sdk-community-samples · GitHub arcgis-pro-sdk-community-samples/Map-Exploration/OverviewMapControl at master · Esri/arcgis-pro-sdk-community-samples · GitHub
... View more
11-17-2023
12:29 PM
|
1
|
2
|
2141
|
|
POST
|
Hi, I am trying to read Tile package properties using PortalItem CreateAsync method and it return 0 for size. I have two packages (vtpk and tpk). For Vector tile package it works fine. Portal shows size for tpk item and it exceeds to 2GB. From ArcGIS AppStudio application it works for both types of packages. Is it issue with package in portal or bug?
... View more
11-17-2023
02:12 AM
|
1
|
5
|
2327
|
|
POST
|
You need to check 'result' as in my last comment. Your geoprocessing tool could fail or etc. I don't have possibility to check, but it seems for your geoprocessing calling code could be like this: var gpResult = await Geoprocessing.ExecuteToolAsync(fullToolPath, parameters, null, null, (eventName, o) => GPHelper.ProcessGPEvent(eventName, o), GPExecuteToolFlags.AddToHistory);
string errMsg = string.Empty;
if (gpResult.IsFailed)
{
throw new Exception("Tool failed");
}
else
{
var resultValues = gpResult.Values;
if (resultValues == null)
{
throw new Exception("Nothing is returned");
}
else
{
if (resultValues.Count > 0)
{
// reading output parameters
}
}
}
... View more
11-14-2023
08:05 AM
|
0
|
0
|
701
|
|
POST
|
As I wrote earlier. var gpResult = Geoprocessing.ExecuteToolAsync(fullToolPath, parameters, null, null, (eventName, o) => GPHelper.ProcessGPEvent(eventName, o), GPExecuteToolFlags.AddToHistory);
gpResult.Wait();
string errMsg = string.Empty;
if (gpResult.Result.IsFailed)
{
throw new Exception("Tool failed");
}
else
{
var resultValues = gpResult.Result.Values;
if (resultValues == null)
{
throw new Exception("Nothing is returned");
}
else
{
if (resultValues.Count > 0)
{
// reading output parameters
}
}
}
... View more
11-14-2023
05:32 AM
|
0
|
2
|
2938
|
|
POST
|
I think the issue is in line 34: arcpy.SetParameterAsText(0, "Your output value") First parameters of SetParameterAsText can't be 0. As I understand your tool has 5 parameters, last parameter is your output. So, first parameter must be 4. I am not sure, but I use SetParameter instead of SetParameterAsText.
... View more
11-13-2023
10:20 PM
|
0
|
4
|
2946
|
|
POST
|
Hi, Yes, it is possible. Code below: var pluginWrapper = FrameworkApplication.GetPlugInWrapper(id, true) as System.Windows.Input.ICommand;
if (pluginWrapper != null)
{
if (pluginWrapper.CanExecute(null))
{
pluginWrapper.Execute(null);
}
} More info here
... View more
11-07-2023
06:27 AM
|
2
|
0
|
2201
|
|
POST
|
Hi, Subscribe parameter must be Action, not Sub. So, your code should look like that: Dim eventAction As Action(Of Events.MapSelectionChangedEventArgs) = Sub(arg)
Dim selection = arg.Selection
Console.WriteLine("seelection count is {0}", selection.Count)
End Sub
Dim subscriptionToken = Events.MapSelectionChangedEvent.Subscribe(eventAction)
... View more
11-07-2023
01:41 AM
|
1
|
1
|
1335
|
|
POST
|
There are 2 differences in parameters in my suggested method: 1. isCCW type is bool and orientation type - ArcOrientation. isCCW = true equals ArcOrientation.ArcCounterClockwise, isCCW=false equals ArcOrientation.ArcClockwise. 2. ArcGIS Pro has additional parameter of type SpatialReference, but it is optional. You can pass null. Could you share your code or export segment to csv to check?
... View more
11-06-2023
07:45 AM
|
0
|
1
|
1257
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Online
|
| Date Last Visited |
4m ago
|