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.

Filter by
Sorted by
Tagged with
0
votes
2answers
321 views

Creating a report from features that have been selected [closed]

I'm in need of some guidance, I have created an application where the users does the following workflow Enter Postcode Zoom to Postcode Create a buffer at specified distance Spatial Query to find ...
0
votes
1answer
20 views

How to set the angle of an Annotation when use a shared symbol

I am creating annotations in an add-in and am trying to rotate the annotation using the Angle field while using a shared symbol, however when I try and set the Angle field directly it always sets back ...
0
votes
1answer
89 views

ArcObjects Error HRESULT E_FAIL has been returned from a call to a COM component

When you run a Python script from ArcObject .net, an error occurs, all parameters are correct. ArcMap 10.6 import arcpy from arcpy import env arcpy.env.overwriteOutput = True env.workspace = arcpy....
0
votes
1answer
210 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 ...
1
vote
1answer
21 views

How to disconnect a feature from Geometric Network using Python ArcGIS

I am creating a Python add-in for ArcMap, which on click, will disconnect the feature from Geometric Network and then delete it from the feature class. But ArcPy doesn't have any method to disconnect ...
0
votes
1answer
25 views

ArcObjects C# memory management - Out of memory exception

I'm a noob in C# and ArcObjects (started two weeks ago). I'm trying to write a stand-alone console program that will change label placement quality in all data frames for all MXD files in a given ...
0
votes
1answer
138 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 ...
0
votes
1answer
170 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
152 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 ...
3
votes
1answer
4k views

Creating feature class in memory and adding to map using ArcObjects

I have the code below, which is supposed to create a new featureclass in memory then add the FC to the map, but I get a Automation error when I use the createfeatureclass method Set pFC = pFeatWS....
2
votes
2answers
1k views

Adding Button as Icon and Text to toolbar in ArcMap

How do you add a BaseCommand to a custom BaseToolbar as an icon and text? This is not an Add-In, it's the old way of doing buttons and toolbars even though it's version 10 of ArcMap.
0
votes
1answer
104 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 ...
1
vote
1answer
40 views

Getting subtypes from standalone table in ArcObjects

I have been working in the next code to get all Subtypes from a standalone table in a single string that concatenates it. I work with ArcMap and arcobjects library in C# (sharp) language. But I can ...
3
votes
1answer
350 views

determine the closest points on the network?

In ArcGIS, I have only a point layer relating to a hydrography network's pour points. Now I want to write code in VBA that selects a point from this layer, then highlight the closest points to this ...
1
vote
1answer
409 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
99 views

Update Esri SOAP to REST

I'm new to ArcObjects, not a GIS professional so please be patient with my lack of GIS knowledge. I have an .Net Web application with ESRI.ARCGIS.SOAP references, looking to update them with rest. ...
1
vote
1answer
31 views

How to bootstrap an MSI to Esri .NET Add-in

I support an old COM extension to ArcMap built using ArcObjects, and I'm exploring the possibility of porting it to an Add-in. The main benefit I'm seeking with the add-in is its ease of deployment: ...
0
votes
0answers
20 views

ArcObjects Load features that don't exist

I'm trying to write a method in ArcObjects .NET that will load features from a file GDB into another geodatabase but only if they don't otherwise exist. Records are considered existing if there is a ...
0
votes
1answer
116 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 ...
3
votes
2answers
1k views

Spatial Definition Queries?

Is it possible to spatially pre-clip layers (say with a IPolygon object) before they are loaded into ArcMap? This would be a bit like a query definition but spatial and for raster data.
1
vote
2answers
1k views

How do I save edits from an ArcMap editing session using VB.Net?

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.
5
votes
4answers
474 views

Creating universal ArcGIS 'Current tool' property?

I have a base tool class which handles 90% of my custom logic, but some tools need to set themselves as the current tool. The operations between ArcGIS Engine's IToolbarControl and ArcGIS Desktop's ...
6
votes
1answer
538 views

Display Feedback “Stutters” When Moving Features [closed]

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; ...
1
vote
0answers
29 views

Weird XY-resolution for map in ArcObjects

I have an MXD file with 240 feature-layers, all having the exact same spatial-reference and spatial resolution. I checked this using the following code: var sortedLayers = allLayers.OfType<...
0
votes
1answer
1k views

Accessing functions from another project in vb2010

I have written a project which has common functions in Visual Basic 2010 i.e. Visual Studio 2010. for e.g. Public Function FlashPolygon(pDisplay As IScreenDisplay, pGeometry As IGeometry) Dim ...
1
vote
1answer
2k views

Creating windows form based tools as add-ins in ArcMap using vb2010 [closed]

I am writing a project in vb2010 in which i want to add a package having 4 toolbars with about 48 tools in them in ArcMap 10.0. So far, I have created an ArcMap class project with the common functions ...
-1
votes
1answer
14 views

While Runing the Code Showing Error on “pCalculator.Calculate”

Private Sub CommandButton1_Click() ' Part 1: Define the feature class. Dim pMxDoc As IMxDocument Dim pFeatureLayer As IFeatureLayer Dim pFeatureClass As IFeatureClass Dim name1 As Variant Set pMxDoc =...
1
vote
1answer
239 views

Customizing editor widget for feature layer [closed]

