Stack Exchange Network

Stack Exchange network consists of 174 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.

1
vote
1answer
32 views

Closing ArcMap getting started dialog using ArcObjects by C#?

I don't want the ArcMap "Getting Started" dialog to appear after arcmap starts up. I have a login form in my Extension and after login I set a proper MXD for the user. So I don't want the "Getting ...
2
votes
0answers
36 views

Setup ArcGIS 10.6.1 SDK runtime in Visual studio 2017

I have ArcGIS 10.6.1 and I wish to setup ArcGIS Add-in in Visual Studio 2017 community edition. I installed Visual Studio followed by ArcGIS Desktop. Then I installed ArcGIS 10.6.1 runtime SDK. ...
0
votes
0answers
31 views

ArcObjects load objects and preserve GUID using VB.Net

I am trying to load data into a SQL Server enterprise geodatabase 10.1 From Desktop 10.6, the sde data is versioned and I would like to preserve GlobalID so I can track changes. I found method here ...
4
votes
2answers
41 views

Extending ArcGIS Metadata Style?

I want to extend metadata style. I want to add three new fields in metadata of feature class. I know there are different standards of metadata which ArcGIS Supports. Is there any way or possibility ...
4
votes
1answer
31 views

ArcObjects: Convert Feature to JSON

I need to get the JSON from a feature using ArcObjects. According to I tried to following code, but it does not work: var jsonWriter = new JSONWriterClass(); jsonWriter.WriteToString(); var ...
2
votes
1answer
28 views

ArcObject10.1:Memory Leak with ILasDataset.Export()?

I have created a function for exporting to the las in the geometry range by the ILasDataset.Export method.now every time the function when it is called,it takes some memory,but doesn't release that ...
1
vote
0answers
35 views

Run-time error -2147467259 (80004005) in VBA when clicking and saving polygon to shapefile? [closed]

I'm fairly new to this project and to VB and got some of old code to fix. The task is to click a polygon on the screen with the mouse and then save it to a shapefile. When executing the code, it ...
2
votes
1answer
30 views

Fitting to Margins of Layout in ArcObjects?

What ArcObjects are involved in making "Fit to Margins" work for a given Page Layout? Easier to see from picture below:
1
vote
0answers
26 views

Load WFS via QuickImport from ArcGIS DataInteroperabilityTools

For a project I have to load a WFS layer in ArcMap programmatically. Since Version 10.0 there is no ability to use the FMEWorkspace as discussed here. The only way to load WFS-Data to ArcMap is to ...
3
votes
2answers
43 views

How am I supposed to use IWkb.ExportToWkb in C#?

ArcObjects provides an interface named IWkb for obtaining a WKB representation of a geometry. Generally, you can cast a geometry object to it: // WKB representation of POLYGON((0 0,1 0,1 1,0 1,0 0)) ...
2
votes
1answer
33 views

Combine multiple adjacent polygons into 1 polygon

I have a third party tool that is creating a color filled area by placing many polygons side by side. I need to combine these polygons into 1 polygon. Unfortunately changing the 3rd party tool is not ...
2
votes
0answers
34 views

Asynchronous creation of FeatureClass with BackgroundWorker failed

I use BackgroundWorker to create asynchronous class elements. When running to IFeatureClass pFeatureClass = pFeatureWorksapce.CreateFeatureClass(pFileName, pFields, null, null, esriFeatureType....
2
votes
1answer
141 views

Setting Embed Interop Types in ArcObjects to True or False?

I took over a new project with some legacy ArcObjects code and the original developer set the ArcObjects references "Embed Interop Types" property in Visual Studio to a mixture of "True" and "False". ...
3
votes
1answer
33 views

Is there a built in way to reduce the amount of points in an IElement

I have a polyline element and I want to reduce the number of points (vertices?) that make up the line. I know it will make the curved sections jagged and that is fine. I just want to control (perhaps ...
2
votes
1answer
38 views

Convert an IFeature to an IElement to display on the graphics layer

I have read some posts and looked at a few different examples but I am still having a problem. My problem seems to lay with the location of the IFeature's shape, they are coming back as x= 590241....
3
votes
3answers
68 views

Getting Layername from selected feature using ArcObjects?

I have a IEnumFeature list of selected Features obtained through IApplication.Document.ActiveView.Selection. From this selection I want to delete some feature, more specifically the features from one ...
6
votes
2answers
91 views

Custom ArcObjects Toolbar Unavailable for Some Users

I'm responsible for maintaining an extension to ArcMap that consists of a toolbar with a bunch of menus & commands & tools. It uses the old-style COM registration for all of its UI. Recent ...
3
votes
1answer
83 views

Determining validity of odd polygon using ArcObjects?

Using ArcGIS 10.4.1 a user in our department created a polygon and saved it to a feature class as shown below. The area covered is correct as at times it could overlap itself. I have calculated the ...
0
votes
0answers
48 views

Analyzing single Polygon or Polyline that overlaps itself using ArcObjects?

My current process is to determine obstructions in an area and determine properties of those obstructions as they relate to a center polyline. Per the image below I take a polyline which denotes a ...
4
votes
1answer
66 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
17 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
24 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
49 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
54 views

Getting object info using Python in ArcGIS Desktop? [duplicate]

I want to get last clicked geometric object detailed properties: a Field-Value pair from a particular layer where this specific object resides using Python. In this case, I clicked on the triangle ...
0
votes
0answers
22 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
52 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
39 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
35 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
30 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
67 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
38 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
39 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
42 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
45 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
39 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
28 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
36 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
37 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
34 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
54 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
43 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
32 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
48 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
37 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
68 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
32 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
49 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
42 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
30 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
22 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 ...