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.

1
vote
0answers
82 views

Viewing Tables in the AxTOControl using ArcObjects

I was wondering if anyone out there has written a Table filter for the AxTOCControl in the ArcObjects Library. I've rolled my own Table view for now in C#, but would like to try and keep things ...
1
vote
1answer
21 views

ArcMap / ArcObjects - Type “OLEDBWorkspaceFactory” is not defined when creating a new workspace

Making an Add-In for ArcMap, refactoring old VBA code into VB.NET. Trying to create a new workspace with ArcObjects in VB.NET. I am getting the error: BC30002 Type "OLEDBWorkspaceFactory" is not ...
0
votes
1answer
29 views

Access Label from DockableWindow and Update text to it ArcObjects C# [on hold]

I am adding dock-able window and opening it on click of a button, I have a Text on it and I want to Update feature count in that Text box. When I draw a polygon on ArcMap I am able to get Feature ...
4
votes
2answers
56 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 ...
1
vote
2answers
36 views

Refreshing Versioned Feature Class using ArcObjects?

I have a FeatureClass A. This Feature Class is Versioned. User X has a tool open, that reads records from this Feature Class, by clicking a refresh button. The refresh button code is basically a ...
2
votes
1answer
37 views

Getting line segment object from points

I am fairly new to Arc Programming and am currently using .net to build my tool. There is not much back ground information as I am starting from a Blank Map. The goal of my tool is just to create a ...
1
vote
1answer
38 views

Using ArcObjects in ArcPy to change map grids in Data Driven Pages

I'm a newcomer to Python and have been working on using ArcPy scripts to automate Data Driven Pages in ArcGIS. I would like some help please to use ArcObjects in ArcPy and change map grids in DDP with ...
0
votes
0answers
10 views

IAttributeEditorDriver Interface - Ericsson Network Engineer

I was going through the SDK documentation for the IAttributeEditorDriver interface and it has the functions I am after, but the SDK does not detail what object does it need to 'latch' to in order to ...
0
votes
0answers
29 views

System.TypeLoadException: Types extending from COM objects should override all methods of an interface implemented by the base COM class

Ok, here is the situation. I am looking to get a custom arcobjects vb.net extension running correctly on ArcMap10.5. When loading nodes in an attachment viewer I receive the following error once ...
1
vote
1answer
46 views

Disabling Start Editing command using ArcObjects?

How do I disable the Start Editing button in ArcMap when an added ArcSDE database version is the default? IMxDocument pMxdoc = m_application.Document as IMxDocument; IMap pMap = pMxdoc.FocusMap; ...
1
vote
0answers
51 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 centre polyline. Per the image below I take a polyline which denotes a ...
16
votes
3answers
4k views

Addressing Memory leak in IFeatureClass.Search (only on SDE with direct connect) of ArcObjects?

ESRI Support say they have reproduced the issue and have opened a bug report (NIM070156). I have determined that there is a memory leak (in unmanaged heap memory) that occurs when a tool in my .NET/C#...
1
vote
1answer
836 views

Using intersect method of ItopologicalOperator gives error 0x80040239? [duplicate]

I would like to intersect a polygon and a polyline to know if the polyline is in the polygon. The code works but when i do it on more than 100 000 times in a for, there is this error : System....
5
votes
0answers
183 views

Customizing ArcGIS Pro using addins vs python tools? [closed]

With the upcoming release of ArcGIS Pro and the eventual retirement of Desktop and ArcObjects does it make more sense to start new customizations in python or continue to use ArcObjects/addins for the ...
1
vote
2answers
361 views

Software program (or spreadsheet calculations) to find Borehole Deviation?

I was given a bunch of surveyed borehole data (azimuth, depth, dip, geology, etc) and am required to calculate a deviation variable. Besides querying the data and averaging the surveyed borehole ...
0
votes
0answers
18 views

ArcObjects SDK for .NET JSONToFeatures fails when large JSON file is used

