|
POST
|
Hi Jimmy, You create an `AssociationDescription` object, and pass that to the `EditOperation.Delete` overload that takes one. The association description object describes an association to delete (or create, in other workflows) For your code above: AssociationDescription associationToDelete = new AssociationDescription(a.Type, new RowHandle(a.FromElement, un), new RowHandle(a.ToElement, un); ediOp.Delete(associationToDelete); --Rich
... View more
01-20-2022
03:44 PM
|
1
|
0
|
3503
|
|
POST
|
Hi William, NUMBER(38) is large enough to represent a 64-bit integer. We changed our code to present this as a Double as a stop-gap until we can fully represent 64-bit integer types in ArcGIS. The values should not show as 0; you should log that as an issue with technical support so that we can reproduce and fix it. Thanks, --Rich
... View more
01-20-2022
11:41 AM
|
0
|
1
|
974
|
|
POST
|
Hi Jimmy, You can find associated features from a given feature by using the UtilityNetwork.GetAssociations. method It takes as input an Element, which you can create using UtilityNetwork.CreateElement. If you don't have a UtilityNetwork object, this snippet shows how to obtain one from a Table. I hope this helps, --Rich
... View more
01-20-2022
10:49 AM
|
1
|
1
|
3525
|
|
POST
|
Try using an insert cursor API reference Code snippet I hope this helps, --Rich
... View more
12-28-2021
08:45 AM
|
1
|
0
|
1004
|
|
POST
|
I think the single biggest thing you could do is use the Pro SDK to create your feature class. There is a snippet showing how to do this here. You will need to create a feature layer for this feature class after filling it. Assuming you don't need to have undo/redo work with this data, then I would forego the EditOperation as @GKmieliauskas suggests. The order would be: 1. Create the feature class in the in-memory geodatabase 2. Fill it in with InsertCursor 3. Create a feature layer and add it to the map I hope this helps, --Rich
... View more
12-13-2021
10:12 AM
|
0
|
0
|
534
|
|
POST
|
Jack, Would you mind posting some code snippets so that we can see what (if anything) you are doing wrong? --Rich
... View more
12-09-2021
02:45 PM
|
0
|
4
|
3015
|
|
POST
|
Jack, If you just want to stick with geoprocessing, here is a link for using geoprocessing with in-memory geodatabases (you don't even have to create it first). --Rich
... View more
12-08-2021
08:40 AM
|
0
|
1
|
3027
|
|
POST
|
If this custom file format is something you use frequently, you might want to consider writing a PlugIn datasource (Conceptual Doc, Guide). This would allow you to read and display the data in the map without needing to copy it into another format. If you want to stick with the current copying idea, shapefiles are good, but an in-memory database is probably better. Instructions for creating an in-memory database are here. Once the database is created, you can create a feature class, and then copy data into it. If you go the route of using an in-memory database, keep in mind that they are destroyed when closing ArcGIS Pro. So if you create a layer from an in-memory database, that layer will come in broken if you save it in a map and restart Pro. I hope this helps, --Rich
... View more
12-01-2021
09:10 AM
|
0
|
0
|
3072
|
|
POST
|
The calls to the SchemaBuilder and the OpenDataset call should also be inside QueuedTask.Run()
... View more
11-10-2021
12:16 PM
|
0
|
0
|
2667
|
|
POST
|
I'm sorry, I forgot that step. After calling schemaBuilder.Build() you can get a FeatureClass pointer using Geodatabase.OpenDataset<FeatureClass>("SourcePackageFootprint").
... View more
11-10-2021
11:33 AM
|
0
|
1
|
2669
|
|
POST
|
I'm not sure why the URI isn't accepted, but have you tried just creating the layer from the feature class itself? --Rich
... View more
11-10-2021
08:19 AM
|
0
|
1
|
2682
|
|
POST
|
@Zoggo Here is a snippet showing how to create a memory geodatabase. Once you have created the geodatabase, here is a snippet showing how to create a feature class. I hope this helps, --Rich
... View more
09-29-2021
11:58 AM
|
0
|
0
|
2772
|
|
POST
|
It still feels like a threading problem to me. First, each of these processes is finishing before it executes a second time, right? Second, have you tried calling Dispose on each of the geodatabase objects (including the version manager, any version objects you create, feature classes, cursors, rows, etc.), or use `using` statements? If you don't clean them up, it's possible that one thread is creating them and another thread is reusing them (the objects might be cached internally). Other than that, I'm out of ideas.
... View more
09-22-2021
04:17 PM
|
0
|
1
|
2322
|
|
POST
|
One more thing to try if you're still willing. What happens if you call ArcGISSignOn.IsSignedOn prior to the call to VersionManager.GetVersionNames()? I'm guessing it returns True in those cases where GetVersionNames succeeds, and returns False in those cases where it fails, but it would be good to know for sure.
... View more
09-22-2021
02:33 PM
|
0
|
1
|
2328
|
|
POST
|
Sorry, geoprocessing can only access the memory geodatabase called "memory." --Rich
... View more
09-17-2021
09:58 AM
|
0
|
1
|
1606
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 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 |
4 weeks ago
|