|
POST
|
Hi Max If you drop into a pane in Pro that holds a MapView, it will be an IMapPane. From this, you can get the MapView. This works even if you drop into a Pane that is not the active one (gray on the tab name). Thanks Uma
... View more
06-11-2019
11:38 AM
|
0
|
0
|
1463
|
|
POST
|
Hi The public API process to accomplish this will be available soon. In the meantime, this is a work around: *Using the Pro UI: * add the Map Note you want to the map. * Save the Map notes as a layer file (using the sharing tab). This is a one time process to store the MapNotes as layer files. Then using the API: * Add the layer file to the active map. * You can now start using the tools to add the required template feature to your map. Thanks Uma
... View more
06-06-2019
09:31 AM
|
0
|
1
|
1087
|
|
POST
|
Hi Max I couldn't reproduce this problem. I was able to add a new Label Class using this method. The Label Class has the name passed to the AddLabelClass method. Can you please share a code snippet? Thanks Uma
... View more
06-06-2019
07:05 AM
|
0
|
2
|
1282
|
|
POST
|
The ComboBox class is created only when it gets visible. This is by design. The Combobox contents can be initialized in the Module Class. You can then access this in your ComboBox class by referencing it from the Module. module1.Current.ComboBoxItems...
... View more
06-05-2019
04:05 PM
|
0
|
1
|
2440
|
|
POST
|
You can set the "autoload" attribute for the "insertModule" element in the Config.daml to true in your add-in. This will load your add-in as soon as Pro opens up. ...
<modules>
<insertModule id="Pro_AddIn_Module" className="Module1" autoLoad="true" caption="Module1">
...
... View more
06-05-2019
02:14 PM
|
0
|
3
|
2440
|
|
POST
|
Hi Tim ArcGIS Pro 2.3 supports Visual Studio 2015 and 2017. These versions also have the free Community editions. ArcGIS Pro 2.4 will be released soon in a few weeks - This will support Visual Studio 2019.
... View more
05-31-2019
10:53 AM
|
2
|
0
|
4031
|
|
POST
|
Hi Tim You can use the Visual Studio Community Edition. It is a fully-featured, free IDE. https://visualstudio.microsoft.com/vs/community/ Pro SDK is fully supported with the Visual Studio Community edition. Thanks Uma
... View more
05-31-2019
08:10 AM
|
2
|
0
|
4031
|
|
POST
|
Hi The best way to change the visibility of a field to use the IDisplayTable. This code will set all the fields in a layer to be visible: var table = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault() as IDisplayTable;
QueuedTask.Run( () => {
var fieldDescriptions = table.GetFieldDescriptions();
foreach (var field in fieldDescriptions)
{
field.IsVisible = true;
}
table.SetFieldDescriptions(fieldDescriptions);
}); Thanks Uma
... View more
05-28-2019
01:03 PM
|
2
|
1
|
2986
|
|
POST
|
Hi Greg, I ran your code using Pro 2.3 and I see the same problem. I can see the exact same error with the Edit Operation method you are experiencing. Good news: Your code works completely with Pro 2.4. I was able to create an in-memory feature class and then add a point feature to it using edit operation. Pro 2.4 will be released in a few weeks. Thank you for posting this issue. Thanks Uma
... View more
05-24-2019
09:37 AM
|
3
|
1
|
3363
|
|
POST
|
Hi Alex, If you set the Dockpane's "isDropTarget" attribute to false, then when you drag and drop into a control like the text box, you can get a handle to it using the `dropInfo.VisualTarget` property. My config.daml for dockpane: (Note the isDropTarget is set to false) <dockPane id="DockpaneDragDrop_DragDropDockpane" ... isDropTarget="false">
<content className="DragDropDockpaneView" />
</dockPane> xaml for dockpane: <UserControl.Resources>
<ResourceDictionary>
<Style x:Key="FeatureClassTextBox" TargetType="{x:Type TextBox}">
<Setter Property="dragDrop:DragDrop.IsDragSource" Value="True" />
<Setter Property="dragDrop:DragDrop.IsDropTarget" Value="True" />
<Setter Property="dragDrop:DragDrop.DropHandler" Value="{Binding}" />
<Setter Property="dragDrop:DragDrop.DragHandler" Value="{Binding}" />
</Style>
</ResourceDictionary>
</UserControl.Resources>
...
<TextBox Width="250" Text="{Binding FeatureLayer}" Style="{StaticResource FeatureClassTextBox}"></TextBox> In your OnDrop callback: public override void OnDrop(DropInfo dropInfo)
{
...
var myTextBox = dropInfo.VisualTarget //{System.Windows.Controls.TextBox};
...
dropInfo.Handled = true;
} Thanks Uma
... View more
05-23-2019
02:53 PM
|
1
|
2
|
4542
|
|
POST
|
Hi Susan To see if the Active Map view changed in Pro, you can subscribe to the ActiveMapViewChangedEvent To see if a new project was opened, you can subscribe to the ProjectOpenedEvent I think these are the events you are looking for. Thanks Uma
... View more
05-22-2019
10:15 AM
|
2
|
0
|
1421
|
|
POST
|
Hi Max, There was an issue with the sequence of how custom drop handlers were being evaluated in Pro 2.2 on drag drop and that was fixed in 2.3. Because custom handlers are now evaluated first, the TargetModel property cannot always be guaranteed to be populated. Instead, please use this code snippet below: We will be updating the relevant samples for 2.4. public override void OnDrop(DropInfo dropInfo)
{
#region Implement Your OnDrop Here
if (FrameworkApplication.Panes.ActivePane is IMapPane)
{
//a drag is being made on the active map
var view = ((IMapPane)FrameworkApplication.Panes.ActivePane).MapView;
// globe or local
if (view.ViewingMode == MapViewingMode.SceneGlobal ||
view.ViewingMode == MapViewingMode.SceneLocal)
{
//we are in 3D
OnDrop3D(dropInfo);
}
else
{
//we are in 2D
OnDrop2D(dropInfo);
}
}
#endregion
dropInfo.Handled = true;
} Thanks Uma
... View more
05-20-2019
10:27 AM
|
0
|
2
|
1463
|
|
POST
|
Hi Alex, When you add the reference to Esri.ArcGIS.ItemIndex.dll, the Copy Local attribute needs to be set to "False". This will fix the issue you are experiencing. Note: As a precaution, after you change this attribute, clean up your AssemblyCache folder in this location - C:\Users\UserName\AppData\Local\ESRI\ArcGISPro\AssemblyCache (One time only after this setting change). Thanks Uma
... View more
05-20-2019
10:13 AM
|
1
|
4
|
4542
|
|
POST
|
Hi Alex, Dockpanes support drag drop. This wiki page helps you implement drag and drop to dockpanes and to specific controls as such text boxes on the pane. ProGuide: DockPanes - Support drag and drop Additionally, in your OnDrop override, here is the code snippet to use to access the feature class item being dropped: public override void OnDrop(DropInfo dropInfo)
{
//eg, if you are accessing a dropped file
string filePath = dropInfo.Items[0].Data.ToString();
string path = "";
if (dropInfo.Data is List<ClipboardItem> clipboardItems)
{
var thisItem = clipboardItems.FirstOrDefault();
path = thisItem.ItemInfoValue.catalogPath; //Use this at 2.3. Add reference to Esri.ArcGIS.ItemIndex.dll found in the bin folder of Pro installation location
path = thisItem.CatalogPath; //At 2.4 use this instead.
ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show($"Dropped {path} from Catalog");
}
//set to true if you handled the drop
dropInfo.Handled = true;
} Thanks Uma
... View more
05-17-2019
09:36 AM
|
1
|
6
|
4542
|
|
POST
|
Hi Khamille, In addition to the link Gintautas has shared with you, here is a wiki link that walks you through using ICommands as "bindings" on your dockpane using the MVVM pattern. Your custom tool can be used with this also. ProGuide: Reusing Pro Commands Thanks Uma
... View more
05-14-2019
08:26 AM
|
0
|
0
|
1480
|
| 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 |
04-16-2026
09:00 AM
|