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
|
124
|
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
|
268
|
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
|
150
|
POST
|
@MK13 Regarding line 8, Is mySnowFlakeQuery a variable? If so, it needs to be in curly braces. (Just checking)
... View more
07-30-2024
02:33 PM
|
0
|
0
|
264
|
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
07-30-2024
02:32 PM
|
0
|
1
|
264
|
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
07-30-2024
02:26 PM
|
1
|
0
|
257
|
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
07-29-2024
02:27 PM
|
0
|
0
|
278
|
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
|
200
|
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
|
409
|
POST
|
@nadja Pro "module" to update is "esri_core_module" This is the module that creates the "Insert" tab on the Ribbon with the "Project" group. So in your DAML (line 27), use this: <updateModule refID="esri_core_module"> instead of <updateModule refID="esri_core_insertTab">
... View more
07-15-2024
11:28 AM
|
0
|
1
|
290
|
POST
|
Check out the ProSnippet: Geodatabase wiki. It has some good info on how to work with accessing the feature classes from the underlying Geodatabase - given the URL that you already have. Please reach out if you get stuck.
... View more
07-12-2024
09:22 AM
|
1
|
0
|
362
|
POST
|
Note: The attachment above had a version of 3.4 in the config.daml. I have update the sample attachment now with version 3.3
... View more
07-11-2024
10:57 AM
|
1
|
1
|
393
|
POST
|
Hi @AbhijeetNandeshwar1 Here is a sample attached. Search for TODO to see the specific items for the drag/drop implementation.
... View more
07-10-2024
09:49 AM
|
1
|
0
|
433
|
POST
|
Hi @RITASHKOUL I afraid there is no easy workaround for this at this time. I will follow-up as soon as I have a timeline when this will be supported. Thanks! Uma
... View more
07-08-2024
09:52 AM
|
0
|
2
|
507
|
POST
|
@RITASHKOUL After speaking with the Reports dev team, CreateReport method does not currently support "Custom Report Templates".
... View more
07-05-2024
08:16 AM
|
0
|
2
|
598
|
Title | Kudos | Posted |
---|---|---|
1 | 09-11-2024 09:19 AM | |
1 | 09-11-2024 09:15 AM | |
1 | 08-07-2024 01:53 PM | |
1 | 08-05-2024 09:15 AM | |
1 | 07-30-2024 02:26 PM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|