|
POST
|
ArcGIS Pro 2.5 requires the .Net Framework 4.8. Once you change the target framework of your project to 4.8, the errors are resolved. Details are documented here: https://github.com/esri/arcgis-pro-sdk#requirements
... View more
02-10-2020
07:39 AM
|
2
|
0
|
1459
|
|
POST
|
Great! I have gone down the same road a few times myself 😉
... View more
02-07-2020
09:52 AM
|
0
|
0
|
2797
|
|
POST
|
I used a different image file: Test.png which has 32x32 pixels. I edited the file with mspaint and saved as .png I then added the file in the project's Image folder and changed the BuildAction property for the newly added image file to AddinContent. Then i changed the Image tag as shown below (i honored the case of both path and file name): <AddInInfo id="{e8a5c762-09c9-4768-8a4e-a5046ef5b8e5}" version="1.0" desktopVersion="2.5.22081">
<Name>ProAppModule11</Name>
<Description>ProAppModule11 description</Description>
<Image>Images\Test.png</Image> and it worked fine:
... View more
02-07-2020
09:37 AM
|
0
|
1
|
2797
|
|
POST
|
Hi Daniel, Can you elaborate why you are using the ObjectClassID versus just the table's name? I think one issue with using ObjectClassID (as well as Object Id) as identifiers is that they will change when you copy your tables or featureclasses to another geodatabase which in turn would render your identifiers obsolete. Rather than using these Ids i have always designed my systems which needed to track relationships (on an application level) by using the table name and a GUID type column.
... View more
02-07-2020
08:28 AM
|
0
|
2
|
2361
|
|
POST
|
My bad ... i edited my replies and fixed the link. I just changed my image (using Visual Studio's editor) and i was able to display the change: I also changed my button image:
... View more
02-07-2020
08:02 AM
|
0
|
1
|
2797
|
|
POST
|
Did you set the BuildAction (properties) for your new image to 'AddinContent' as shown here: Images as AddinContent
... View more
02-07-2020
07:39 AM
|
0
|
3
|
2797
|
|
POST
|
Hi Jeff, By default a newly added 'Addin Button' pulls its button images from image resources built into ArcGIS Pro using the 'pack' protocol as in: <button ...
smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue16.png"
largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue32.png">
</button> There are place holder images in the 'Images' and 'DarkImages' folder of your add-in project, however, before you can use those (or any modifications) you have to change the smallImage/largeImage attributes: <button ...
smallImage="Images/GenericButtonBlue16.png"
largeImage="Images/GenericButtonBlue32.png">
</button> The image in the 'DarkImages' folder is used when ArcGIS Pro is using Dark Theme. There is a ProGuide to explain this: Images as AddinContent
... View more
02-07-2020
07:05 AM
|
1
|
5
|
2797
|
|
POST
|
When you create the ProgressDialog you have to specify the max steps in the constructor. Like this: protected override async void OnClick()
{
using (var progress = new ProgressDialog("Showing Progress", "Canceled", 100, false))
{
var status = new CancelableProgressorSource(progress);
status.Max = 100;
progress.Show();
await QueuedTask.Run(async () =>
{
uint step = 0;
for (var idx = 0; idx < 10; idx++)
{
await Task.Delay(1000);
status.Progressor.Value += 10;
status.Progressor.Status = (status.Progressor.Value * 100 / status.Progressor.Max) + @" % Completed";
status.Progressor.Message = "Message " + status.Progressor.Value;
}
}, status.Progressor);
progress.Hide();
}
} There is also a sample available showing an implementation: https://github.com/esri/arcgis-pro-sdk-community-samples/tree/master/Framework/ProgressDialog
... View more
01-23-2020
09:09 AM
|
2
|
0
|
6805
|
|
POST
|
Hi Barbara, ProWindow is the preferred window implementation because Pro styling and required behavior (like coming to the foreground when Pro is active) are implemented in ProWindow. You can see the difference between ProWindow and WPF window when using the dark theme in this screenshot:
... View more
01-21-2020
08:56 AM
|
2
|
0
|
3007
|
|
POST
|
Hi Barbara, Gintautas' assessment of your issue is correct. If you open the configuration project file in a text editor (or edit with Visual Studio) you can insert the following line under the first PropertyGroup tag: <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> After you reopen the project in Visual Studio you can now add WPF windows. In case you are unsure about the edits you can open an Add-in Module project file in a text editor and take a look at the ProjectTypeGuids line there. Add-in Modules allow you to add WPF windows. We will update the project templates for the 2.5 release. Thanks for pointing this out. - Wolf
... View more
01-17-2020
11:25 AM
|
2
|
0
|
3007
|
|
POST
|
FYI: We are also working on adding c# usage and examples to the ArcGIS Pro geoprocessing tools documentation (in addition to the python documentation we have right now) for one of the upcoming releases (post 2.5).
... View more
01-14-2020
10:01 AM
|
0
|
0
|
5451
|
|
POST
|
The ArcGIS.Core.Data API is a DML-only (Data Manipulation Language) API. This means that all schema creation and modification operations such as creating tables and feature classes, creating and modifying fields, enabling attachments, and so on, need to be performed using the Geoprocessing API. The specific geo processing tool you need to create a table is: management.CreateTable. If you don't want to use a template table to create the required fields you have to add the fields after the create table geoprocessing tool is finished. Here is an example showing how to add or delete fields to an existing table: https://github.com/esri/arcgis-pro-sdk-community-samples/tree/master/Geodatabase/AddDeleteFieldToFromFeatureClass
... View more
01-13-2020
08:18 AM
|
0
|
5
|
5451
|
|
POST
|
When we designed our item templates we tried to deliver an implementation that can be compiled, debugged, and seen in action without any additional coding. As a result we automatically generate buttons where needed, like for example for ProWindow or Dockpane. The stubbed out button code provides the code snippet needed to activate the ProWindow or Dockpane. If you need a ProWindow item template without the buttons to improve your productivity, you can create your own Visual Studio item template as shown here: https://docs.microsoft.com/en-us/visualstudio/ide/how-to-create-item-templates?view=vs-2019 In regards to whether using ProWindows for all dialogs is the correct pattern for styling, i would suggest to find a workflow in ArcGIS Pro that matches closest your desired custom workflow and use the same styling pattern than Pro is using. For example: ArcGIS Pro Property Dialogs for the most part are ProWindows, ArcGIS Pro workflow configuration settings (i.e. GeoProcessing) are usually in Dockpanes, ArcGIS Pro Metadata is usually a Pane. I hope this helps,
... View more
01-10-2020
08:09 AM
|
1
|
0
|
2090
|
|
POST
|
i setup a feature service (data is stored in a registered SQL Server enterprise GDB) and i am not able to duplicate the problem you are seeing. I tried a file Geodatabase, SQL server enterprise Geodatabase, and a feature service. I can't get it to fail. all using version 2.4.3.
... View more
01-07-2020
08:15 AM
|
0
|
0
|
1706
|
|
POST
|
Hi M, I tried your code using ArcGIS Pro 2.4.3 and the FeatureTest project from the community samples data set and was not able to duplicate the problem you ran into. This is the code that i used to test: protected override async void OnClick()
{
BasicFeatureLayer searchLayer = GetBasicFeaturLayer("TestPoint");
//This subfields fails in 2.4.3 I cant use just objectid in the subfield after the upgrade
string inSubFields = "OBJECTID";
//This subFields works, i had to add an additional field in order for this to work in //2.4.3
//string inSubFields = "Shape, OBJECTID";
var queryFilter = new QueryFilter
{
WhereClause = string.Format("{0} IN ('{1}')", "Description", "Update 2 on: 2015-06-26T10:46:40"),
SubFields = inSubFields
};
var oidList = await QueuedTask.Run<List<long>>(() =>
{
// apply the spatial filter to the feature layer in question
RowCursor rowCursor = null;
rowCursor = searchLayer.Search(queryFilter);
List<long> featuresByIDList = new List<long>();
//*******************************
//This loop fails after the upgrade from 2.2, when i just use
// objectid in the subfield the rowcursor seems to return every feature
//*******************************
//Add all the resulting objectIDs to a list to later load or use
while (rowCursor != null && rowCursor.MoveNext())
{
if (rowCursor.Current != null)
{
featuresByIDList.Add(rowCursor.Current.GetObjectID());
}
}
return featuresByIDList;
});
MessageBox.Show($@"Feature count: {oidList.Count}");
}
private BasicFeatureLayer GetBasicFeaturLayer(string layerName)
{
return MapView.Active?.Map?.GetLayersAsFlattenedList().OfType<BasicFeatureLayer>().Where(fl => fl.Name.Contains(layerName)).FirstOrDefault();
} I get exactly one record regardless of the number of subfields. I should mention this the feature layer I used is from a file geodatabase. Maybe you used a Database or Service as the datasource?
... View more
01-06-2020
09:43 AM
|
0
|
2
|
1706
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2025 10:48 AM | |
| 1 | 05-24-2021 09:04 AM | |
| 1 | 12-03-2020 08:44 AM | |
| 1 | 10-07-2025 07:27 AM | |
| 2 | 12-29-2025 10:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-21-2026
01:59 PM
|