|
POST
|
Hi Than I was able to successfully build a Module add-in Project that includes a ProWindow item template using the Azure DevOps pipeline. I deleted all the Pro file based assembly references. I added the ArcGISProExtensions nuget and then built it on DevOps. Can you please check the following: 1. The Nuget was included using the Package Reference option in Visual Studio. Can you check if you are doing the same thing? 2. If you make a simple Add-in project (no item templates and no customizations) are you able to build this project on Azure? Thanks! Uma
... View more
04-07-2020
08:04 AM
|
2
|
1
|
2198
|
|
POST
|
Hi Jeff CreateMapPaneAsync triggers other internal events in Pro that does the initialization and opening of the map pane routines. One way you could accomplish what you need is by: Subscribing to the DrawCompleteEvent. In the event handler, once your "Map" opens, activate the layout pane. //In your module class initialize call back
protected override bool Initialize(){
ArcGIS.Desktop.Mapping.Events.DrawCompleteEvent.Subscribe(OnDrawComplete);
return base.Initialize();
}
//Remember to unsubscribe so that thsi happens only once (if that is the behavior you need)
private void OnDrawComplete(MapViewEventArgs obj) {
if (obj.MapView.Map.Name == "New Map")
{
Module1.LayoutPane.Activate();
}
} Thanks Uma
... View more
03-30-2020
07:58 PM
|
0
|
1
|
1191
|
|
POST
|
This has been fixed in version 2.6. Pro 2.6 will be released in summer. Thanks Uma
... View more
03-26-2020
08:21 AM
|
0
|
0
|
686
|
|
POST
|
Hi Than, Unfortunately this did not make it in 2.5. I will reply to this thread when I have more information. Thanks Uma
... View more
03-26-2020
08:20 AM
|
0
|
2
|
2574
|
|
POST
|
Hi, Use the AlwaysUseInitialLocation property to force the OpenItemDialog to open the folder specified in the InitialLocation property. The behavior of the dialog is to open the last location opened using the current filter if you do not set this property to true. Thanks Uma
... View more
03-26-2020
07:12 AM
|
0
|
1
|
1586
|
|
POST
|
Hi Abel, Your button can display any image stored in Pro's ArcGIS.Desktop.Resources.dll. These images are listed in the wiki page on your post. You can display a Pro button image on your custom button by setting the largeImage and smallImage attribute in the config.daml for the button element like this code snippet below. The snippet below will display Pro's FolderConnection image on a custom button on the ribbon. <button id="my_button" caption="My Button" className="myButtonClass" loadOnClick="true"
smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/FolderConnectionAdd16.png"
largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/FolderConnectionAdd32.png">
</button> Another good resource to read for this is the Referencing images from ArcGIS Pro section in the ProGuide: Content and Image resources wiki. The Pro UI is written using WPF (Windows Presentation Foundation) which is a graphical User interface designed by Microsoft. In Pro, your Add-in can create buttons, dockpanes, panes, ProWindow (dialog) etc using the SDK Item templates. Here are some resources that will help you get started with developing UI with Pro SDK: 1. We have various samples in the ArcGIS-Pro-SDK-Community-Samples repo that can help you. 2. The Pro SDK team has recorded many sessions on YouTube (from previous conferences) that will also help you. 3. On the Pro SDK website, there is a collection of tutorials that can also help: ArcGIS Pro SDK Tutorials Thanks Uma
... View more
03-25-2020
11:10 AM
|
0
|
3
|
2718
|
|
POST
|
Hi Brian, I used Interest in my sample code and I don't see this problem. What projection are you using? Also, would it be possible if you can zip up a small set of your data and share it? That would really help us narrow down this issue. Thanks Uma
... View more
03-24-2020
08:38 AM
|
0
|
0
|
995
|
|
POST
|
Hi, FindAndReplaceWorkspacePath does not support changing workspace types - FileGDB to SDK and vice versa. Instead, use ReplaceDataSource method. //This is the existing layer for which we want to switch the underlying datasource
var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
QueuedTask.Run(() => {
using (Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri(@"Full path to SDConnectionFile.sde")))) {
using (Dataset dataset = geodatabase.OpenDataset<FeatureClass>("ArcGIS.DBO.TESTPOINTS")) {
lyr.ReplaceDataSource(dataset);
}
}
}); Thanks Uma
... View more
03-23-2020
04:07 PM
|
0
|
0
|
479
|
|
POST
|
Hi Simon, Here is a better approach - There is a condition in Pro you can use out of the box - The condition is "esri_core_isSignedIn" . <button id="SigningOffPortal_StatusButton" caption="StatusButton" condition="esri_core_isSignedIn" ../> I tested it and the button enables/disabled based on the Sign In status. Thanks Uma
... View more
03-23-2020
02:49 PM
|
0
|
1
|
2170
|
|
POST
|
Hi Simon There is a IsSignedOn property that you can use. To use this property to enable/Disable your toolbar, I recommend States and Conditions. You can create your own condition based on IsSignedOn property, then build the underlying state using your condition. Thanks Uma
... View more
03-23-2020
12:19 PM
|
0
|
3
|
2170
|
|
POST
|
Hi Brian Can you try another SpatialRelationship such as "Crosses" ? SpatialRelationships Thanks Uma
... View more
03-18-2020
11:43 AM
|
0
|
2
|
995
|
|
POST
|
I have passed on this request to the Development team. Thanks! Uma
... View more
03-18-2020
10:48 AM
|
0
|
0
|
709
|
|
POST
|
Hi Rupert, Pro application (ArcGISPro.exe) does not use the binding redirect you have used in your add-in. The best way to solve your issue is to resolve the Pro assembly path from your module - this will allow your add-in to use the Newtonsoft from Pro's bin folder. So in your Module's Initialize override - private static string _arcgisProPath = @"C:\Program Files\ArcGIS\Pro\"; //Get install path from registry
public static Assembly ResolveProAssemblyPath(object sender, ResolveEventArgs args)
{
string assemblyPath = Path.Combine(_arcgisProPath, "bin", new AssemblyName(args.Name).Name + ".dll");
if (!File.Exists(assemblyPath)) return null;
Assembly assembly = Assembly.LoadFrom(assemblyPath);
return assembly;
}
protected override bool Initialize()
{
//Resolve ArcGIS Pro assemblies.
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.AssemblyResolve += new ResolveEventHandler(ResolveProAssemblyPath);
return base.Initialize();
} Thanks Uma
... View more
03-17-2020
01:14 PM
|
0
|
0
|
1375
|
|
POST
|
Hi Than You cannot activate a specific tab on the Catalog dockpane. Thanks Uma
... View more
03-17-2020
10:33 AM
|
0
|
2
|
709
|
|
POST
|
Hi Justin, Graphic overlays cannot be draped over the elevation surface. Thanks Uma
... View more
03-17-2020
09:50 AM
|
0
|
0
|
4422
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 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 |
| Online Status |
Online
|
| Date Last Visited |
3 hours ago
|