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
1
vote
2answers
2k views

ToolStrip Button click event is not fired on first click

I have a dockable window in a custom ArcMap extension. The dockable window has a regular windows forms ToolStrip control in it with ToolStripButtons on the ToolStrip. When the parent dockable window ...
1
vote
1answer
34 views

How to read the relevant join information out of a MXD file (above all the name of the destination table attribute)

Goal: Read all joins within a MXD file and its relevant information. This should include: origin layer name, origin attribute name, destination table name, destination table attribute. To solve this,...
136
votes
5answers
25k views

Accessing ArcObjects from Python?

I would like to be able to script some things that are not exposed via arcgisscripting or ArcPy. How do I access ArcObjects from Python?
1
vote
1answer
36 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 ...
0
votes
1answer
117 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
220 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
2answers
501 views

ExportToPDF creates blank PDF

I have a MapDocument that I am trying to export to PDF. I am using this example. However, it always says it is finished but when I open the pdf file there is nothing in it. I have tried exporting to a ...
2
votes
2answers
45 views

Cannot reuse output feature class in a custom geoprocess using ArcObjects

I'm developing an arcobjects 10.4.1 custom GeoProcess (fusion shift) which has to be able to run within a model builder. The GeoProcess seems to run smoothly, but the problem is it needs to be ...
1
vote
1answer
61 views

ArcObjects SDK for .NET Framework with Annual Educational Advanced (ArcInfo) Single Use License

I usually use my organization's ESRI account when at work, but I am now working at my home Desktop PC. On my home PC, I have an ArcGIS 10.6 annual educational license that I do not want to sacrifice. ...
0
votes
1answer
162 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 ...
16
votes
7answers
9k views

How can I find the farthest point from a set of existing points?

I have a set of points as a shapefile and I want to find (the coordinates) of a new point which will have the longest possible distance from each of the existing points. Is that possible? If yes, is ...
0
votes
1answer
166 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
182 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
0answers
14 views

How to trigger update to Config.Designer.cs at build time

I'm trying to automate modifications to the properties of an ArcObjects AddIn (v10.6, Visual Studio 2017) into its build script. I can use the XmlPoke task to update the XML in Config.esriaddinx. ...
0
votes
1answer
110 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
423 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 ...
0
votes
1answer
129 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 ...
1
vote
1answer
36 views

Why do we use PolylineClass() instead of Polyline()?

I was wondering why we instantiate a class with a class word instead of just the name of the class?
1
vote
1answer
17 views

Geoprocessor cannot find input data, but only for some users

I am developing a stand alone application that at some point needs to run Dissolve on a subset of data in a feature class. This code works for me without issue, regardless of workstation. When another ...
0
votes
0answers
31 views

IFeature.Store() method throws COM exception

I am developing a custom ArcFM attribute autoUpdater to update a couple of field values within a feature class. The autoUpdater will fire while creating as well as updating any feature with the ...
0
votes
2answers
261 views

Is ArcObjects SDK for .NET available with ArcGIS for Home Use or free trial license?

I currently have a 6 month free trial of ArcGIS Desktop 10.1 that I got online with an authorization number from an Esri Press book and I've read that ArcObjects is bundled with the Desktop license ...
4
votes
1answer
1k views

Getting from IFeatureClass on annotation feature class to IAnnoClass using ArcObjects

I am working in Python 2.6 and ArcGIS 10.0 through comtypes, so I have full ArcObjects access. For example, see the answer I tacked onto Accessing ArcObjects from Python?. That makes this strictly ...
1
vote
1answer
1k views

Creating a graph from a Field values (VBA ArcObjects)

I have a combobox that shows all fields of a shapefile. I want to get these values programmatically in a label--Count, Minimum, Maximum, Sum, Mean, Standard Deviation--and populate a graph of the ...
3
votes
1answer
81 views

How to set image for Picture / IPicture for ArcGIS Desktop?

I am struggling with ESRI's Picture / IPicture Java documentation for ArcObjects 10.4. I just need to grab the image file from my project's source (src) folder, and cast that as a Picture. Here's ...
3
votes
3answers
1k views

Drawing selection custom selection box using ArcObjects?

I have some code that I'm using to selecting features in a certain extent. I already rigged the tool properly, so it selected the objects as needed, but I want to draw interactively the selection box ...
5
votes
1answer
2k views

Programmatically alter AliasName for fields defined in layer file (not underlying source)

Is there a way to alter the AliasName on a layer file only, and not the underlying shapefile or feature class? I have a few hundred layers that define joins between hundreds of tables with census data ...
1
vote
2answers
503 views

How to add a Data Frame to mxd in a c# stand-alone application?

I am writing a stand-alone application in c# (using vs2010). I have ArcGis Desktop license. I only need to insert a new data frame in an mxd file and save this mxd. So: I create MxDocument coclass. ...
0
votes
0answers
17 views

How to programmatically add non-geometrical features in ArcFM Attribute Editor Selection Tab

I'm trying to implement custom logic which will allow ArcFM Attribute Editor Selection tab to display non-geometrical features. Currently only map selections are displayed there, and my goal is to add ...
1
vote
1answer
115 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
1answer
67 views

Make IPictureMarkerSymbol file path accessible to all users?

I've written a little java add-in button for ArcDesktop 10.4, in eclipse, which makes a new ArcMap layer with some points. (NOT Runtime) My goal is to assign a picture as the symbol for each of these ...
10
votes
5answers
7k views

Programmatically edit/update metadata in ArcGIS?

Has anyone succeeded in programmatically updating metadata in ArcGIS 10? Considering using Python/arcpy but ArcObjects (C# or Python/comtypes) is also a possibility. I need to update both the FGDC ...
3
votes
1answer
65 views

Programatically transfer attributes from line to selected points: : Attribute transfer tool

Spatial Adjustment>Attribute Transfer Tool in ArcMap transfers attributes between mapped source and target layers by mouse clicks. The disadvantage is you can do one point/line at a time. My problem ...
1
vote
1answer
46 views

Setting the column-order of the attributetable in ArcMap programmatically?

I'm loading a feature layer to ArcMap and want to prepare the columns shown in the attribute-table. Aliasname and visibility I set with ILayerFields-Interface of the FeatureLayer by passing it to the ...
0
votes
2answers
64 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
34 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 ...
1
vote
1answer
148 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 = !...
3
votes
0answers
131 views

LasDatasetToRaster does nothing to the Raster Layer

I have been trying to figure out how to clip and rasterize a LiDAR map file programmatically (Not through arcpy) I use C# but read many languages. So far I have been able to access and assign the LASD ...
0
votes
1answer
29 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 ...
2
votes
1answer
270 views

Getting 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
1answer
42 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 ...
3
votes
1answer
35 views

How to get the bounding rectangle of the rectangle drawn in the ArcGIS using ArcObjects?

I am trying to draw the rectangle in the map and get the Rectangle bounds from it. I am able to draw it but I am not getting the rectangle bounds. I have followed this url :Follow URL And my code as :...
0
votes
1answer
61 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 ...
1
vote
1answer
52 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
2answers
91 views

Determining when layer has been loaded in ArcObjects?

Is there an event in ArcObjects to determine whether a layer (specifically a shapefile) has been loaded into a map? I'm using ArcObjects 10.4.1 and C#
1
vote
1answer
855 views

Creating and Rotating Raster Dataset using ArcObjects [closed]

I'm following the "How to create a raster dataset" tutorial: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000464000000 The questions are: 1) How can I create ...
0
votes
2answers
323 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 ...
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.
1
vote
1answer
46 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
352 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
2 3 4 5
49