|
POST
|
Hi Steven, As you probably guessed, we are caching the result of the first call to GetExtent(). There isn't currently a way around this limitation, but we are working to address it in a future release. --Rich
... View more
04-23-2022
01:11 PM
|
0
|
0
|
906
|
|
POST
|
Hi Logan, The Trace geoprocessing tool now has an option to return connectivity as JSON. You will have to parse the JSON yourself. The Pro SDK does not yet support this option, although you can always call the tool using the geoprocessing API. Our goal when we do support it is to return an object structure, not unformatted JSON. As for ordering, I've not heard of any options there, but I can pass it on to the utility network team. --Rich
... View more
04-19-2022
08:12 AM
|
0
|
0
|
2601
|
|
POST
|
Hi Jimmy, You can get a list of the domains in a geodatabase with the Geodatabase.GetDomains method. This returns an IReadOnlyList which you can search using a Linq query. IReadOnlyList<Domain> domains = myGeodatabase.GetDomains(); Domain myDomain = domains.First(x => x.GetName() == myDomainName); I hope this helps, --Rich
... View more
04-14-2022
08:20 AM
|
0
|
4
|
3683
|
|
POST
|
Hi Karthik, The Pro SDK does not yet support this result type. From now, you can use the geoprocessing API to call the Trace geoprocessing tool. You'll have to parse the returned JSON yourself to build a connectivity graph. I hope this helps, --Rich
... View more
02-17-2022
10:13 AM
|
1
|
1
|
1411
|
|
POST
|
Anders, I've been researching this, and cannot find any way to change the client timeout. Some things to consider: Are all the tables properly indexed? Can you break the query into multiple pieces? (If it's a spatial filter, could you break up the extent into multiple parts and query each part separately?) Can you fetch a subset of the fields in this feature class? At the REST API level, there is a mechanism to limit the number of rows that are returned at a time. I can enhance the Pro SDK to provide access to that mechanism, but it would have to be something added at a future release (post-3.0). Sorry I cannot be of more help, --Rich
... View more
02-17-2022
09:11 AM
|
0
|
1
|
2211
|
|
POST
|
Pro (not just the SDK) does have a timeout that defaults to 3 minutes. I suggest working with tech support to figure out why the queries are taking that long- sounds like something could be wrong there. --Rich
... View more
02-11-2022
07:48 AM
|
0
|
1
|
2273
|
|
POST
|
It's always possible to access Esri REST services such as the feature service outside of the Pro SDK. I'm not familiar with the benefits of that solution, although the integration with Pro would obviously be harder.
... View more
02-07-2022
08:12 AM
|
0
|
2
|
1706
|
|
POST
|
Calling OpenDataset does not download the contents of the table- just some metadata about the table definition. The only data that is downloaded are the rows specified by the QueryFilter in Table.Search. --Rich
... View more
02-04-2022
12:19 PM
|
0
|
1
|
1729
|
|
POST
|
Hi MKa, I assume these portal tables are part of a feature service, right? Start by creating a connection to the feature service, and then creating a Geodatabase from that connection. You can accomplish this by creating a ServiceConnectionProperties object, and then using the Geodatabase(ServiceConnectionProperties) constructor. Once you have a Geodatabase, you can open tables and query using OpenDataset and Search. I hope this helps, --Rich
... View more
02-04-2022
10:14 AM
|
0
|
3
|
1741
|
|
POST
|
Unfortunately there is no support for creating a Database from an OLE DB connection.
... View more
01-31-2022
11:04 AM
|
0
|
0
|
641
|
|
POST
|
Thanks for letting me know, Karen. We'll take a look at it- might be a bug. Glad you found a workaround at least. --Rich
... View more
01-26-2022
04:11 PM
|
0
|
0
|
4865
|
|
POST
|
I'm so sorry, Karen. I skipped over the geoprocessing call and didn't really pay attention to which tool you were trying to use. I also specified "in_memory" which is incorrect. It's possible that this did work, but "in_memory" feature classes cannot be displayed on a map, and if you attempt to do so, Pro copies the feature class to a file geodatabase. (More information here) Try using "memory" instead of "in_memory". If this doesn't work, I'll bring in a geoprocessing expert. --Rich
... View more
01-26-2022
01:11 PM
|
0
|
3
|
4876
|
|
POST
|
Hi Karen, Geoprocessing only knows how to work with a single memory geodatabase- the one called "memory". You can execute your copy like this: var parameters = Geoprocessing.MakeValueArray(@"C:\Users\kbmeinstein\Desktop\DeformTest\50Ma_Pro_Deftest_model_save.gdb\DefMotion_50Ma", @"in_memory\test"); IGPResult result = await Geoprocessing.ExecuteToolAsync("FeatureClassToFeatureClass_conversion", parameters, null, null, null, GPExecuteToolFlags.AddOutputsToMap); If you later need to access this new table using the Pro SDK, you can do so with the following code: MemoryConnectionProperties memoryConnectionProperties = new MemoryConnectionProperties(); Geodatabase geodatabase = SchemaBuilder.CreateGeodatabase(memoryConnectionProperties); FeatureClass testFeatureClass = geodatabase.OpenDataset<FeatureClass>("test"); (In this instance, the CreateGeodatabase call doesn't really create a new geodatabase, but rather returns a connection to the existing memory geodatabase.) I hope this helps, --Rich
... View more
01-26-2022
12:06 PM
|
0
|
1
|
4883
|
|
POST
|
@KenBuja Yes. You can now use the Pro SDK to create a geodatabase in memory, and then create tables and feature classes within that geodatabase. Details are here. You can create a layer from a memory feature class like any other. Just note that the memory feature class goes away when the Pro session ends- so if you save those layers into a APRX file, they will show as disconnected when reloading the project.
... View more
01-21-2022
10:56 AM
|
1
|
0
|
1224
|
|
POST
|
Now let's talk about this line... if (featureLayer.Name.Contains("ASSEMBLY")) When you define your utility network schema, you can set the association deletion semantics for a container or structure type. You can see these in the Network Properties dialog that you can get by right-clicking on the utility network layer. There are three values for this setting: None. When you delete the container, the association is automatically deleted. The content features are left behind (no longer part of the container) Cascade. When you delete the container, the content features are automatically deleted with it (and the containment associations between them, naturally). Restrict. You are unable to delete the container without first deleting the content. This is the scenario you are dealing with above. Now the reason this setting exists is to prevent users from accidentally deleting a container that contains a large number of features- like a large switching cabinet or even a substation. I would consider two things. 1. Instead of looking for the name "Assembly", ask the feature if it is a container and, if so, what is the association deletion semantics. You can do this as follows: bool needToDeleteAssociations = false; Element element = un.CreateElement(tempFeat); AssetType assetType = element.AssetType; if (assetType.AssociationRoleType == AssociationRoleType.Container) { if (assetType.AssociationDeletionSemantics == AssociationDeleteType.Restricted) { needToDeleteAssociations = true; } } (Structures can have association deletion semantics too) 2. The second thing to consider is... should you be doing this? The schema was defined to restrict deletion of these containers. Was it intentional? If so, your code is... well... subverting that setting. If it wasn't intentional, maybe the right solution isn't to write any code at all but to change the schema to not have this setting... I can't answer the question for you, but I would encourage you to ask it if you haven't already. --Rich
... View more
01-20-2022
04:18 PM
|
1
|
1
|
3453
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks 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 |
3 weeks ago
|