|
POST
|
Hi Taner, ArcGIS Pro does not currently support plug-in datasources. This is an active R & D project that we've been working on. It won't be ready for the summer 2.2 release, but we hope to make it available in a subsequent release. --Rich
... View more
04-23-2018
08:41 AM
|
0
|
0
|
2397
|
|
POST
|
Hi Bart, We have additional questions on what you are trying to do. 1. Does your feature service refer to an enterprise geodatabase that uses versioning? If so, which kind- traditional or branch? 2. How are you making these edits? Are you intercepting and adding to the payload to ApplyEdits()? Or directly editing with ArcObjects? Are you making these edits before, during, or after the edit operation from the client? 3. What version of ArcGIS Enterprise are you using? If you'd rather not answer these questions in this public forum, please feel free to e-mail me directly at [email protected]. Thanks!
... View more
04-18-2018
09:13 AM
|
0
|
1
|
2367
|
|
POST
|
The following code should allow you to reset the URL of a feature service layer. The `newConnectionString` variable is your new url: private static void FixDataConnectionLayer(Layer dataConnectionLayer, string newConnectionString)
{
CIMStandardDataConnection dataConnection = dataConnectionLayer.GetDataConnection() as CIMStandardDataConnection;
dataConnection.WorkspaceConnectionString = newConnectionString;
dataConnectionLayer.SetDataConnection(dataConnection);
}
... View more
04-16-2018
09:33 AM
|
0
|
1
|
2232
|
|
POST
|
Hi Bart, We're taking a look at this now. Could you please provide more information about why you want to disable the feature cache? What workflows or functionality are you trying to enable? We have no objection in principle to providing access for this, but if you are trying to work around a problem we want to be sure to fix the underlying issue instead. Thanks, --Rich
... View more
04-10-2018
12:59 PM
|
0
|
3
|
2367
|
|
POST
|
Mike, I've looked through your code and haven't found anything obviously wrong. My understanding from our conversation above is that if this line is present the code works, and if it is commented out the call to FeatureLayer.Select() throws an exception: srch_lyr3.SetDefinitionQuery(""); Is this true? If so, that would seem to be a bug, but I cannot reproduce it to be sure. It's not a generic problem with the API, but could be some combination of your database and map. At this point, your best approach is to submit this to technical support. They'll probably want a data sample and a smaller code sample that demonstrates the problem. I'll contact our liaison with technical support to let them know they can work with me on this issue. Sorry I cannot help more. --Rich
... View more
04-06-2018
03:49 PM
|
0
|
1
|
3214
|
|
POST
|
Could you send me a short code snippet showing me how you are building the WhereClause and other properties of the QueryFilter that you are passing into FeatureLayer.Select()? Thanks.
... View more
04-05-2018
01:21 PM
|
0
|
3
|
3215
|
|
POST
|
Hi Mike, I set up a similar situation and tried to reproduce your issue. I have a map in Pro which contains a feature layer that points to a feature class that is a complex edge in a geometric network. The feature layer has a query definition set up on it (Phase Designation is Equal to 4). I then wrote an add-in that grabbed that feature layer and executed a Select() and a Search() on that layer. Both worked fine. bool DoTest(Layer myLayer) { FeatureLayer featureLayer = myLayer as FeatureLayer; string definitionQuery = featureLayer.DefinitionQuery; // to confirm that it is set when stepping through debugger // Create a query definition QueryFilter queryFilter = new QueryFilter { WhereClause = "FEEDERID = 'GR-202'" }; int searchCount = 0; using (RowCursor cursor = featureLayer.Search(queryFilter)) { while (cursor.MoveNext()) { searchCount++; } } using (Selection selection = featureLayer.Select(queryFilter, SelectionCombinationMethod.New)) { int selectcount = selection.GetCount(); } return true; } Could you send me some information about what you are trying to do? If you are using a QueryFilter, is it possible that you are using the same field that appears in the definition query? Could the layer definition be hiding the table field that you are trying to use? Thanks, --Rich
... View more
04-05-2018
11:48 AM
|
0
|
5
|
3215
|
|
POST
|
There isn't a way to do this with the Pro SDK. Depending on your workflow, you may wish to consider a CoreHost app if the editing causes the UI to lock for unacceptably long periods.
... View more
03-28-2018
03:07 PM
|
1
|
1
|
1950
|
|
POST
|
Abhijeet, We plan on updating the docs within the next few weeks to include the utility network tools. In the meantime, you can read the IDs from the NetworkAnalysisFacility.daml file that is located in C:\Program Files\ArcGIS\Pro\bin\Extensions\NetworkAnalysis. --Rich
... View more
03-28-2018
10:08 AM
|
2
|
0
|
1566
|
|
POST
|
Given the FeatureClass, you can get a FeatureClassDefinition object by calling FeatureClass.GetDefinition(). From the FeatureClassDefinition you can call FindField() to find the field index, given the name. With that and a fields collection from FeatureClassDefinition.GetFields(), you can get a Field object. Finally, the Field object has a FieldType property.
... View more
03-26-2018
08:01 AM
|
0
|
1
|
5185
|
|
POST
|
Daniel, In Pro 2.2, we'll be adding a method to the MapView class called Redraw(). This method will take a boolean parameter named clearCache. If set to true, this will reset any current features caches on layers in the view. This should solve your problem. As a work-around at 2.1, you can call the Validate Network Topology geoprocessing tool via the Geoprocessing API, as shown here. This will correctly redraw the map. --Rich
... View more
02-07-2018
11:03 AM
|
1
|
5
|
6694
|
|
POST
|
Although utilities will often not use Esri-provided basemaps, they are free to create their own from their own proprietary sources of data.
... View more
07-24-2015
03:30 PM
|
2
|
0
|
6142
|
|
POST
|
Eric, Giving credit where credit is due, Sean Jones provided the answer to me when I contacted you yesterday. --Rich
... View more
11-11-2014
04:02 PM
|
0
|
0
|
2319
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-13-2024 11:22 AM | |
| 2 | 01-29-2026 09:34 AM | |
| 2 | 01-28-2026 08:20 AM | |
| 1 | 12-10-2025 09:15 AM | |
| 2 | 11-30-2025 12:23 PM |
| Online Status |
Online
|
| Date Last Visited |
a minute ago
|