|
POST
|
No exception thrown. It sits and spins for 5-10 minutes, all others tools are grayed out, the refresh spins, and nothing gets selected. All features are in a sde database.
... View more
02-19-2019
11:18 AM
|
0
|
5
|
1790
|
|
POST
|
The process to select by using Sketch tools is not working in 2.3. I double checked to make sure it was not just my code by downloading a fresh set of the samples from here GitHub - Esri/arcgis-pro-sdk-community-samples: ArcGIS Pro SDK for Microsoft .NET Framework Community Samples and ran of the Feature Selection and the Map Tool Select without changing a thing and they both fail. Is there a known fix to this?
... View more
02-19-2019
10:22 AM
|
0
|
7
|
2272
|
|
POST
|
This worked, calling just the name of the feature class and not the whole path. I was wanting the default database. Thank you for sticking with me Rich!
... View more
01-22-2019
10:50 AM
|
1
|
0
|
4253
|
|
POST
|
This does not seem to successfully get a list of the feature class either, it returns the definitions but not the actual name. I cannot find any examples of doing this in the snippets or help either. Probably going to switch to python to do this task, but I would like to avoid that because python takes a lot longer to run.
... View more
01-22-2019
09:07 AM
|
0
|
3
|
4253
|
|
POST
|
Thanks Rich! I did mean feature class, I corrected the question. When I tried your suggestion I get the error "Non-invocable member ;FeatureClassDefinition' cannot be used like a method. Below is what I ended up trying, it runs without error, but it still does not see the feature class when it does exist. string projGDBPath = Project.Current.DefaultGeodatabasePath;
string FC = TXB.Text; // From a text box in the xaml
string fcFINAL = System.IO.Path.Combine(projGDBPath, FC);
await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() => {
using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(projGDBPath))))
{
try
{
FeatureClassDefinition featureClassDefinition = geodatabase.GetDefinition<FeatureClassDefinition>(fcFINAL);
featureClassDefinition.Dispose();
ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("It exists");
}
catch
{
ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("It Does Not Exist");
}
}
});
... View more
01-22-2019
07:44 AM
|
0
|
5
|
4253
|
|
POST
|
Is there a way to see if a feature class exists in a file geodatabase OR loop through and get a list of all the feature class in a file geodatabase using the Pro SDK?
... View more
01-18-2019
12:43 PM
|
0
|
7
|
4683
|
|
POST
|
There really is no "migration" of add-ins from Desktop to Pro. It really is a completely different SDK, so no comparing apples to apples. This was the first question I asked when I took the Pro SDK class, hoping it would be a simple change of a couple things in my add-ins. Python is very similar in both, but the Pro SDK and ArcObjects are very different. Just dive in and start from scratch, it is not too difficult to pick up the Pro SDK. I had about a dozen add-ins to redo from Desktop to Pro and was able to find a way to replicate all them. Good Luck!
... View more
01-17-2019
07:12 AM
|
0
|
0
|
5479
|
|
POST
|
Thanks Dan. I think I will try to create a add-in to run the script tool, then add the layer using the add-in (if possible) after the scripts runs as a workaround. Edit: Using an add-in ended up being a satisfactory work around for me.
... View more
01-15-2019
01:44 PM
|
0
|
0
|
4270
|
|
POST
|
So are you saying that this is not possible in Pro with python? I tried to test it keeping it simple of using the CURRENT, creating a feature class in the default database and then try adding it. It always fails with the message being that the new feature class does not exists. If I do the exact same lines one by one in Pro python window it will work fine. But doing this in a script or a python toolbox script tool it fails. So this is just not possible in Pro? This is a straight forward work flow, and it is not an option?
... View more
01-15-2019
01:12 PM
|
0
|
2
|
4270
|
|
POST
|
Is there a way to refresh a database in a python script in Pro? I have a script where I create a new feature class in the default database and want to add that data to the map at the end of the script. It seems it does not recognize this new feature class until after the script is complete. I am wanting to use addDataFromPath.
... View more
01-15-2019
11:11 AM
|
0
|
4
|
4868
|
|
POST
|
I too would like a timeline for this. I have twenty users waiting to switch to Pro since 2.0, but our main editors need these tools for precision editing, and some other basic Desktop tools, before we can switch.
... View more
07-24-2018
06:09 AM
|
0
|
0
|
1952
|
|
POST
|
Is there a way to add or subtract Layers to a Legend using the Pro SDK? I see you can create a legend for a specific map frame, but I cannot figure out how to customize the legend once it is created.
... View more
06-26-2018
08:12 AM
|
0
|
1
|
1272
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 03-23-2026 08:11 AM | |
| 1 | 03-23-2026 07:55 AM | |
| 7 | 03-18-2026 12:15 PM | |
| 1 | 03-11-2026 07:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|