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
Monday
|
0
|
1
|
33
|
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
Monday
|
0
|
1
|
52
|
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
2 weeks ago
|
0
|
1
|
65
|
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
2 weeks ago
|
0
|
1
|
63
|
POST
|
FYI on this Raster and Imagery Applications option (API Support) will available in ArcGIS Pro 3.4.
... View more
2 weeks ago
|
1
|
0
|
43
|
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
2 weeks ago
|
0
|
3
|
154
|
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
3 weeks ago
|
1
|
0
|
29
|
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
3 weeks ago
|
0
|
1
|
91
|
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
3 weeks ago
|
0
|
0
|
54
|
POST
|
@MK13 Regarding line 8, Is mySnowFlakeQuery a variable? If so, it needs to be in curly braces. (Just checking)
... View more
3 weeks ago
|
0
|
0
|
122
|
POST
|
@MK13 Regarding line 8, Is mySnowFlakeQuery a variable? If so, it needs to be in curly braces. (Just checking) var query1 = $"mySnowFlakeQuery";
... View more
3 weeks ago
|
0
|
1
|
122
|
POST
|
@JoeMadrigal You can use the CIM Viewer addin to examine the CIM Definition of objects in ArcGIS Pro. If you are on Pro 3.x, use the addin from the CIMViewer_3.x folder in the above repo. The ReadMe file in the repo has detailed instructions on how to use the addin to view the CIM Definitions.
... View more
3 weeks ago
|
1
|
0
|
114
|
POST
|
@JoeMadrigal You can access the CIM Definition of the Group Layer to accomplish this. Code snippet: //Construct/Create the group layer first.
var groupLayerCreationParams = new GroupLayerCreationParams();
groupLayerCreationParams.Name = "Group Layer";
var groupLayer = LayerFactory.Instance.
CreateLayer<GroupLayer>(groupLayerCreationParams, MapView.Active.Map);
//Get the CIM Definition of the group layer
var groupLayerDefinition = groupLayer.GetDefinition() as CIMGroupLayer;
//Set the "SublayerVisibilityMode" CIM property of the group layer to
//"Independent" or "Exclusive". Use the SublayerVisibilityMode enum.
//SublayerVisibilityMode.Exclusive - Radio button
//SublayerVisibilityMode.Independent - checkbox
groupLayerDefinition.SublayerVisibilityMode = SublayerVisibilityMode.Exclusive;
//Set the modified CIM Definition back to the group layer.
groupLayer.SetDefinition(groupLayerDefinition);
... View more
3 weeks ago
|
0
|
0
|
135
|
POST
|
@DirkTillmanns I tried this with the "ImpersonateMapPane" community sample. I started an active editing session for a line feature class in my active map view. I then activated my new Map pane in the middle of the editing session. When I went back to my original Mapview, I was able to restart my editing session. I did not see the tool being deactivated\reactivated. Is this similar to your workflow? Just confirming to see what I am missing in order to repro your issue. Thanks Uma
... View more
07-19-2024
09:39 AM
|
0
|
1
|
104
|
POST
|
Here is a code snippet that creates a Query Layer - with the "SqlQuery" defined. Create a query layer await QueuedTask.Run(() =>
{
Map map = MapView.Active.Map;
Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri(@"C:\Connections\mySDE.sde")));
CIMSqlQueryDataConnection sqldc = new CIMSqlQueryDataConnection()
{
WorkspaceConnectionString = geodatabase.GetConnectionString(),
GeometryType = esriGeometryType.esriGeometryPolygon,
OIDFields = "OBJECTID",
Srid = "102008",
SqlQuery = "select * from MySDE.dbo.STATES",
Dataset = "States"
};
var lcp = new LayerCreationParams(sqldc)
{
Name = "States"
};
FeatureLayer flyr = LayerFactory.Instance.CreateLayer<FeatureLayer>(lcp, map);
});
... View more
07-16-2024
01:41 PM
|
0
|
0
|
187
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 3 weeks ago | |
1 | 3 weeks ago | |
1 | 07-11-2024 10:57 AM | |
1 | 07-12-2024 09:22 AM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|