POST
|
Trushar, At ArcGIS Pro 3.4, when you double click an addin to install it, you will be able to see the custom icon.
... View more
a week ago
|
0
|
0
|
35
|
POST
|
Pro will use the dependencies it needs from its bin location. ArcGIS Pro 3.3 will be available in a few weeks. This version of Pro uses updated System.ServiceModel.Primitives.dll - version 6.200.XXX. Can you please try using Pro 3.3 to see if your addin works correctly.
... View more
a week ago
|
1
|
0
|
78
|
POST
|
Hi, In order to use your own xaml for the button icon on the ribbon, please try the following: Right click the XAML in the solution explorer in Visual Studio and set the Build Action to "Content". Then in DAML, reference the xaml using relative paths, like this: overlayLargeImage="Images/OverlaySmall.xaml"
... View more
2 weeks ago
|
0
|
0
|
46
|
POST
|
Thanks for reporting this. I see this issue also. I will notify the Development team.
... View more
2 weeks ago
|
0
|
0
|
91
|
POST
|
Hi You can use states and conditions to accomplish. Consult: ProGuide: Code Your Own States and Conditions I have attached an addin that demonstrates this: In the DAML, I have created a new condition usa_population_condition that is linked to the usa_population_state state. The tab element has this condition value added to the condition attribute. In the Module class, I listen to the ProjectOpenedEvent event and activate the state using FrameworkApplication.State.Activate method. Please note how I have set the autoLoad attribute in DAML to true so that the addin code launches when Pro loads and a project opens. Thanks Uma
... View more
2 weeks ago
|
0
|
1
|
113
|
POST
|
If I turn on this check box, then I do not get the request to sign in every time. The code you shared opens Pro with no prompt to sign in.
... View more
2 weeks ago
|
0
|
1
|
42
|
POST
|
Here is an attached addin project with modified Evil genius. I see the images on the ribbon:
... View more
2 weeks ago
|
0
|
0
|
25
|
POST
|
Here is an attached addin project with modified Evil genius. I see the images on the ribbon:
... View more
2 weeks ago
|
0
|
0
|
25
|
POST
|
Hi, A .NET Addin can launch Geoprocessing tools (and display messages). Consult this doc for the various ways by which you use the .NET Pro SDK to run GP Tools: ProConcepts: Geoprocessing
... View more
2 weeks ago
|
0
|
1
|
67
|
POST
|
Hi, In a scene, I was able to do the following with the Navigation Circle in planar mode. In all these options, the callbacks were hit. Can you please give me a little more info on how I can see the issue you are experiencing? pivot around the target point in all three axes, rotate the view direction zoom in and out on the target point, move the camera up and down, and look around from the current camera position. Thanks! Uma
... View more
2 weeks ago
|
0
|
1
|
99
|
POST
|
One idea is to subscribe to the ActiveMapViewChanged event. When the active map view changes, you can check if the table you are interested in is "Active". Then you can freeze the field. Something like this code below: ArcGIS.Desktop.Mapping.Events.ActiveMapViewChangedEvent.Subscribe(OnActiveViewChanged);
private void OnActiveViewChanged(ActiveMapViewChangedEventArgs args)
{
var pane = args.IncomingView;
if (pane == null)
return;
if (FrameworkApplication.Panes.ActivePane is ITablePane tablePane)
{
if (tablePane.MapMember.Name == "U.S. States (Generalized)") //check for your map member name here
{
List<String> fieldToFreeze = new List<string> { "STATE_NAME" }; //your field goes here
TableView.Active.SetFrozenFieldsAsync(fieldToFreeze);
}
}
}
... View more
3 weeks ago
|
0
|
1
|
64
|
POST
|
Hi, To convert a vertex to a control point, you have to simply change the ID of the vertex from 0 to 1. Control points have a vertex of 1. So you can iterate through the vertices to find the 4th and 7th vertices. In the following code snippet, I am changing two vertices in a selected polyline feature to be Control points. I iterate through the points in the selected line. Each point is converted into a MapPoint and gets added to a list. Points 6 and 7 are added as Control points. Notice the if statement on 20. These points are made "ID.Aware" and the IDs are set to be 1. Check out this page for more info: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic27355.html I create a new polyline using the point collection. Then I use an edit operation to modify the selected line with the new line I just made. var lineLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
if (lineLayer == null)
return;
var changeVertexIDOperation = new EditOperation();
QueuedTask.Run( () =>
{
var lineLayerCursor = lineLayer.GetSelection().Search();
var lineVertices = new List<MapPoint>();
long oid = -1;
while (lineLayerCursor.MoveNext())
{
var lineFeature = lineLayerCursor.Current as Feature;
var line = lineFeature.GetShape() as Polyline;
int vertexIndex = 1;
oid = lineFeature.GetObjectID();
foreach ( var point in line.Points )
{
MapPointBuilderEx mapPointBuilderEx = new MapPointBuilderEx(point);
//I am changing the vertex 6 and 7 to control points
if (vertexIndex == 6 || vertexIndex == 7)
{
mapPointBuilderEx.HasID = true;
mapPointBuilderEx.ID = 1;
}
lineVertices.Add(mapPointBuilderEx.ToGeometry() as MapPoint);
vertexIndex++;
}
}
var newLine = PolylineBuilderEx.CreatePolyline(lineVertices);
changeVertexIDOperation.Modify(lineLayer, oid, newLine);
changeVertexIDOperation.Execute();
});
... View more
02-29-2024
10:02 AM
|
2
|
1
|
191
|
POST
|
Hi, Here is a code snippet that sets a FeatureLayer to be uneditable. QueuedTask.Run(() =>
{
var cimFeatureLayer = layer.GetDefinition() as CIMFeatureLayer;
var featureTable = cimFeatureLayer.FeatureTable;
featureTable.Editable = false;
cimFeatureLayer.FeatureTable = featureTable;
layer.SetDefinition(cimFeatureLayer);
});
... View more
02-27-2024
12:06 PM
|
1
|
1
|
112
|
POST
|
Hi, Are you looking to add a new class break to a Unique Value renderer? If so, here is a code snippet: var layer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
if (layer == null)
return;
QueuedTask.Run( () => {
var uvr = layer.GetRenderer() as CIMUniqueValueRenderer;
if (uvr == null)
return;
var cimUniqueValueGroup = uvr.Groups[0] as CIMUniqueValueGroup;
var classes = cimUniqueValueGroup.Classes;
var cimUniqueValueClass = new CIMUniqueValueClass();
cimUniqueValueClass.Label = "New Value";
var lineSymbol = SymbolFactory.Instance.ConstructLineSymbol(ColorFactory.Instance.RedRGB, 2.0, SimpleLineStyle.Solid) ;
lineSymbol.UseRealWorldSymbolSizes = false;
cimUniqueValueClass.Symbol = lineSymbol.MakeSymbolReference();
#region New value to the class
var cimUniqueValues = new List<CIMUniqueValue>();
var cimUniqueValue = new CIMUniqueValue() { FieldValues = new string[] { "New Value" } };
cimUniqueValues.Add(cimUniqueValue);
#endregion
cimUniqueValueClass.Values = cimUniqueValues.ToArray();
cimUniqueValueClass.Visible = true;
var classesList = classes.ToList();
classesList.Add(cimUniqueValueClass);
cimUniqueValueGroup.Classes = classesList.ToArray();
uvr.Groups[0] = cimUniqueValueGroup;
layer.SetRenderer(uvr);
}); Regarding your second question, if you are looking to add a new Symbol layer to an existing symbol, this is the code snippet: var layer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault( s => s.ShapeType == esriGeometryType.esriGeometryPolyline);
QueuedTask.Run( () => {
var simpleRenderer = layer.GetRenderer() as CIMSimpleRenderer;
var lineSymbol = simpleRenderer.Symbol.Symbol as CIMLineSymbol;
if (lineSymbol == null)
return;
var layers = lineSymbol.SymbolLayers;
var solidStroke = SymbolFactory.Instance.ConstructStroke(ColorFactory.Instance.RedRGB, 2.0, SimpleLineStyle.Solid);
var offSetEffect = new CIMGeometricEffectOffset()
{
Method = GeometricEffectOffsetMethod.Rounded,
Offset = 3,
Option = GeometricEffectOffsetOption.Fast
};
solidStroke.Effects = new CIMGeometricEffect[] { offSetEffect };
var layersList = layers.ToList();
layersList.Add(solidStroke);
lineSymbol.SymbolLayers = layersList.ToArray();
simpleRenderer.Symbol = lineSymbol.MakeSymbolReference();
layer.SetRenderer(simpleRenderer);
});
... View more
02-27-2024
10:49 AM
|
1
|
0
|
158
|
POST
|
Hi Tim, This is now fixed in ArcGIS Pro 3.3. Thanks for reporting this one. Uma
... View more
02-26-2024
12:31 PM
|
1
|
1
|
100
|
Title | Kudos | Posted |
---|---|---|
1 | a week ago | |
2 | 02-29-2024 10:02 AM | |
1 | 02-27-2024 10:49 AM | |
1 | 02-27-2024 12:06 PM | |
1 | 02-26-2024 12:31 PM |
Online Status |
Offline
|
Date Last Visited |
3 hours ago
|