|
POST
|
Hi Benoit Additionally, I have listed a video and a powerpoint from Dev Summit 2016 and User Conference 2016 that covered these topics: http://www.esri.com/videos/watch?videoid=5045&channelid=LegacyVideo&isLegacy=true&title=arcgis-pro-sdk-for-.net:-animation-and-map-exploration http://proceedings.esri.com/library/userconf/proc16/tech-workshops/tw_1853-255.pdf We will probably be covering these topics in the Esri Developer Summit 2017 at Palm Springs also Thanks! Uma Harano
... View more
11-29-2016
11:24 AM
|
1
|
0
|
1551
|
|
POST
|
Hi Benoit You can check out the following two samples in the arcgis-pro-sdk-community-samples repository to see how you can make Custom pop ups and Layer pop ups: arcgis-pro-sdk-community-samples/Map-Exploration/CustomPopup at master · Esri/arcgis-pro-sdk-community-samples · GitHub arcgis-pro-sdk-community-samples/Map-Exploration/LayerPopups at master · Esri/arcgis-pro-sdk-community-samples · GitHub Thanks Uma Harano ArcGIS Desktop SDK Team
... View more
11-29-2016
11:21 AM
|
0
|
3
|
1551
|
|
POST
|
Hi Issa, Here is the link: arcgis-pro-sdk-community-samples/Map-Exploration/CustomIdentify at master · Esri/arcgis-pro-sdk-community-samples · GitH…
... View more
10-30-2016
04:21 PM
|
1
|
0
|
1302
|
|
POST
|
Hi Rich You can see a list of all these commands on this page: Button DAML ID Reference · Esri/arcgis-pro-sdk Wiki · GitHub Thanks Uma Harano ArcGIS Desktop SDK team
... View more
10-20-2016
02:14 PM
|
1
|
0
|
2248
|
|
POST
|
Hi Collin Here is a sample that contains three different examples of working with Pro's graphic overlay: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/OverlayExamples There are also some code snippets available here: https://github.com/ArcGIS/arcgis-pro-sdk/wiki/ProSnippets-MapExploration#graphic-overlay Thanks Uma Harano ArcGIS Desktop SDK Team.
... View more
10-14-2016
01:37 PM
|
2
|
0
|
660
|
|
POST
|
Hi JB, Creations\Modifications of a geodatabase are supported through the Geoprocessing API by using the Data Management tools. The FAQ section has more information on this. Thanks Uma Harano ArcGIS Desktop SDK Team.
... View more
10-10-2016
08:58 AM
|
0
|
0
|
1817
|
|
POST
|
Hi Karl, At 1.3 you can control the order by which your add-in is loaded by ArcGIS Pro using the "id" attribute of your Add-in (from the config.daml). For Example: "Add-In#1" has an id attribute declared in the config.daml as {c1a60c8f-2f6f-4198-a5d6-ea964ebf678c}. Add-In#2 has an id of {0d9f5aca-097b-4e49-9e44-505a61b99308}. Snippet from config.daml given below: <AddInInfo id="{c1a60c8f-2f6f-4198-a5d6-ea964ebf678c}" version="1.0" desktopVersion ... and <AddInInfo id="{0d9f5aca-097b-4e49-9e44-505a61b99308}" version="1.0" desktopVersion ... Pro will load Add-In#2 with GUID 0d9f5aca.. first followed by Add-In#1 with GUID c1a60c8f.. (Alphabetically sequenced). So Add-In# 1 can modify UI elements declared in Add-In#2. At 1.4, you will be able to control this better with a "Dependency" tag in the config.daml. Thanks Uma Harano ArcGIS Desktop SDK Team
... View more
09-26-2016
06:17 PM
|
0
|
0
|
1015
|
|
POST
|
Hi Horia You can use existing ArcGIS Pro commands in your own add-in by using the FrameworkApplication class' GetPlugInWrapper method. There are a few samples that shows you how to do this: Hook Pro Commands sample. Identify Window sample Thanks Uma
... View more
07-05-2016
11:10 AM
|
1
|
0
|
1053
|
|
POST
|
Hi Luke The "condition" attribute of the dockpane element in the config.daml is deprecated. It cannot be used to control the visibility of the controls inside the dockpane. Thanks Uma Harano
... View more
07-05-2016
09:36 AM
|
0
|
3
|
1854
|
|
POST
|
Hi Luke I have passed on your findings to the Framework team - I don't have estimate as to when it will be fixed. I will keep you posted. Thanks Uma
... View more
06-29-2016
02:40 PM
|
0
|
1
|
772
|
|
POST
|
Hi Luke To hide the controls in your dockpane, you can bind them in the xaml to a Visibility property in your dockpane. Toggle the visibility property based on your state activation\deactivation code. Here is a sample: dockpaneViewModel vm = FrameworkApplication.DockPaneManager.Find("viewmodel_id") as dockpaneViewModel ;
if (criteria)
{
//activate state
FrameworkApplication.State.Activate(StateId); //Activates the custom state when the context is set.
if (vm != null)
{
vm.DockpaneVisible = Visibility.Visible;
.....
}
}
else
{
FrameworkApplication.State.Deactivate(StateId);
if (vm != null)
vm.DockpaneVisible = Visibility.Collapsed;
} Thanks Uma Harano ArcGIS Desktop SDK Team
... View more
06-27-2016
09:14 AM
|
0
|
2
|
1854
|
|
POST
|
Hi Ted You can read and write the Project's settings using these two overrides on the module class - OnWriteSettingsAsync and OnReadSettingAsync. There is a sample in the arcgis-pro-sdk-community-samples repository that demonstrates this. Thanks Uma Harano
... View more
06-15-2016
09:09 AM
|
0
|
0
|
519
|
|
POST
|
Hi Ted, Here is a way to customize the disabedText property of a button\tool: * Set the tool's loadOnClick attribute to "false" in the config.daml. This will allow the tool to be created when Pro launches. This way the disabledText property can display customized text at startup. * Remove the "condition" attribute from the tool. You will be using the OnUpdate method to set the enable\disable state of the tool. * Add the OnUpdate method to the tool. The code for it will be something like this: protected override void OnUpdate()
{
bool enableSate = true; //TODO: Code your enabled state
bool criteria1 = true; //TODO: Evaluate criteria for disabledText
bool criteria2 = false; //TODO: Evaluate criteria
bool criteria3 = true; //TODO: Evaluate criteria
if (enableSate)
{
this.Enabled = true; //tool is enabled
}
else
{
this.Enabled = false; //tool is disabled
//customize your disabledText here
if (criteria1)
this.DisabledTooltip = "Missing criteria 1";
else if (criteria2)
this.DisabledTooltip = "Missing criteria 2";
else if (criteria3)
this.DisabledTooltip = "Missing criteria 3";
}
} Note: since OnUpdate is called very frequently, you should avoid lengthy operations in this method as this would reduce the responsiveness of the application user interface. Thanks Uma Harano ArcGIS Desktop SDK Team
... View more
04-29-2016
02:01 PM
|
0
|
0
|
642
|
|
POST
|
Hi Andre There are a couple ways by which you can accomplish what you need: 1. Make a new Layout in your project. Add a Map frame to your layout. Define the map you want within that map frame. You can then use the following code snippet (also available in the API Reference guide here) to export the map as a PNG file: //This example demonstrates how to export an individual map frame on a layout to PNG. //Added references using ArcGIS.Desktop.Core; //Project using ArcGIS.Desktop.Layouts; //Layout classes using ArcGIS.Desktop.Framework.Threading.Tasks; //QueuedTask using ArcGIS.Desktop.Mapping; //Export formats public class ExportMapFrameToPNGExample { public static Task ExportMapFrameToPNGAsync(string LayoutName, string MFName, string Path) { //Reference a layoutitem in a project by name LayoutProjectItem layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals(LayoutName)); if (layoutItem == null) return Task.FromResult<Layout>(null); //Create PNG format with appropriate settings PNGFormat PNG = new PNGFormat(); PNG.Resolution = 300; PNG.OutputFileName = Path; return QueuedTask.Run(() => { //Export MapFrame Layout lyt = layoutItem.GetLayout(); //Loads and returns the layout associated with a LayoutItem MapFrame mf = lyt.FindElement(MFName) as MapFrame; PNG.OutputFileName = Path; if (PNG.ValidateOutputFilePath()) { mf.Export(PNG); } }); } } 2. If you want your add-in to display Pro's "Export Map" dialog, you can use the following code snippet to execute an ICommand using IPlugInWrapper. This snippet can be added to a button's click handler, for example: internal class Button1 : Button { protected override void OnClick() { IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper("esri_sharing_ExportMap"); // Export Map button's ID. var command = wrapper as ICommand; // tool and command(Button) supports this if ((command != null) && command.CanExecute(null)) command.Execute(null); } } Thanks Uma Harano ArcGIS Desktop SDK team
... View more
04-20-2016
01:27 PM
|
0
|
0
|
548
|
|
POST
|
Hi Luke, The version is hard coded already into the config.daml. It never changes for the lifetime of that add-in. Once you make your variable, you would not have to update it. Thanks Uma Harano ArcGIS Desktop SDK Team.
... View more
04-20-2016
09:19 AM
|
0
|
0
|
2080
|
| 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 |
Online
|
| Date Last Visited |
15 hours ago
|