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.

409 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
45 views

Getting/Passing Polyline object to geoprocessor as parameter

I want to know how can I get or pass a polyline to a gp tool using ArcObjects. Basically the tool just returns a line created in the gp. Below is the code which I am using JSONObject obj = new ...
1
vote
0answers
123 views

AddIn button disabled in Data View but enabled in Layout View

VB.NET Addin for ArcMap 10.3 may be causing my Table of Contents to constantly refresh. I have a custom toolbar with a few buttons. I want all of the buttons to be disabled when in Data View and only ...
1
vote
0answers
54 views

Is it possible to have multiple versions of the same ESRI Addin on the same machine?

I will be adding new functionality to a ESRI addin that I have created and I would like to give it to users to test. They already have a working version. Is it possible to install 2 versions of ...
1
vote
0answers
30 views

How should I properly release .NET extensions I create?

This is an extension to the following question: ArcMap.exe processes stay open after closing ArcMap? None of the answers go into how to properly write your extension so that it releases when ArcMap ...
1
vote
0answers
80 views

ArcObjects SpatialFilter not working well

What I'm trying to do is this: I have a point that is snapped to an edge in ArcMap, and I'm using a SpatialFilter to find polyline and polygon features where the point intersects the interior of the ...
1
vote
0answers
89 views

How to filter fields values collection of selection layer in SQLQueryDialog

I'm trying to show SQLQueryDialog in ArcObjects for selection layer (layer created from feature layer via layer's context menu Selection -> Create Layer From Selected Features). When query builder is ...
1
vote
0answers
244 views

Invisible Marker Symbol

I'm attempting to place a custom marker over a point in my ArcMap add in on my map but nothing shows up on the map. What am I doing wrong? The file extracts correctly and I can view it just fine if I ...
1
vote
0answers
95 views

Deleting Relationship Class Programatically using ArcObjects?

I am having lots of trouble deleting the relationship that I create with this code. The last two lines below do not delete the relationship. I have tried many different things in an attempt to delete ...
1
vote
0answers
34 views

Reselect saved ISelectionSet

I currently have an ISelectionSet that has various features from different layers. When I submit my edits to the Geodatabase, I lose my selection in ArcMap. Is there a fast way to take the ...
1
vote
0answers
341 views

Handle Event When User Selects A Feature

How do I handle the event when a user selects a feature from a feature layer in ArcObjects? What I've tried: public ESRI.ArcGIS.Carto.IActiveViewEvents_SelectionChangedEventHandler ...
1
vote
0answers
237 views

Passing an ICursor to ArcObjects ITableSort

I'm trying to pass a cursor (from a querydef with a prefixclause of DISTINCT) to itablesort.cursor. I've read another post on GIS SE on the same subject that warned against doing this. That post is 4 ...
1
vote
0answers
98 views

How are the GUID values for AddIn extensions created?

The AddInID GUID is straightforward, but when an extension is defined inside the AddIn, it is also assigned a GUID value when it is enabled for the first time. How (or where) is this GUID value ...
1
vote
0answers
116 views

Arcobjects not drawing GraphicContainer if layers are in the TOC

Im trying to draw some graphic labels in Layout View for every row in a feature class chosen by a user in a combobox. I am just in testing out some code to draw the label graphic and it works fine, ...
1
vote
0answers
159 views

ARCGIS 10, VB.NET, calculate centroids

I have migrated an toolbar initially developed for ArcGIS 9.3. This tool is used by non-programmer or cartographers. One procedure is called to generate centroids of attributes table and after to ...
1
vote
0answers
70 views

Make IDataElement from in memory featureclass

I'm trying to do some fieldmapping, but need to make a dataelement from an in-memory featureclass in ArcObjects to pass to the geoprocessor. Basically, this line from the sample code: IDETable ...
1
vote
0answers
191 views

I want to cut polygons in a polygon layer.

I want to programmatically cut polygons already loaded in arcmap. For instance if originally I have 1 polygon feature and 1 row in attribute table. When I cut them, I should see 2 independent features ...
1
vote
0answers
57 views

setting a PictureFillSymbol via ArcObjects not wanted/allowed?

Have a problem in setting a PictureFillSymbol in polygon-layer-properties via ArcObjects. I just create the Bitmap not from file, it is "painted" in runtime. After loading the layer and setting the ...
1
vote
0answers
105 views

