|
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
|
1585
|
|
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
|
1209
|
|
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
|
821
|
|
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
|
963
|
|
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
|
5461
|
|
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
|
971
|
|
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
|
1630
|
|
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
|
1630
|
|
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
|
1630
|
|
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
|
976
|
|
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
|
674
|
|
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
|
1365
|
|
POST
|
Hi Max This is not supported with the Pro API currently.
... View more
12-12-2019
11:01 AM
|
0
|
1
|
1125
|
|
POST
|
Hi Than This worked for me - scaleBarElement.UnitLabel = "Not Kilometers";
var numberFormat = scaleBarElement.NumberFormat as CIMNumericFormat;
numberFormat.RoundingOption = esriRoundingOptionEnum.esriRoundNumberOfSignificantDigits;
... View more
12-12-2019
10:02 AM
|
2
|
1
|
1384
|
|
POST
|
Hi Than I am not seeing this behavior with 2.5 or with 2.4. Can you please share a code snippet? This is what I did - Breakpoint in the event handler was also hit only once... //In my Module class
internal class Module1 : Module
{
protected override bool Initialize()
{
//Subscribe to the event:
MapPropertyChangedEvent.Subscribe(OnMapPropertyChanged);
return base.Initialize();
}
private void OnMapPropertyChanged(MapPropertyChangedEventArgs obj)
{
System.Diagnostics.Debug.WriteLine("MapPropChangedEventTriggered");
}
.... Thanks Uma
... View more
12-12-2019
08:49 AM
|
0
|
1
|
1696
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM | |
| 1 | 11-20-2024 10:50 AM | |
| 1 | 04-28-2025 03:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|