|
POST
|
Hi Bob, To label features of a layer, you have to use the SetLabelVisibility method. Check out the TextSymbols sample. Specifically in the ApplyLabelFeatureLayerAsync method, notice how we get the layer's TextSymbol and change it to the Symbol we want (in your case the Balloon callout). You can simply call the SetLabelVisibility method and pass in true to label the layer. private Task ApplyLabelFeatureLayerAsync()
{
return QueuedTask.Run(() =>
{
//Get the layer's definition
var lyrDefn = SelectedLayer.GetDefinition() as CIMFeatureLayer;
//Get the label classes - we need the first one
var listLabelClasses = lyrDefn.LabelClasses.ToList();
var theLabelClass = listLabelClasses.FirstOrDefault();
//Place all labels horizontally
theLabelClass.StandardLabelPlacementProperties.LineLabelPosition.Horizontal = true;
//Set the label classes' symbol to the custom text symbol
theLabelClass.TextSymbol.Symbol = SelectedTextStyle.Symbol;
lyrDefn.LabelClasses = listLabelClasses.ToArray(); //Set the labelClasses back
SelectedLayer.SetDefinition(lyrDefn);
//set the label's visiblity
if (IsLabelVisible)
(SelectedLayer as FeatureLayer).SetLabelVisibility(true);
});
} Thanks Uma
... View more
02-10-2020
09:39 AM
|
0
|
5
|
3093
|
|
POST
|
Hi! Configurations allow the processing of DAML at Pro start-up. The callback to use for this is OnUpdateDatabase You can also use the OnCreateDAML callback in Configurations to provide DAML in the form of an XML string at run-time. With Add-ins, you will have to modify the UI (at runtime) using states and conditions. Thanks Uma
... View more
02-10-2020
08:41 AM
|
0
|
1
|
1578
|
|
POST
|
Hi This is currently not supported in the SDK. Support will be added in version 2.6. Thanks Uma
... View more
02-05-2020
02:31 PM
|
0
|
2
|
3246
|
|
POST
|
Hi David Can you please share a code snippet? I am not seeing this behavior with 2.4 so a code snippet might help to narrow down what you are seeing. Thank you! Uma
... View more
02-04-2020
03:51 PM
|
0
|
3
|
2099
|
|
POST
|
Hi Monika To drag and drop a custom item, implement the IMappableItem interface You will have to implement the following 2 methods on your custom item: 1. CanAddToMap Method: Return true here to allow the items to be dropped on a Map or Scene. 2. OnAddToMap method: This is where you add your logic that allows you to display your item in the map. It could be where you load your plugin, or run a GP tool, etc. The Custom item guide and samples will be updated with this info when Pro 2.5 is released next week. Thanks! Uma
... View more
01-28-2020
10:16 AM
|
1
|
0
|
1573
|
|
POST
|
Hi Michael, I see this problem in 2.4. The alignments set in code are not reflected in the text element in the Layout. But the good news is that this is now fixed in 2.5. Pro 2.5 will be available next week. Thanks Uma
... View more
01-28-2020
09:41 AM
|
1
|
0
|
1141
|
|
POST
|
Hi Victor The 2.3 code should successfully compile and execute with 2.4. Can you check in your add-in project's solution explorer for the following: * In your add-in's solution explorer, right click on ESRI.ArcGIS.ItemIndex (listed under the References node.) * In the Properties window that shows up, check if the CopyLocal attribute for this dll is set to True. It needs be False. If it is True, change this to be False. Compile and run your add-in and check if the error goes away. Thanks Uma
... View more
01-13-2020
01:49 PM
|
1
|
1
|
1461
|
|
POST
|
Hi Barbara The best way to ensure that the MapView initialization is complete and a MapView is available is to use the DrawCompleteEvent. The arcgis-pro-sdk-community-samples repo has a few examples: https://github.com/Esri/arcgis-pro-sdk-community-samples/search?q=DrawCompleteEvent&unscoped_q=DrawCompleteEvent Thanks Uma
... View more
01-10-2020
09:06 AM
|
2
|
3
|
6570
|
|
POST
|
Hi Lesley Set the "dropDown" attribute of the buttonPalette element in the Config.daml to true. This will make the palette on the Pro Ribbon to reflect the enabled state of the button. <palettes>
<buttonPalette id="PalletteConditions_ButtonPaletteCondition" dropDown="true" caption="ButtonPaletteCondition" menuStyle="true" >
<button refID="PalletteConditions_ButtonPaletteCondition_Items_Button1" />
<button refID="PalletteConditions_ButtonPaletteCondition_Items_Button2" />
<button refID="PalletteConditions_ButtonPaletteCondition_Items_Button3" />
</buttonPalette>
</palettes> Thanks Uma
... View more
01-02-2020
09:43 AM
|
0
|
1
|
1197
|
|
POST
|
Hi Max I have informed the Business Analyst team since this happens with this specific data. If you have a reproducible workflow with this, you could also contact technical support. Thanks! Uma
... View more
12-20-2019
02:09 PM
|
0
|
0
|
2112
|
|
POST
|
Hi Max, Are you able to copy the layers manually? For example (using the UI) - * Import the mxd into Pro. * Open another Map and create a group layer. * Copy the layers from the mxd imported map to the new group layer in the new map. Does this workflow succeed? Also, if you can give me more information on the mxd and the types of layers in it, we can get to the bottom of the problem. I was able to use your code snippet on a simple mxd I had with a point, line and poly layer. The import and the subsequent copy worked in my test case. Thanks! Uma
... View more
12-20-2019
09:31 AM
|
0
|
2
|
2112
|
|
POST
|
Hi Max The MoveLayer on the group layer allows you to move layers within the group of the same layer. I used copyLayer instead - var item = ItemFactory.Instance.Create("doc.mxd");
var currentMap = MapView.Active.Map;
var map = await QueuedTask.Run(() => MapFactory.Instance.CreateMapFromItem(item));
await QueuedTask.Run(() =>
{
var groupLayer = LayerFactory.Instance.CreateGroupLayer(currentMap, 0, map.Name);
foreach (var layer in map.Layers)
{
if (LayerFactory.Instance.CanCopyLayer(layer))
LayerFactory.Instance.CopyLayer(layer, groupLayer);
}
});
... View more
12-19-2019
03:19 PM
|
0
|
4
|
2112
|
|
POST
|
Hi Lesley I was able to see the same behavior you are seeing. I narrowed down the issue to the CreateColorizer method - it is using the "NAME" field to create the CIMRasterUniqueValueGroup groups. There is a mismatch in the output. I have informed the Raster development about this issue. I will post back to this thread when there is a solution or workaround for this. Thank you reporting this! Uma
... View more
12-18-2019
09:34 AM
|
0
|
0
|
1582
|
|
POST
|
There is a MapSelectionChangedEvent that gets triggered when the selection has changed (when you click on a feature) in the map. So you could listen for this event and execute your code.
... View more
12-16-2019
09:27 AM
|
0
|
0
|
834
|
|
POST
|
When you create a Map frame, if you don't pass in the map, it creates an empty empty map frame. var mf = LayoutElementFactory.Instance.CreateMapFrame(layout, mf_envelope);
... View more
12-13-2019
09:32 AM
|
0
|
1
|
1708
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 09:54 AM | |
| 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 |
Thursday
|