Control points in IAdjustXForm for georeferencing of raster (ArcObjects)

I am trying to create a georeferencing tool using ArcObjects in VB.Net. Though only a little text is available on this topic in forums as well as from ESRI; I found an esri article that states the use ...
1
vote
0answers
46 views

Performing raster cleanup in ArcObjects?

I am working on Raster cleanup tool and using below but is the output rectangle or block? http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriArcScan/IConnectedCells_LocateByDiagonalOfEnvelope....
1
vote
0answers
73 views

ArcObjects 10.1 Misplaced graticule labels after map export to jpeg

I´m currently working on an ArcObject 10.1 Extension which 'produces a Map' and exports it´s Page Layout to 'jpeg' after completion. The code follows the snippet for 'Create JPEG (high-resolution) ...
1
vote
0answers
118 views

Activating new Snapping feature in ArcGIS Engine while editing features and vertices?

I'm working on new Snapping Capability of ArcGIS Engine. I want to use snapping capability using ISnappingEnvironment class while users are editing a feature or moving vertices. I tried IPointSnapper....
1
vote
1answer
478 views

ArcObjects OnChangeFeature event not firing unless you move feature

I am displaying points, lines and polygons on ArcMap as features with an addin. I want my end users to be able to change features (move geometries, add vertex, delete vertex etc) and get the updated ...
1
vote
0answers
30 views

hold some data at layer object

Is there in arcobjects the ability to store some data at the layer in table of content sth. like ILayer.Tag or an Interface which I can misuse for this?
1
vote
0answers
651 views

LayerUILib.dll Error in ArcGIS 10.3

I am struggling to get rid of the below error, the program can't start because LayerUILib.dll is missing your computer. try reinstalling the program to fix this problem. Note: this error occurs ...
1
vote
0answers
192 views

How to rearrange FID numeration programmatically?

I've got a feature class Now, I delete the selected features programmatically using pFeature.Delete : Is there any command or function in VBA which rearranges the FID field and makes the numeration ...
1
vote
0answers
397 views

Line with specific angle

I've created a line by mouse click event when I click on the second point I need two lines at an angle of 28 degrees from the first line how should I do it?. IPoint point1; IPoint point2; ...
1
vote
0answers
66 views

Using SET methods when feature classes setup in GDB using python, comtypes, ArcObjects?

from snippetarcgis102 import CreateMXD,CType,NewObj import snippetarcgis102 import os snippetarcgis102.GetStandaloneModules() snippetarcgis102.InitStandalone() import comtypes.gen.esriCarto as ...
1
vote
0answers
125 views

Save Edit destroys the Sketch Tool

I have edit tool(s) in ArcObjects (ArcGIS10.3). The first tool is "Create a new Polygon' and following is the code: Note: mpEditor is class member and Project is in Edit Mode private void ...
1
vote
0answers
351 views

Releasing all schema locks in ArcGIS GDB

We use ArcGIS 10.3 products (Server, Desktop) with Oracle database. Our problem is we can not make any schema changes because of shared schema locks unless we stop all services and kill all database ...
1
vote
0answers
182 views

Scaling Selection Symbols with Reference Scale using ArcGIS Engine?

With an ArcGIS Engine application, I am trying to figure out how to have the Selected Symbols scale with reference scale when selected using ArcObjects. They are currently not scaling correctly in ...
1
vote
0answers
151 views

Get spatialReference Domain, with XY Precision

I'm trying to get a spatialReference domain from prj file by using the function : private void ConstructCoordinateSystem(bool highPrecision) { // SpatialReferenceEnvironment is a singleton object ...
1
vote
0answers
780 views

ArcObjects Style of a symbol chosen with the ISymbolSelector interface

I am trying to store the properties of a SimpleMarkerSymbol symbol selected by the user using the ISymbolSelector interface. I plan to store the size, colour and style number in a file. I can get ...
1
vote
0answers
306 views

Memory leak updating geometry - ArcGis Runtime .Net

i'm working with ArcGis Runtime SDK for .Net v10.2.5. I have an UDP socket listening and waiting for image data that fires a function executed on a different thread in background. I want to draw ...
1
vote
0answers
161 views