I have a large JSON file which I download from ArcGIS Server REST (size is 140MB). When I try to execute the JSONToFeatures Geoprocessing tool on this file I get an error. Code: (call below method ...
0
votes
1answer
48 views

Esri ArcObjects SOE

For my prototype I have published a service with one layer. The layer has 3 polygons with an entitlement attribute. Only one polygons entitlement is set to true. I need to write an SOE (in Java) to ...
1
vote
0answers
26 views

ArcObjects, “License not intialized” error, but it should be initialized [closed]

In my VB.NET application, I am using ArcObjects 10.4 and I am initializing ArcGIS. I load a feature class from a shapefile. The problem is that I get an HRESULT error 0x80040228, which is 2147220952 ...
0
votes
1answer
15 views

ArcObjects: with transformation reprojected tiles are drawn with spaces

I have used this Code from Kirk to choose a transformation if the spatial reference do not match when adding a layer with tiles. The tiles already got automatically reprojected to the existing ...
3
votes
1answer
1k views

Snapping Polygon vertices to Point features using ArcGIS?

I have a set of polygons drawn using an inaccurate GPS PDA. these polygons are sharing nodes. After post-processing GPS data to get accurate coordinates i have a set of all the nodes, then i have to ...
0
votes
0answers
15 views

How can I obtain the layers and tables catalog from within an ArcGIS SOI?

I am writing an ArcGIS 10.4 SOI in .Net and I would like to obtain the layer name for a layer id during an HTTP REST request intercept. Currently, when the SOI is started the first time, two requests ...
4
votes
2answers
1k views

Exporting ArcGIS Metadata as PDF using ArcPy?

I've been asked to automate the exporting of metadata from ESRI feature classes into .pdf files. We don't want the .xml files, rather a .pdf version of what you see in the Description panel in Catalog....
2
votes
0answers
16 views

Pan viewer window changes scale first time

I have written a simple tool to pan a viewer window (if present) to the centre of the map view, which reduces the number of clicks required and mouse travel to Pan Viewer to Map Location, it works ...
1
vote
0answers
21 views

Updating shapefile metadata to show up in ArcCatalog?

I am attempting to update the metadata for a variety of shapefiles to change the information under 'Summary' (or 'Purpose'), 'Description' (or 'Abstract'), etc. in ArcCatalog's Description tab. I am ...
5
votes
1answer
286 views

Is it possible to add a command to the ArcMap Find dialog context menu?

I think I already know the answer to this... which is "no", but I wrote this up so I'll ask anyways. Is it possible using ArcObjects to extend/customize the ArcMap Find tool/dialog by adding a ...
1
vote
1answer
119 views

I want show updated xy coordinates 'live'

I want to create add-in tool to show x y coordinate on status bar live. protected override void OnMouseMove(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg) { //this.Enabled = !...
0
votes
1answer
181 views

Making point move to right or left using ArcObjects?

I want to make a point and the point can move to the right or to the left. To make the point I can handle it , but I can already confused in the movement of the point. This code for draw point ...
0
votes
1answer
102 views

Getting features from given geometry in map using ArcObjects with C#?

I am trying to get features from a given geometry (getting only layers ). This is not selection. The validate part I will be doing using configuration. But I am not able to get the features from the ...
6
votes
1answer
1k views

Creating button to clear all layers from data frame using ArcObjects and VB.NET? [closed]

I'm trying to create a button using VB.NET and ArcGIS 10 to clear the layers of my data frame. I know how to add layers, but how do I delete/clear them?
1
vote
0answers
21 views

What type of object is required for IViewRefresh.RefreshItem “Data” parameter?

Esri's help for this method specifies this as LPUNKNOWN, which is rather unhelpful since I don't speak COM. I've tried an envelope, a geometry, and a graphicsContainer; each time receiving "System....
1
vote
1answer
131 views

How to Use IGraphicsContainer.BringForward?

I'm making an add-in for ArcMap using ArcObjects. I'm trying to bring an IElement that I've added to the ArcMap.Editor.Map.ActiveGraphicsLayer layer up one level in Z-Order. How do I add my IElement ...
0
votes
1answer
100 views

Create feature class with ArcObjects in SDE geodatabase returns No editable Layer

I Want To create Feature Class in an enterprise geodatabase with ArcObjects. This is the small part of the our plugin. In our case, we want to Create Feature Class in the database Identical to the ...
0
votes
1answer
133 views

ArcObjects(Java) - register table to geodatabase ESRI 10.3

We are in need of connecting to the Oracle SDE schema for registering Tables to the sde schema using only ArcObjects(Java) is it possible to do that with no dependency. Assume the geodatabase was ...
0
votes
1answer
72 views

How get the toolbar added with 'OnCustomizationEvent' from interface 'ICustomizationFilter'?

I'm implementing the interfaz ICustomizationFilter, and using the event 'OnCustomizationEvent' of this way: public sealed partial class eManager : Extension, ICustomizationFilter { public bool ...
0
votes
1answer
69 views

Using ArcGIS Engine with Background Geoprocessing (64 bit)

Could someone suggest how to use ArcGIS Engine Background Geoprocessing (64 bit) in ArcGIS Engine 10.4 ArcObjects console application? I am using C#, .Net 4.5.2 framework, ArcObjects SDK 10.4 to ...
3
votes
2answers
182 views

Populating fields in a Matrix format

I am trying to develop an accuracy assessment tool using ArcObjects. As an output I would like to show a matrix with the fields such as road ,land,water etc. I just want to know how can I fetch ...
2
votes
1answer
154 views

Creating Custom Layers using ArcGIS Pro SDK for .NET?

We have a Custom Extension developed for ArcMap, which includes the Creation of a Custom Layer. The Code for the Layer is similar to what you see in this Answer to Custom Layer not drawing using ...
4
votes
1answer
5k views

Getting feature class from File Geodatabase in ArcObjects using VB.NET?

How do you open up a File GDB and read out a simple feature class? The snippet for retreiving a shapefile from a regular folder on disk works, and I suppose I can use the same code but with a ...
0
votes
1answer
74 views

With in Version Difference (DifferenceTypeUpdateNoChange) how to pass IQueryFilter in ArcObjects

I want to know only real shape edits between 2 versions. How can I pass iQueryfilter to DifferenceTypeUpdateNoChange? public void DifferenceTypeUpdateNoChange(ITable sourceTable, ITable ...
0
votes
1answer
143 views

Finding whether point on polygon or not in ArcGIS VB.NET?

I am working on GIS application. I am trying to find whether a point is located within a polygon or not. I have written a piece of code for this using Relational operator but the Contains() method of ...
5
votes
3answers
5k views

How to get all the FeatureClasses from IWorkspace?

I have created a Geodatabase in my SQL Server using ArcCatalog and then I created 5 new FeatureClasses. Now I want to get all the FeatureClasses in this GDB. This is my function to get all the ...
1
vote
1answer
40 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 ...
3
votes
1answer
87 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 ...
4
votes
3answers
10k views

How to implement mouse down event when the user clicks on the map?

Newbie programming in C#.net. I have a very simple desktop application in in arcmap. I'm trying to get the coordinates when a user clicks a button on a toolbar and when click the map. The toolbar is ...
0
votes
1answer
213 views

Using Intersect result

I have working Java code for an intersect: gp = new GeoProcessor(); gp.setOverwriteOutput(true); Intersect newintersect = new Intersect(); String in = "(" + srcShapefilePath + "\\polygon.shp; ...
1
vote
1answer
69 views

Casting igxobject to ifeatureclass in ArcObjects C#?

In above Image text box show the file path. I selected file from the igxdialog and file stored in igxobject. Now to how to casting from igxobject to ifeatureclass of selected file... but igxobject is ...
2
votes
0answers
148 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. ...
2
votes
1answer
109 views

Persisting ArcObjects workspace?

In a custom layer I have a workspace variable (File GDB or SDE) that I need to persist (save/load). Therefore I need to persist the ConnectionProperties of the workspace. Thankfully ...
3
votes
0answers
54 views

Can a custom command be placed in attribute table window toolbar in ArcMap?

Is it possible to place custom command on ArcMap's attribute table window toolbar? As far as I understand I need GUID or ProgID of this toolbar in order to find appropriate ICommandItem with ...
7
votes
1answer
68 views

What events are fired when a feature is copy and pasted?

I am trying to detect when a feature has been copied and pasted. The OnCreateFeature event fires, but I cannot tell if the feature object was copy/pasted. Is there an event or other method to ...