1
vote
3answers
1k views

Zoom to selected features with ArcObjects

I am trying to figure out what is the best way to set the active view extent to be able to view all the selected features on the Arc Map. 1.The Map has only one layer. 2.The features are filtered ...
2
votes
2answers
678 views

ArcObjects snipped to Select all Features currently visible on the ArcMap screen (ActiveView)

I guess I have to get the extent of the ActiveView and then use it to perform a spatial search. Is that the proper way to do it? Please share the code snipped if you have any. Thanks.
2
votes
1answer
2k views

How to get all selected features from a specific feature class in C#

I am looking for a way to get all selected features from a map which belongs to a specific feature class (shape file, geo database,…). To be more specific and to give you a real case for my ...
2
votes
1answer
202 views

ArcObjects bug in OID field duplication while duplicating feature class?

I have a shapefile with a column of type esriFieldTypeOID with the name FID and numbers from 0 to 5 (the first odd think is that ArcMap does not show a * next to the column name in the table view even ...
4
votes
2answers
453 views

How to select features that intersect but don't touch (using ArcObjects)?

So how do I do that? ArcMap's Select By Location selects also all features that touch, but I only need the ones that actually intersect the area. I currently use ...
4
votes
1answer
266 views

Retrieve data from FeatureClass

I have : FeatureClass (Structure) column (Type) column (OID) I am trying to get the (Type) for specific OID. I tried to use this code but it dose not work. IFeatureWorkspace featureWorkspace = ...
6
votes
2answers
127 views

What event is fired when a feature is edited?

When the user draws a new feature (line, point, etc.) in ArcMap, there are null attributes. If the user enters values in these null fields what is the event that is fired? I want to control the ...
2
votes
1answer
274 views

Query against FeatureClass for a layer

This is some code that I am using to try to get a working IFeatureLayer from a subset of data from a database table. The fourth line containing "fcWkspc.OpenFeatureQuery" throws and error complaining ...
2
votes
0answers
96 views

Is it possible to lock a single feature from editing in ArcObjects?

We're developing an ArcMap addin. Now we need a way to lock a feature from editing/deleting. Is this possible with ArcObjects or do we have to create our own implementation of locking? Example: User ...
2
votes
3answers
1k views

IFeatureBuffer - performance considerations (ArcObjects)

I'm trying to optimize my code to make it faster. I have a loop that reads some string input and creates points with the help of IFeatureBuffer and IFeatureCursor. If I create the buffer inside tho ...
2
votes
1answer
656 views

Convert Features to Graphics

I want to convert selected features to graphics and keep the featuere symbology. I was thinking I could just call the UID command below, however it seems to not be working? Dim pUID As New UID ...
5
votes
1answer
2k views

Geometry from multiple selected features into one geometry

Lets see if I can explain what I'm trying to do. First of all I have developed an AddIn for ArcMap that can take one selected feature (Polygon) on a layer, grab the geometry of that feature, and save ...
1
vote
0answers
672 views

Change the symbol for a single feature in ArcObjects?

Is it possible to change the symbol for a single feature in ArcObjects? If so how? I know it's possible to setup the map symbology for different field values of a feature class, but I'd like to ...
3
votes
1answer
2k views

How to Insert Feature into Feature Class (in Memory) ESRI

I'm looking for suggestions on how to insert a new feature instance into a feature class that is in memory -- assuming that I don't have access to the feature workspace. For example, the feature class ...
5
votes
1answer
821 views

Drag a Feature in ESRI, ArcObjects Engine (AxMapControl)

I'm trying to implement moving a point feature in a custom C# ArcGIS Engine application on an AxMapControl. I've already created a custom tool to do some other things. And I can track when the user is ...
4
votes
2answers
791 views

Replicating ArcMap's Point Sketch Geometry Editing (Feature Templates) in ArcObjects

I'm looking for a way to place, select, move, delete features inside a custom C# ArcObjects application (using AxMapControl). I found the exact behavior in ArcMap, but I want to save the user some ...
6
votes
1answer
387 views

Display Feedback “Stutters” When Moving Features

I have a custom tool for moving features that implements IDisplayFeedback and geometry-specific CoClasses to show the user where they are moving the feature. IMovePolygonFeedback polygonFeedback; ...
3
votes
2answers
5k views

ArcObjects (vba) update selected feature/record

I would like to edit a selected feature/record via ArcMap vba, but I'm not having much luck with this code sample (see code below). I'm not getting an error, but the record selected is not updating. ...
2
votes
0answers
214 views

Process to gather raster cells under features

I need to gather individual raster cells underneath a feature in a featureclass as quickly as possible. It seems that most ArcObjects functions have problem with island polygons, multi-part polygons, ...
1
vote
2answers
1k views

“Item not found in this collection” when trying to set the Shape on IFeatureBuffer

I'm working on code to open a 3rd party data file and convert it into a collection of features in a custom layer based on FeatureLayer. I have had no issue importing the data itself (nodal data for ...