Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arcobjects]

ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

4
votes
1answer
78 views

Reshape ILineElement with ISelectionTracker in graphics container

End goal: Allow user to move points on a ILineElement using the selection handles from ISelectionTracker. Issue: Using my code below I am able to get the handles to appear on the line element, but it ...
0
votes
1answer
34 views

quickwatch on COM-objects does not show any information

While debugging my ArcObjects-code using VS2015 and .NET 4.5 I often try to inspect the data from my geodatabase. So for example see this code: public static bool PointsAreCollinear(IPoint from, ...
1
vote
0answers
39 views

ArcGIS C# RubberPoint.TrackExisting not working

I have a simple marker symbol I have drawn on the map. I am trying to use a rubber band to drag-move it to a new location. I think I am close because when I use .TrackNew instead of .TrackExisting the ...
3
votes
0answers
53 views

Symbolize Rubberband Tracker as it tracks

I am trying to symbolize a rubberband tracker as it is drawing. The default symbol is a simple black line. When setting the symbol of the line in the ScreenDisplay method and and calling ...
0
votes
0answers
27 views

Getting Annotation Text Geometry Only (without leader line) as Polygon Using ArcObjects?

I have an annotation feature that also has a line callout (see picture). I need to use ArcObjects to get the polygon that surrounds ONLY the text (not the line callout). The following link is very ...
1
vote
2answers
66 views

Playing with Events of BaseTool to draw Geometries.in ArcGis using ArcObjects C#

I have been trying to create a tool that creates a line using points. The idea in my mind is to get the points from a onmousedown Event and putting them in generic list and draw the line geometries ...
1
vote
3answers
47 views

Getting shared distance of two parallel lines using ArcObjects?

I have 2 lines Line A, and Line B that share from point. The 2 lines at first share the same path and are parallel, then they split into different paths. I would like to calculate that segment in ...
1
vote
1answer
44 views

Converting Multipart annotation to Singlepart causes stale record

When converting a feature-linked multipart annotation to a singlepart in either the context menu within ArcMap, or with the ArcObjects interface I am left with an annotation that becomes stale. ...
1
vote
0answers
39 views

How export geodatabase version differences in ArcPy?

With ArcObjects I have this code in C# to export the differences to a XML file: ESRI.ArcGIS.GeoDatabaseDistributed.IVersionDataChangesInit pVDataChgs; var pvTemp = new ESRI.ArcGIS....
1
vote
1answer
113 views

Drawing a line using 2 points

I was trying to create a Basetool which will collect points onMouseDown event. I was trying my tool to draw a line with the points collected. To collect points I used List. I am just putting the code ...
2
votes
1answer
68 views

Change Layer's Label Property “Display coded value description”

I created labels for layer in according with this example They display coded value description from domain, but I need value itself. I can resolve it manually by unchecking this option "Layer's ...
2
votes
1answer
43 views

How to find the original vertex location from the OnVertexMoved event

So I am creating a fairly small, and hopefully simple, editor extension. This is in Arc 10.4. What I would like to do is this. If a user is editing a feature and is manipulating the edit sketch, ...
0
votes
0answers
58 views

Generate stream network for every pixel of flow direction as a polyline shapefile based on the raster cell value

I have a flow direction raster (coded with ESRI flow directional encoding scheme) and I want to generate stream network for every grid cell of flow direction raster as a polyline feature based on the ...
2
votes
1answer
69 views

Setting field visibility in ArcMap using C#?

I want to set certain fields of a featurelayer to be visible on startup. how would I go about changing the field visibility of certain fields? if (featureLayer.Name == "LayerName") { // Code to ...
2
votes
0answers
53 views

Using EntityFramework in ArcObjects?

I want to use an ORM to retrieve some data from The SQLServer such as user permissions. I am using ArcObjects SDK 10.4 . Although I have added the EntityFramework 6.0 and my tables to a model , ...
1
vote
1answer
32 views

Hiding or disabling Database Connections in Catalog window using ArcObjects?

I am working on a project that I must limit some functionality of ArcMap based on user permissions. Is there any way to do that ? for example I want to disable the Database Connections in Catalog ...
1
vote
1answer
40 views

Facing null ITable with ArcObjects?

Recently this community helped me to get a list of the tables from an MXD file: IMapDocument mapDoc = new MapDocument(); mapDoc.Open("C://mymxd.mxd"); IActiveView act = mapDoc.ActiveView; IMap map = ...
1
vote
0answers
41 views

Listing Tables for several MXD documents using ArcObjects?

I want to do a "Extending ArcObjects: Windows Application" app: I have a code snippet that lists all the layers from the MXD files stored in a directory: string[] fileEntries = Directory.GetFiles("C:...
2
votes
0answers
44 views

Listening current tool Changed in ArcObjects10.1? [closed]

I tried listening current tool changed to show current tool's message and caption in my main form. but I find esri interface about nothing. How to listen for the current tool being changed in ...
0
votes
1answer
75 views

Fetching query from query layer using ArcObjects and C#?

As shown in the image below, I need to fetch query mentioned within query section of a layer using ArcObjects in C#. IDocument doc = ArcMap.Application.Document; IMxDocument ...
2
votes
2answers
77 views

Specify units when buffering arcobjects geometries

I have a point geometry that I'm trying to create geodesic buffers on. The input geometries are in a geographic coordinate system and I would like to specify linear units to buffer on. However I ...
0
votes
0answers
41 views

Debugging Military Tools for ArcGIS?

I am looking to make some updates to the Distance and Direction AddIn for ArcGIS. I have downloaded the source code and opened the solution. However, I cannot seem to get the project to output any ...
0
votes
1answer
69 views

Add-In button Click open ArcCatalog window with list of .sde files

I want code to open ArcCatalog window with list of .sde files.The below code always opens an ArcCatalog window with home location. I have to go to database connections from the window which finally ...
1
vote
0answers
40 views

Setting ID in query as IQueryDescriptions OIDFields throwing error?

I have a layer and the query for layer is a select query consisting of ID field in it. This query is being executed on top of Oracle and its throwing an exception for field "ID" when "ID" field is ...
0
votes
0answers
84 views

Attribute Table is empty

I am trying to point all layers in MXD files to a different database server. Databse server is Oracle type. Most of the layers consist of views. After changing the datasource programatically for all ...
0
votes
0answers
40 views

Annotation And Labelling

I was trying to explore the Annotations and Labelling for features. I wanted a transmedia feature class would show the name of it when added in the map. Here is what I did in the code. ...
0
votes
2answers
53 views

Com Exception when feature Class Select

I am using ArcObjects 10 and when I select a feature using queryFilter I get this exception : An exception of type 'System.Runtime.InteropServices.COMException' occurred in EMS.exe but was not ...
1
vote
0answers
61 views

Adding to group layers in loop is slow in ArcGIS Engine?

I am using ArcGIS Engine 10.5.1. I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
1
vote
1answer
33 views

Raster attribute table [closed]

IRasterLayer layer = map.getLayer(0); I want know that how can get attribute table of raster layer. Such as how many rows that attribute table of raster layer have and...
1
vote
0answers
24 views

Error messages are not getting logged. I have created an Add-In button. I am using log4Net library for logging.

When i run Add-In button project on my machine, logging is being done successfully but as soon as i take the Add-In button and install it into different machine , no logging of messages occurs. Is it ...
0
votes
1answer
83 views

How to select features that are outside the boundary of a polygon

I have a polygon that there are some partitions inside its boundary and some partitions outside its boundary. My question is how to select the partitions that are outside the boundary of the polygon? ...
0
votes
1answer
170 views

How to find major and minor axis of a polygon for polygon subdivision

I want to divide a polygon into smaller polygons. For this purpose my procedure was to first convert the polygon into minimum bounding geometry and divide it into smaller polygons using major and ...
-2
votes
1answer
51 views

IRasterLayer to IFields [closed]

If I have a layer of IRasterLayer type how can I get the attribute table field values in ArcObjects? IRasterLayer layer = (IRasterLayer) map.layer[0];
0
votes
1answer
174 views

Accessing four extent values of layer using ArcObjects in C#?

How can I access the four extent values of a layer shown in the below image using C# in ArcObjects? Below is the code that i am using to achieve it but "AreaOfInterest" is null. public ...
0
votes
0answers
81 views

Resetting Layer Extent in MXD file using ArcObjects and C#?

When I change data source properties of a layer using ArcObjects in C#, I lose the extent set for that layer. How can I reset the layer extent? Below is the code in which I am resetting database ...
1
vote
1answer
208 views

Changing Layer DataSource using ArcObjects?

I want to change data source information of a layer. Lets say I have a MXD file in dev env configured with dev environment datasource details like server,database,username,password and I want to use ...
0
votes
0answers
63 views

Change Layer Field DataType

I want to change data type of a field to type esriFieldTypeOID in a layer. So i copy existing field into a new field than delete existing field first and than change datatype for copied field and than ...
0
votes
1answer
284 views

Getting Layer DataSource information in ArcObjects with C#?

I have a mxd file with 6 layers. I want to get datasource information for each layer. Please see the code below. I want to know how exactly i should get layer's datasource information IDocument doc = ...
1
vote
1answer
40 views

How to listen group layer added layer in ArcObject 10.1?

I tried using the following code to listen to the layers loaded into MapControl. However, it is found that the next event is not triggered when the layer is added to the layer group. How do you listen ...
1
vote
0answers
29 views

Drawing 3d polygon element on Arcobject axSceneControl?

I have standalone application (ArcObjects C# 10.1) uses axSceneControl. How to display on the scene 3d polygon elements? I have implemented drawing 3D line elements using ISimpleLIne3DSymbol. I tried ...
0
votes
1answer
119 views

Adding picture to ArcMap PageLayout using ArcObjects in .NET?

I'm using ArcGIS Desktop 10.6 and I'm creating an Add-in to simultaneously add text (textelement populated from user input) and an image (company logo). The issue i'm having is with the image. I ...
1
vote
0answers
33 views

how to Input polygon featuer using Rubber poly (ArcObjects)

Does any one know how to input polygon feature using Rubber poly? I would like to know how to input Polygon featurer using rubber poly.. as of now i can input polygon feature. but some times , polygon ...
0
votes
0answers
41 views

Moving Point Feature Representation symbol using ArcObjects in C#?

From a 3 way or 4 way junction any valve found within 15 feet should be moved (not geometry only representation should be move) to 15 feet from junction. I have my representation feature but have ...
1
vote
2answers
71 views

esriSelectionResultEnum

I was selecting features using IFeatureSelection interface like as below. IFeatureLayer2 featLayer = layer as IFeatureLayer2; IFeatureSelection featureSelection = featLayer as IFeatureSelection; ...
0
votes
2answers
236 views

Selecting point feature on Mouse click using ArcObjects?

How do I select point feature on mouse click? I can select polygon feature but I cannot select apoint feature. ESRI.ArcGIS.Carto.IIdentify identifyLayer = (IIdentify)iLayer; IArray array = ...
1
vote
0answers
62 views

ArcObjects.NET, append with automatic field mapping not working

I got a strange problem with ArcGIS 10.4 using ArcObjects.NET. By using the code below, if I want to use the Append tool, I have to send it the source and the destination. Both of them are of Object ...
1
vote
0answers
35 views

ArcObjects Maplex labeling doesn't work?

I am trying to modify a FeatureLayer's Maplex label settings. For some reason those properties don't get modified when opening the document afterwards. The document I am opening HAS already set the ...
2
votes
1answer
129 views

How to get Feature Attachments using ArcObjects .NET (using AttachToMemory)?

I am trying to retreive the Attachment of a Feature using ArcObjects in C#. The data is correct, I am able to dump the attachments to the disk using SaveToFile. I want to work in memory and not dump ...
1
vote
0answers
145 views

'object' does not contain a definition for 'AddValue'

I have been able to get past this error, but I don't know why it was happening. I'm attempting to set symbology on a layer using IUniqueValueRenderer in ArcMap 10.4. When I try and use the AddValue ...
0
votes
2answers
129 views

Using keyboard shortcuts to invoke custom ArcGIS Base commands using ArcObjects and C#?

I developed multiple ArcGIS Commands added in a toolbar. I want to invoke these custom commands based on the keyboard keys pressed by the user. How to implement this?