|
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
|
1891
|
|
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
|
1891
|
|
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
|
3512
|
|
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
|
3512
|
|
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
|
2573
|
|
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
|
2914
|
|
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
|
3417
|
|
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
|
1248
|
|
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
|
1110
|
|
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
|
3417
|
|
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
|
3417
|
|
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
|
1229
|
|
POST
|
Hi Daniel, Nothing new has been added to the ArcGISSignAddIn.exe at 2.3.2. I tested using this version of Pro and I was able to sign the add-in. No exception was thrown.
... View more
05-07-2019
02:18 PM
|
0
|
1
|
1927
|
|
POST
|
Hi Tim Set the AllywaysFireOnClick property on the Gallery class to true. This will allow you to click the selected item in a gallery. I will update the Gallery wiki page with this info. Thanks Uma
... View more
05-07-2019
02:15 PM
|
1
|
3
|
1847
|
| 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 |
3 weeks ago
|