|
POST
|
Hi Brian I tried this in a simple add-in. I am not seeing the wait cursor.
... View more
04-11-2018
03:41 PM
|
0
|
2
|
999
|
|
POST
|
Hi Brian Great suggestion. I have added some information to explain some of the advanced template functionalities. Scroll to bottom of this table to see the information: Home · Esri/arcgis-pro-sdk Wiki · GitHub Thanks Uma
... View more
04-11-2018
03:38 PM
|
0
|
0
|
508
|
|
POST
|
Hi Takahiro Yes, it is recommend to use C:\Program Files\ArcGIS\Pro\bin\ArcGISSignAddIn.exe to sign your add-in or configuration. The step by step instructions in this page uses this exe: https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Digitally-signed-add-ins-and-configurations#applying-digital-sign… Thanks Uma
... View more
04-02-2018
12:27 PM
|
2
|
0
|
3818
|
|
POST
|
Hi Can you please check if the code snippet below is in your xaml? Add this code snippet to your xaml so that these Dynamic resources will load in Design mode in Visual Studio. (The templates will automatically add this to the xaml) <UserControl ...
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
...>
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
... View more
03-28-2018
03:03 PM
|
0
|
3
|
3330
|
|
POST
|
Hi, Sure! Here is a sample configuration solution that will help. I have created a resource called OnCreateDaml.txt in the attached solution. This txt file is the DAML that will be loaded by Pro when you run the Configuration. In this text file, I have the updateModule snippet like before. This gets returned by the OnCreateDaml override to the Pro Framework. protected override string OnCreateDaml()
{
return Resource1.OnCreateDaml;
//return base.OnCreateDaml();
} Thanks Uma
... View more
03-27-2018
12:53 PM
|
0
|
0
|
4254
|
|
POST
|
Hi Looks like this is a bug. I was able to see your problem in a Configuration. As a workaround, I was able to modify the context menu by using the OnCreateDAML override of the ConfigurationManager class. Thanks Uma
... View more
03-27-2018
11:25 AM
|
0
|
1
|
4254
|
|
POST
|
The DAML looks correct. I was able to copy your daml snippet into an add-in. I now see the Save button in the context menu for the selection. Perhaps check if the add-in is being loaded correctly by Pro using the Add-in Manager?
... View more
03-26-2018
02:56 PM
|
0
|
3
|
4254
|
|
POST
|
Hi Mike, Check out the Renderer community sample. There is code in there that gets a feature layer's numeric field. In particular, check out the following 2 methods: Given a feature layer, this method get's the first numeric field. internal static string GetNumericField(FeatureLayer featureLayer)
{
//Get all the visible numeric fields for the layer.
var numericField = featureLayer.GetFieldDescriptions().FirstOrDefault(f => IsNumericFieldType(f.Type) && f.IsVisible);
return numericField.Name;
} This is the helper method that does the work: internal static bool IsNumericFieldType(FieldType type)
{
switch (type)
{
case FieldType.Double:
case FieldType.Integer:
case FieldType.Single:
case FieldType.SmallInteger:
return true;
default:
return false;
}
} Thanks Uma
... View more
03-26-2018
10:58 AM
|
0
|
1
|
4212
|
|
POST
|
Hi, Here is the DAML code (add to your config.daml file in your add-in) to insert into Pro's Selection context menu. As Sean mentioned, the DAML ids can be found in the ArcGIS DAML reference page on the SDK wiki. <!--Note: "updateModule" tag should be within the "modules" tag-->
<updateModule refID="esri_mapping">
<menus>
<!--This is the DAML ID of Pro context menu -->
<updateMenu refID="esri_mapping_selection2DContextMenu">
<!--SelectedFeatureContextMenu_Open_Attribute_Menu is a button control that must exist within the controls tag-->
<insertButton refID="SelectedFeatureContextMenu_Open_Attribute_Menu"
placeWith="esri_mapping_locateReverseGeocode" />
</updateMenu>
</menus>
</updateModule> Thanks Uma
... View more
03-26-2018
10:50 AM
|
0
|
0
|
4254
|
|
POST
|
Hi I have seen this happen when the namespace declared in daml doesn't match the namespace in my tool/button class file. Could that be an issue for you? https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Diagnosing-ArcGIS-Pro-Add-ins#namespace-mismatch-causes-controls-… Thanks Uma
... View more
03-23-2018
09:34 AM
|
0
|
2
|
775
|
|
POST
|
Hi Takahiro, In Visual Studio, I had to select all the files in the folder and then modify their Build Action. I don't think you can do it at the file level - I haven't tried that. Regarding your question about the GDAL resources - if you need any files to be copied over to your output at build time, you have to set these properties. I think it should work for your GADL files also. Thank you! Uma
... View more
03-19-2018
09:54 AM
|
0
|
3
|
3818
|
|
POST
|
Hi Takahiro I downloaded your content. I see two folders, "Before" signing the add-in and "After" signing the add-in. There is a "Template" folder with gdb files in the "Before" folder and this template folder is missing in the "After" folder. These folders represent the "Install" folder in your esriAddinX compressed file, correct? In my signed add-in I did the following to get this to work: 1. In my .csproj file for the Add-in, I have added the following target: <Target Name="AfterBuild" DependsOnTargets="PackageArcGISContents">
<!--Replace the path in the sample command below to your pfx file on disk and use the password that has been assigned to the pfx file.
Confirm that the path to ArcGIS Pro bin folder matches your installation location.-->
<Exec Command=""C:\Program Files\ArcGIS\Pro\bin\ArcGISSignAddIn.exe" $(TargetDir)$(TargetName).esriAddInX /c:D:\my.pfx /p:xxxxx /s" />
<Exec Command=""C:\Program Files\ArcGIS\Pro\bin\RegisterAddin.exe" $(TargetDir)$(TargetName).esriAddInX /s" />
</Target> 2. In Solution explorer set the BuildAction of the gdb folder contents to "Content". It is important to do this for all the files within the .gdb folder. Set the "Copy to Output Directory" option to "Copy Always". Here are a couple of screenshots of my solution explorer and properties. Now when I compile my add-in, it gets signed and the GDB folder is correctly copied into my esriAddinX file. Thanks! Uma
... View more
03-16-2018
10:35 AM
|
1
|
1
|
3818
|
|
POST
|
Hi Takahiro, Can you please give me more information as to which file name was broken when you signed the add-in? Thanks! Uma
... View more
03-15-2018
10:02 AM
|
1
|
3
|
3818
|
|
POST
|
Hi, You can modify the smallImage and largeImage attributes of a button element in an add-in's Config.daml like this below to display the attribute table image: ....
<controls>
<!-- add your controls here -->
<button id="AttributeBtn_Attribute" caption="Attribute" className="Attribute"
loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/TableOpen16.png"
largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/TableOpen32.png">
<tooltip heading="Tooltip Heading">Tooltip text<disabledText /></tooltip>
</button>
</controls>
.... Thanks Uma
... View more
02-06-2018
03:38 PM
|
0
|
3
|
2962
|
|
POST
|
Hi Taner The line of code in your example will open the project in the exact same state it was saved as previously. Are you trying to open an aprx project file, and then open a specific MapProjectItem in the project in a new pane? If so, after you open the project you can use this code snippet to open a specific map in a new pane: await QueuedTask.Run(() => {
MapProjectItem mapProjItem = Project.Current.GetItems<MapProjectItem>().FirstOrDefault(item => item.Name.Equals("EuropeMap"));
ProApp.Panes.CreateMapPaneAsync(mapProjItem.GetMap());
}); Thanks Uma
... View more
01-08-2018
12:56 PM
|
1
|
0
|
2192
|
| 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 |
2 weeks ago
|