Here is the code for the editor widget: <esri:EditorWidget x:Name="MyEditorWidget" Map="{Binding ElementName=MyMap}" Width="300" ...
1
vote
0answers
155 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 ...
0
votes
0answers
22 views

ArcCatalog doesn't run program

I've designed a program in which: user selects their input directory, the source of the shapefiles user selects their output folder, where their file will end up user names their resulting Excel ...
1
vote
0answers
38 views

Editing MosaicDataset attributes

I am trying to access and edit a MosaicDataset (I need to edit the MaxPS/MinPS fields) but I cannot find a way to access them programmatically. Does anyone know how can I edit these fields?
1
vote
1answer
92 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 ...
1
vote
0answers
12 views

ArcObjects and JavaFX [closed]

I am trying to export my ESRI add-in to ArcCatalog. I have access to ArcGIS for Desktop. I do not use Arc Runtime. I have created a java small program, and I'd like to kick it off with a button. ...
3
votes
1answer
449 views

Setting Up Snapping Environment Snapping Type using ArcObjects

I try to setup snapping environment snapping type by referring to this source (http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000001s1000000) but I can't combine ...
2
votes
1answer
31 views

Using IAddDataDialog2 to obtain layer from .gdb with ArcObjects and C#

I am using ArcMap 10.4.1. I cannot figure out how to properly initialize/create IAddDataDialog2 in C# to access a .gdb file in which I'm suposed to find a layer that I want to add in my TOC. I tried ...
2
votes
0answers
431 views

Tutorial on migrating Add-ins from ArcGIS 10.x (ArcObjects) to ArcGIS Pro for Microsoft VB.NET? [closed]

I can't seem to find any comprehensive tutorials on migrating (recreating comparable functionality) of 10.x (ArcObjects) VB.Net Add-ins to ArcGIS PRO SDK Add-ins. When migrating from Avenue, ESRI ...
1
vote
0answers
125 views

Refreshing IDockableWindow with DGV using C# [closed]

I am having a IDockableWindow which will display a row of data which is a DATATABLE on DGV. below is my code. Page1.cs: private void toolStripMenuItem_Open_detail_page_Click(object sender, ...
1
vote
2answers
59 views

Set available orientation to toolbar in ArcMap using ArcObjects

We are creating a very huge extension for ArcMap and in the process, we have created a lot of new custom toolbars. These toolbars contains both buttons and custom controls. These custom controls can ...
2
votes
1answer
220 views

Access to ArcObjects DLLs on a build server using Nuget

We're in the process of standing up a new build server--Jenkins on Windows Server 2012 if that matters--and are attempting to configure it to build a solution that uses ArcObjects (currently at 10.2.2,...
1
vote
1answer
840 views

Joining and Calculating using ArcObjects with vb.net

I'm trying to join an excel table to a shapefile and then calculating those fields using vb.net. The code I have written has no errors, but won't work when I try it in ArcGIS 10.1 and I'm out of ideas....
-1
votes
1answer
845 views

Loading geodatabase file with C# code

I'm trying to get a pixel value from my geodatabase. The problem is at loading the geodatabase file (.gdb). Using this code Geodatabase gdb = new Geodatabase(@"C:\Data\Scotland.gdb"); Raster ...
0
votes
2answers
61 views

Reason of mismatch of projection system of rasterlayer and featurelayer?

What I would like to check is if the raster layer and feature layer have the same projection. Code developed so far: public void SpatialReferencEquality() { var rasterLayer = ((ILayer)comboBox1....
1
vote
1answer
25 views

ArcMap - ArcObjects IGeoFeatureLayer Renderer is giving a NullReferenceException

Refactoring a VBA add-in into VB.NET add-in. I'm getting: An unhandled exception of type ' System.NullReferenceException' occured in MyAddin.dll Additional information: Object reference not ...
0
votes
1answer
697 views

Severe performance difference using deleteSearchedRows [closed]

The issue I am having involves two versioned tables. A function deletes 48 rows from Table A and and 48 rows from Table B using deleteSearchedRows. However, the delete from Table A takes roughly 4 ...
1
vote
1answer
233 views

Running ArcGIS Engine in Java 7?

Does anyone know if it's possible to run ArcGIS Engine 10.2 in Java 7 ? Currently in Java 6, I need to use both ArcGIS Engine 10.2 and Java 7 functions in the same standalone program. (I don't talk ...
1
vote
1answer
142 views

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 = !...
1
vote
0answers
42 views

Opening Raster with “bad” vertical coordinate system crashes program

I have an elevation TIFF file that comes from another program that seems to have something wrong with its Vertical Coordinate System. The coordinate system is EGM96 Geoid. I cannot open this TIFF in ...
3
votes
1answer
1k views

Importing shapefile to file geodatabase feature dataset using ArcObjects and C#?

I'm trying to import a shapefile into a featuredataset under a geodatabase using FeatureDataConverter.ConvertFeatureClass. All the examples that I found are not concerning the import under an existing ...
1
vote
0answers
63 views

Loading WFS via QuickImport from ArcGIS Data InteroperabilityTools [closed]

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 ...
1
vote
0answers
454 views

Getting AddIn to appear in customize mode categories? [closed]

I was hoping that someone here might have tried this, it seems like it could be a simple error somewhere. I was running the sample AddIn that was provided by ESRI and it worked fine until I tried to ...