|
POST
|
Helen, The code you have listed, using the SqlConnection and SqlCommand classes, comes from a Microsoft library, not from ArcObjects. You can continue to use it just fine. --Rich
... View more
07-23-2020
09:13 AM
|
0
|
1
|
1958
|
|
POST
|
The Pro SDK doesn't allow you to edit non-geodatabase tables. You could either add that SQL table to a geodatabase, or edit it using non-ArcGIS routines. The easiest solution would be to register the table with a geodatabase? Is there a reason you cannot do this? --Rich p.s. Technically, you can also edit a non-geodatabasea table if it is published as part of a feature service, but that seems like using a sledgehammer to hang a picture frame.
... View more
07-22-2020
04:32 PM
|
0
|
3
|
1958
|
|
POST
|
Oh. That is a very interesting development. While it certainly should work in CoreHost, my tests in this case also run in an add-in. Let me try it in CoreHost and get back to you. --Rich
... View more
07-22-2020
01:00 PM
|
1
|
0
|
3491
|
|
POST
|
Hi Helen, Just to clarify, when you say "stand alone sql table base" are you referring to a table in a database and not a geodatabase? That is, a database that has not been registered as a geodatabase? --Rich
... View more
07-21-2020
04:09 PM
|
0
|
5
|
1958
|
|
POST
|
Hi Ryan, I don't see any problems with your code. I set up some similar code and stepped through it with a debugger and Fiddler. On my machine, calling versionManager.GetVersions() is calling startReading on every version on the service. Do you have fiddler installed, and, if so, could you tell me what output is created by that call on your machine? Some other general questions: 1. What version of Pro are you running? 2. Are all of the version names/tables names, etc. correct? (i.e., you don't have any unexpected null pointers in your code) 3. Can you do a version differences with this version in the Pro user interface? Thanks, --Rich
... View more
07-21-2020
03:56 PM
|
2
|
7
|
3491
|
|
POST
|
Well, depending on your workflow, you can always call the Append geoprocessing tool from the Pro SDK. --Rich
... View more
07-20-2020
09:25 AM
|
1
|
0
|
3288
|
|
POST
|
Hi Kieren, In the upcoming Pro 2.6 release, we're adding an InsertCursor class, that you can obtain by calling Table.CreateInsertCursor(). This might help you. For many feature classes, this will be several times faster. There are exceptions though, and relationships with messaging are one of those exceptions. This occurs if you're using anno, attachments, or composite relationships. In these cases, the performance won't be worse, but it won't be better either. I would definitely try this in 2.6 when it becomes available. Since you mentioned branch versioning and utility networks, are you trying to insert these records into default or a version? --Rich
... View more
07-17-2020
08:48 AM
|
0
|
12
|
3288
|
|
POST
|
That's correct. What I meant was that you could create a method called "SetFoo(xxx)" (or whatever) and then another add-in (button, pane, or external process) could pass data in that way. Actually, the "SetFoo(xxx)" method would probably need to go on another object in the same dll, and these objects would have to talk to one another. For all of this- there's no ArcGIS mechanism to pass data down to your plugin, but there are ways you could do it. --Rich
... View more
07-15-2020
04:50 PM
|
1
|
0
|
767
|
|
POST
|
Roy, As far as ArcGIS Pro is concerned, this is a read-only datasource. ArcGIS itself won't write anything into the datasource. Now if you want to add interfaces/methods that allow you to write data into your "datastore", and call those methods from your own code, you are of course free to do so. ArcGIS Pro treats it as a "black box". What you want to do inside that black box is completely up to you. --Rich
... View more
07-15-2020
02:02 PM
|
1
|
2
|
767
|
|
POST
|
Hi Benjamin, It seems like SubFields should be populated for the symbology cases. Is that an oversight (or are we missing something/misunderstanding)? Are you saying that when you redraw the map, your implementation of PluginTableTemplate.Search(QueryFilter) gets called, and the QueryFilter.Subfields property is set to null? --Rich
... View more
07-13-2020
04:47 PM
|
0
|
6
|
2677
|
|
POST
|
It was worth trying. Hopefully someone from Geoprocessing can provide a better answer. Sorry about Table.GetPath(). I had forgotten when we added it- you should see it later this summer in Pro 2.6. --Rich
... View more
07-09-2020
10:02 AM
|
0
|
1
|
2660
|
|
POST
|
Hi Marcus, I'm not a geoprocessing expert, but I would try this: var args = Geoprocessing.MakeValueArray(
geodatabase.GetPath(),
GetTempoLayerNameFromFClassName(tableName),
templateTable.GetPath(),
null
); --Rich
... View more
07-09-2020
08:18 AM
|
0
|
3
|
2660
|
|
POST
|
DDL (data definition language) operations are not natively supported in the Pro SDK. You need to use the geoprocessing routines to run the "Delete" tool to delete the dataset. I hope this helps, --Rich
... View more
07-06-2020
07:33 PM
|
0
|
0
|
2460
|
|
POST
|
It looks like calling Guid.NewGuid() generates a global ID without braces around it. Try this instead: rowBuffer["GUIDField"] = "{" + Guid.NewGuid().ToString() + "}"; --Rich
... View more
07-06-2020
05:20 PM
|
0
|
0
|
1950
|
| 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
|