Running C++ DLL in ArcMap

I've migrated a VB script that uses ArcObjects to a C++ Win32 DLL (using Visual Studio 2013). Now I would like to test my DLL by launching it from my ArcMap 10.3 installation. The problem is that ...
1
vote
0answers
189 views

Making feature layer selectable in ArcObjects Java without getting AutomationException 0x80004005?

I am currently making a FeatureLayer from a resultset. The feature layer seems to work properly and will display on the map. However when I choose "select all" on my feature layer I get the ...
1
vote
0answers
391 views

polygon Self intersection find in arcobjects

how to get self intersection polygons in arcobjects could you please tell me how to get already i got self intersection for polyline features as per below code but it is not working on polygon ...
1
vote
0answers
124 views

Converting Map Files to KML Overlay

Had a quick look around and didn't quite see what I've been looking for. I've got a .Net Web Application that is going to accept different map files and I want to convert everything over to KML so ...
1
vote
0answers
309 views

Subtract two rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time subtracting two rastera with ArcObjects sdk 10.1. I keep getting a null reference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
1
vote
0answers
448 views

C# Custom Dockable window: grouping them together

I'm adding in some custom windows for our clients. I want to group my dock windows together on load. The end result would look like they are tabbed (from the bottom). I have the following code to my ...
1
vote
0answers
414 views

C# geoprocessing tool output file

I'm trying to use file output parameter in arcobjects geoprocessing tool which will be used as rest service on ArcGis server 10.1 IGPParameterEdit3 outParam = new GPParameterClass(); outParam....
1
vote
0answers
55 views

IWorkspaceEdit2Proxy equivalent in ArcGis Javascript api

Is there any equivalent for IWorkspaceEdit2Proxy in JS ArcGis API ? I've gone through the whole JS API documentation and haven't seen anything that would help to implement grouping edit operations. I ...
1
vote
0answers
190 views

Create FileGDB using Geoprocessor on ArcGIS 10.3 ArcObject

Exact same code working fine with 10.0. But, 10.3 usual Esri "Error HRESULT E_FAIL has been returned from a call to a COM component". Geoprocessor geoprocessor = new Geoprocessor(); ...
1
vote
0answers
33 views

Adding a layer can sometimes load raster footprint!

Just trying to refine my ArcObjects code to add a layer into ArcMap based on passing the fully quailified (String) name of the layer - problem is, if it's a raster, it will load in the vector ...
1
vote
0answers
98 views

Arcobjects event on featurelayer symbology change

I am working on an Java AddIn project for ArcMap. I need to find the event when user changes the symbology for a layer added in TOC. So far my best bet is to useIActiveViewEvents class on map, and ...
1
vote
0answers
71 views

FDOGraphicsLayer IGraphicsContainer Reset/Next throw 'not implemented'

Running ArcGIS 9.3.2 w/ ArcFM. protected override void InternalClick() { var d = _App.Document as IMxDocument; var m = d.FocusMap; var c = m as IGraphicsContainer; c.Reset(); for(...
1
vote
0answers
314 views

ArcObjects — How to tell if an event is already wired up

Using Visual Studio 2010 C# and ArcMap 10.1. In a custom ArcObjects extension, a bunch of events are wired up at startup. For example, this simple standard code chunk: IEditEvents_Event ...
1
vote
0answers
37 views

Is spatial reference information suceptible to be translated?

In an English application that uses ArcObjects API from ESRI, the information regards the spatial reference system is displayed in English as the API gives it. If the application is translated to ...
1
vote
0answers
174 views

Assign a IGeometry to Feature.Shape

I'm trying insert a feature into a FeatureClass, but when I try to assign the geometry to featurebuffer the app return the next Error: The remote procedure call failed. (Exception from HRESULT: ...
1
vote
0answers
97 views

Editing data with Server Object Extension?

Is it possible to use an interface such as IWorkspaceEdit within an Server Object Extension to create new features or update data in a geodatabse? Perhaps this can only be done through a managed ...
1
vote
0answers
127 views

How to find if ArcMap raised error during edit session?

I have a class extended IExtension and inside this class I catch OnCreate, OnDelete and OnChanged and OnStopEditing events of Editor object of ArcMap. However I need to know if ArcMap has raised any ...

1
3 4
5
6 7
9