|
POST
|
Hi @JoePolaski Does your unit test code for OpenAsync look similar to this? // Open existing project
Project project = null;
try
{
project = await Project.OpenAsync("project path");
}
catch (Exception ex)
{
// exception
}
... View more
09-11-2024
09:34 AM
|
0
|
1
|
1097
|
|
POST
|
Hi @SaiPeketi The sketch geometry in your tool can be any geometry type - point (which is a single click when you interact with the mapview), polygon, circle, etc.
... View more
09-11-2024
09:19 AM
|
1
|
1
|
1676
|
|
POST
|
Hi @CarlosPiccirillo2 Which version of Pro 3x are you on? The GetMapView method needs to be on the Main CIM thread. It needs to be run under the context of the QueuedTask. Like this: //Reference the map frame and its map view
MapFrame mf_bmp = layout.FindElement("Map Frame") as MapFrame;
//On the worker thread
await QueuedTask.Run(() =>
{
MapView mv_bmp = mf_bmp.GetMapView(lytView);
if (mv_bmp != null) {
//Do something with the mapview
}
});
... View more
09-11-2024
09:15 AM
|
1
|
1
|
1201
|
|
POST
|
@RITASHKOUL I do not have a set date yet for this functionality. I will post back as soon as I have more info.
... View more
08-30-2024
10:43 AM
|
0
|
0
|
869
|
|
POST
|
@Werk Check out this community sample that illustrates how to use ProgressDialog and CancelableProgressorSource to accomplish what you need: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ProgressDialog Here is a small code snippet that highlights this: //on a Pro button click on the ribbon
protected override async void OnClick()
{
var pd = new ArcGIS.Desktop.Framework.Threading.Tasks.ProgressDialog(
"Processing...", 10, false );
var progressorSource = new CancelableProgressorSource(pd);
progressorSource.Max = 10;
await QueuedTask.Run(() =>
{
if (progressorSource.Progressor.CancellationToken.IsCancellationRequested)
return;
//Do business logic
progressorSource.Progressor.Value += 1;
progressorSource.Progressor.Message = "...";
});
}
... View more
08-23-2024
10:28 AM
|
0
|
0
|
1118
|
|
POST
|
Are you looking for a Pro API\SDK method to create feature classes in a file geodatabase? If so, please check out the ProConcepts: DLL Our Pro SDK Documentation landing page has plenty of help to get started with the API.
... View more
08-23-2024
09:56 AM
|
0
|
1
|
782
|
|
POST
|
Hi, The Gallery class has methods to remove and move items in its collection. So the way I would do that is to: Create a "Customize Gallery" in your gallery. (Refer to the sample link that creates these kinds of links in a gallery. Clicking on this will invoke a command). When you click this, a modal ProWindow is displayed. In this window, you code the behavior to move your controls. A bit of coding involved, but the Pro API has the required pieces to accomplish this.
... View more
08-19-2024
11:36 AM
|
0
|
1
|
1963
|
|
POST
|
Hi @ARWES24 Using the Pro SDK, you can create an Inline gallery on the Pro Ribbon similar to what you see for the GP inline gallery. There is a community sample that provides ideas on how this can be done: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Content/OpenItemDialogBrowseFilter Thanks Uma
... View more
08-19-2024
10:14 AM
|
0
|
1
|
1982
|
|
POST
|
@Vidar Can you please check the version of System.Configuration.ConfigurationManager that ArcGIS Pro is loading while running your addin? You can see this version from within Visual Studio while you are debugging the addin. See screenshot below. Sort on the Name column. The version of the System.Configuration.ConfigurationsManager NuGet you are referencing in your addin should match the version that ArcGIS Pro needs. Check out this post on Esri Community - a very similar issue to yours was posted here.
... View more
08-12-2024
12:17 PM
|
0
|
1
|
5098
|
|
POST
|
Hi @Asimov I had to edit your code to test (I removed the ClipAndRefreshMap, for example. I added my logic to export a custom extent instead) - If possible, can you share a complete addin with your code so I can try it out? Here is a small video of what my sample does. (Attached)
... View more
08-09-2024
10:57 AM
|
0
|
1
|
1764
|
|
POST
|
FYI on this Raster and Imagery Applications option (API Support) will available in ArcGIS Pro 3.4.
... View more
08-07-2024
01:53 PM
|
1
|
0
|
1338
|
|
POST
|
@Vidar Do you have the System.Drawing.Common NuGet referenced in your addin? When you migrate to Pro 3.0, some of the 3rd party references you had should be moved to their NuGets. Refer to this wiki for more info: ProConcepts: 3.0-Migration-Guide More info: Bitmap is part of System.Drawing which was included in .Net Framework. It is no longer included with .net core (6.0 or 8.0) and must be added manually. Install the Nuget package System.Drawing.Common by right-clicking on your project in visual studio and choosing Manage Nuget Packages In the Nuget Package manager, click on the Browse Tab, search for System.Drawing.Common in the top and it should be the first Package, official by Microsoft.
... View more
08-07-2024
11:21 AM
|
0
|
3
|
5187
|
|
POST
|
@MK13 Here is a .NET API code snippet that does the same thing: //Note: Run within QueuedTask.Run
//Get the Layer Document from the lyrx file
var lyrDocFromLyrxFile = new LayerDocument(layerFile); //.lyrx file
var cimLyrDoc = lyrDocFromLyrxFile.GetCIMLayerDocument();
//Get the renderer from the layer file
var rendererFromLayerFile = ((CIMFeatureLayer)cimLyrDoc.LayerDefinitions[0]).Renderer as CIMUniqueValueRenderer;
//Apply the renderer to the feature layer
//Note: If working with a raster layer, use the SetColorizer method.
featureLayer?.SetRenderer(rendererFromLayerFile);
... View more
08-05-2024
09:15 AM
|
1
|
0
|
922
|
|
POST
|
Hi @Asimov Have you tried your code by using the CancelableProgressorSource constructor that accepts a progress dialog? Something like this: var pd = new ArcGIS.Desktop.Framework.Threading.Tasks.ProgressDialog(
"Processing...", "Cancelling...");
var progressorSource = new CancelableProgressorSource(pd); Using your code sample (modified to use the progress dialog), I got the message to update with the feature being processed.
... View more
08-02-2024
11:19 AM
|
0
|
1
|
1793
|
|
POST
|
@DirkTillmanns Thanks for the detailed steps. I see the issue now. The development team is investigating this one. I will post back when I have an update.
... View more
08-01-2024
01:34 PM
|
0
|
0
|
986
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 01-21-2026 10:48 AM | |
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|