|
POST
|
It's hard to visualize without code, but I assume you are writing out rows to a geodatabase in some kind of loop, right? If so, just open the geodatabase outside of the loop.
... View more
01-29-2019
07:25 AM
|
0
|
2
|
660
|
|
POST
|
That's correct, Brad. You'll need to restructure your code so that the QueryTable is called on the MCT (main CIM thread) using QueuedTask, and you create the standalone table on the UI thread.
... View more
01-28-2019
07:51 AM
|
0
|
3
|
2106
|
|
POST
|
Brad- I'm not an expert on using the ArcGIS Pro Content classes, but I think this code should do it: // Create a standalone table from the queryTable Table
IStandaloneTableFactory tableFactory = StandaloneTableFactory.Instance;
StandaloneTable standaloneTable = tableFactory.CreateStandaloneTable(queryTable, MapView.Active.Map);
// Open the standalone table into a window
FrameworkApplication.Panes.OpenTablePane(standaloneTable, TableViewMode.eAllRecords); --Rich
... View more
01-25-2019
01:22 PM
|
0
|
5
|
2106
|
|
POST
|
Brad, Do you know where this code is failing? Have you stepped through with a debugger to see the value of count? You state: "I'm having trouble getting a QueryTable to display." At the risk to taking your question too literally, you haven't included any code to display a QueryTable, just to create one. Is that the issue? (If so, do you want this to display as a table view or a layer on your map) --Rich
... View more
01-25-2019
08:29 AM
|
0
|
7
|
2106
|
|
POST
|
Are you sure you're looking at the right file geodatabase? By default, the project workspace (Project.Current.DefaultGeodatabasePath), which is the file geodatabase that is automatically created when you create a project, *is* empty. By the way, going back to your original code snippet, you should call GetDefinition() with FC, not fcFinal.
... View more
01-22-2019
10:36 AM
|
2
|
1
|
4017
|
|
POST
|
I'm not sure I understand. Once you get the FeatureClassDefinition object, what is returned when you call FeatureClassDefinition.GetName()?
... View more
01-22-2019
09:47 AM
|
0
|
2
|
4017
|
|
POST
|
Ah, looks like I forgot the closing > in my code snippet. I would suggest you get all of the feature class definitions inside the file geodatabase and make sure the list matches your expectations. To do this call FeatureClass.GetDefinitions<FeatureClassDefinition>() and iterate through the returned list.
... View more
01-22-2019
07:50 AM
|
0
|
4
|
4017
|
|
POST
|
There is actually an indexer built-in to the Feature (and Row) class. If you have a Feature variable named feature, and want to read the value of the XYZfield field you can just do the following: feature["XYZField"] More info is in this section of the geodatabase conceptual doc.
... View more
01-18-2019
02:47 PM
|
0
|
4
|
4936
|
|
POST
|
Matthew, I assume you are asking about feature classes inside a file geodatabase (a feature layer is a map layer that obtains its data from a feature class). The best way to check for feature class existence is the following: public bool FeatureClassExists(Geodatabase geodatabase, string featureClassName)
{
try
{
FeatureClassDefinition featureClassDefinition = geodatabase.GetDefinition<FeatureClassDefinition(featureClassName);
featureClassDefinition.Dispose();
return true;
}
catch
{
// GetDefinition throws an exception if the definition doesn't exist
return false;
}
} To get a list of all of the feature classes in a geodatabase, use Geodatabase.GetDefinitions<FeatureClass>() and iterate through the returned list. I hope this helps, --Rich
... View more
01-18-2019
01:52 PM
|
3
|
6
|
4017
|
|
POST
|
I was confused by this at first too. The statement return matchField exits the delegate passed to QueuedTask.Run(). You still have to return a value from the GetFieldList() function. You *could* say return await ArcGIS.Desktop.Framework.ThreadingTasks.QueuedTask.Run(... However my colleague Charles Macleod recommended the following: public static async Task<string> GetFieldList(… return await ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() => And then await GetFieldList() in the calling function.
... View more
01-16-2019
10:39 AM
|
1
|
1
|
3986
|
|
POST
|
You can actually call Geodatabase.GetDefinition<FeatureClassDefinition>() to go directly from the file geodatabase to the definition without incurring the overhead of opening the table. Other than that, this code is the correct way to get the field list. --Rich
... View more
01-14-2019
08:23 AM
|
0
|
3
|
3986
|
|
BLOG
|
A reminder to theElectric and Gas and Water Utilities communities that the new utility network can be accessed through the ArcGIS Pro SDK.
... View more
01-08-2019
11:05 AM
|
0
|
0
|
151
|
|
POST
|
None. Our intent is that network topology operations should take place server-side using our tracing framework. If you have scenarios or use cases that tracing doesn't currently fulfill, we would love to hear details. Exporting topology information for a subnetwork (circuit) for the purposes of exporting to a third-party OMS, DMS, or analysis package will be supported at ArcGIS Enterprise 10.7. Hope this helps, --Rich
... View more
01-02-2019
08:37 AM
|
1
|
4
|
2638
|
|
POST
|
You definitely cannot specify a global ID when creating a new feature. One possible idea would be to copy the source table using Append (which preserves IDs) and then make your edits to that new table. --Rich
... View more
12-31-2018
09:03 AM
|
0
|
1
|
1130
|
|
POST
|
Hi Ed, There is a global Preserve Global ID values that applies to geoprocessing and Python, but nothing like that in the C# SDK. Which methods in the SDK do you wish would preserve global ids but do not currently? --Rich
... View more
12-31-2018
08:43 AM
|
2
|
3
|
1130
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-10-2025 09:15 AM | |
| 2 | 11-30-2025 12:23 PM | |
| 1 | 07-17-2025 08:47 AM | |
| 1 | 08-12-2022 01:35 PM | |
| 1 | 06-28-2018 04:25 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-12-2025
12:03 PM
|