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
1answer
33 views

Cursor returns object reference not set when reading Annotation Layer in ArcMap

I have an annotation Layer of Geometry Type Polygon. There are few hundred features in it and I need to shrink each of them to a smaller size (for example reducing them by 50%). I am trying to use ...
1
vote
1answer
12 views

Assigning multiple Customize keyboard shortcut keys for ArcMap

I am using ArcMap 10.1 and 10.2.1. I have attached the below image for reference. I want to assign multiple Customize keyboard shortcut keys at the same time. Is it possible do this using ArcPy/...
0
votes
1answer
13 views

Adding Basemaps in Map Control using ArcGIS Engine

I am developing a .Net application that is using ArcGIS Engine 10.8. I would like to add programmatically the "Add Basemap" functionality into the application's Map Control. How can I add ...
2
votes
1answer
2k views

ArcObjects: Setting image of a command button to a partially transparent bitmap

In an ArcMap 10 add-in, I am attempting to create a toggle button of sorts whose image changes based on the button's state. This answer describes how to set an add-in button's image programmatically ...
1
vote
1answer
60 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
1answer
71 views

ArcGIS .Net Framework SDK for 10.8: Does not install correctly

When using the installer: ArcObjects_SDK_for_NET_Framework_108_172796 with having Visual Studio 2017 and ArcGIS 10.8 installed, the select features is missing the VS 2017 (see second image) Steps ...
1
vote
0answers
70 views

Creating a selection set from selected features using select by location

I am trying to convert my VBA code to vb.net. I use “Select by location” to select all the points that intersect lines. Then I want to click a button to put the points into a selection set. Then I can ...
1
vote
1answer
981 views

Geoprocessing fails in separate thread

I have a method that does a bunch of geoprocessing on some layers for my ArcMap extension. It creates a feature-to-point layer for one FeatureClass and another feature-to-point layer for another ...
0
votes
1answer
245 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
210 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....
1
vote
1answer
205 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
187 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 ...
2
votes
4answers
421 views

Workaround for AxMapControl painting issue (only problematic at certain screen resolutions)?

I have a .NET application dependent on ArcGIS 9.3.1 which I am upgrading to ArcGIS 10. I have an AxMapControl sat in a panel in a split container on a tab. The Dockstyle is set to Fill. Since ...
0
votes
1answer
123 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
349 views

ArcObjects 10.3 Page Layout

We are upgrading ArcGIS from version 10.0 to 10.3 and need to update our server object extensions. Esri state that when upgrading: "Avoid using ArcObjects from the Carto library that are ...
1
vote
2answers
199 views

Since upgrading to ArcGIS 10, my application doesn't rescale the map when the window is resized

I am upgrading a .NET application from ArcGIS 9.3 to ArcGIS 10.3. I've noticed that the map control behaves differently: the map no longer automatically rescales itself when the window is resized. To ...
1
vote
2answers
1k views

Adding an existing Feature class to an existing Feature Dataset in c#(arcobjects)

I want to add an existing feature class to an existing feature dataset. Both the feature class and the dataset have the same coordinate system, I searched over the net but only assistance I found was ...
1
vote
1answer
892 views

How can I release the lock file on a DBF after removing its join to a FeatureLayer using ArcObjects?

I found another post with two different answers on how to remove the join between a feature layer and a standalone table, but neither method successfully removes the lock file (filename.dbf....
0
votes
1answer
204 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 ...
1
vote
1answer
455 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
145 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
48 views

Windows cursor being outside of visible bounds of map using ArcObjects

What is the method to determine whether the Windows cursor is outside of the visible bounds (envelope) of the map? I need to know if the cursor is currently over another window frame and not the map ...
0
votes
0answers
27 views

ArcObjects C#.Net 'System.NullReferenceException'

I'm new to C# and ArcObjects. I just started a book and I'm getting introduced to it. My fist ever ArcObjects code is to create an extension that zooms to the full extent of an active layer. I have an ...
12
votes
11answers
10k views

Learning .NET for ArcGIS (mainly Desktop) use

I have basic programming skills (I program simple vba python and lisp scripts and had gone through a java course a long time ago), but it seems to me (judging by ESRI publications) that there is no ...
0
votes
1answer
16 views

Creating global Geoprocessor object for ArcObjects application?

I have an application that does many operations including some Geoprocessor tasks. Should I create a single Geoprocessor() object for the lifetime of the application or should I create a new one each ...
1
vote
1answer
38 views

ArcObjects access to ArcMap's Geoprocessing Results

Is it possible to get ArcObjects access to the geoprocessing results that show up in the geoprocessing Results window in ArcMap? I'm looking to remove results from geoprocessing operations that are ...
0
votes
0answers
29 views

Adding mapgrid to existing mapinsets in ArcObjects .Net (C#)

I am facing the problem to add a mapgrid to existing map insets created in a pagelayout at an earlier step. I can implement some code in a DLL loaded by reflection to add some operations like adding a ...
1
vote
1answer
72 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 ...
1
vote
1answer
155 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 = !...
11
votes
1answer
522 views

Using Python to disable Scale map elements proportionally to changes in page size?

I am changing sources on MXDs in differents offices using ArcPy and ArcGIS 10.0. As observed here, the printer settings revert to the default printer when the instruction mxd.save() is sent. Losing ...
2
votes
1answer
61 views

Adding GeoPackage to ArcGIS Desktop using ArcObjects

How do I add a GeoPackage layer to ArcGIS Desktop using ArcObjects code (preferably c#)? From the ESRI documentation: The WorkspaceFactoryProgID identifies the ProgID of the WorkspaceFactory object ...
0
votes
1answer
42 views

Setting DockableWindow Initial Size ArcObjects .NET SDK

In an ArcMap custom tool I used DockableWindow for user interaction. I want to set a size for the window while initial opening. I changed the height and width of InitialPlacement. After changing it ...
1
vote
1answer
53 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
57 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,...
1
vote
1answer
428 views

SDE FeatureClass Granting and Revoking Privilege with ArcObjects

How can I with ArcObjects GRANT or REVOKE Privileges like SELECT, UPDATE on SDE FeatureClasses to/from Roles? The equivalent in normal Oracle would be something like this: GRANT SELECT ON SCHEMA....
3
votes
1answer
45 views

Shift polygon along the coordinate axis

I am creating BaseTool using ArcObjects with C#. The tool should reduce the polygon and move along the coordinate axis. I managed to reduce the polygon. When I want to use the PutCoords() function to ...
1
vote
1answer
218 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 ...
7
votes
1answer
435 views

How to add a new Parcel inside Parcel Fabric from existing parcel features (ArcObjects)

I want to create a new parcel in a parcel fabric layer. I have the x, y coordinates for the parcels to be created. I searched around a lot and found really nothing that actually "CREATES" a parcel. ...
1
vote
4answers
7k views

Permanently reordering fields in feature class programmatically using ArcObjects with VB.Net

Would someone be able to share the logistics on how to permanently programmatically reorder fields in a feature class with ArcObjects, VB.Net. I want to be able to do this in the geodatabase not in ...
1
vote
0answers
34 views

The project does not build. The command “esriRegasm.exe …” exited with code -1

I want to build the project to create a tool with ArcObjects in Visual Studio. I get this error: The command "esriRegasm.exe "...Project1.dll" /p:Desktop /s" exited with code -1. ...
2
votes
1answer
59 views

Layer time extent calculating problem while table joining with layer using ArcObjects C# .NET

I have added a layer in the ArcMap. I want to see the different values of the items of this layer using the "Time Slider". For this, I have prepared a table that contains a field named ...
3
votes
3answers
108 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 bool IsSpatialReferenceSame(ISpatialReference sp1, ISpatialReference sp2) { ...
1
vote
1answer
38 views

Running MosaicToNewRaster tool fails. C#

I am currently trying to run the MosaicToNewRaster tool via C#, on a set of TIFF files. I am inputting all the required parameters but am still receiving: ERROR 000582: error occurred during ...
1
vote
1answer
39 views

ArcObjects update feature attribute

I want to update enabled field of feature in an asp.net MVC application. I have below code but it returned "No update session in progress" error public string Test() { ...
1
vote
1answer
38 views

Esri ArcObjects - getting geometry directly from SHAPE value ID

I've been teaching myself ESRI ArcObjects in C# over the past few weeks, I'm still very new in the ArcObjects world. All of our data is in an Enterprise geodatabase on a MS SQL Server database. I've ...
1
vote
0answers
46 views

Lost ArcMap Add-in Toolbar Built with ArcObjects SDK in .NET and Problem with AssemblyCache folder and ArcGIS Cache Manager

Our organization manages an ArcMap 10.6.1 add-in written using the ArcObjects SDK for .NET Framework 4.7.2. We publish the add-in file to a server folder. We edited the registry to make ArcMap look ...
2
votes
1answer
29 views

Adding AddIn to ArcMap UI automatically after AddIn installed?

For example: I create a basic MainMenu "My Menu" AddIn by VS2010, and add "isRootMenu=true", complie and install the addin, open ArcMap, I have to open the customize dialog -> ...
2
votes
1answer
311 views

Using ArcObjects ITextSymbol.GetTextSize in Python to define two input variables that get populated by method

I am using Python 2.6 and ArcObjects in ArcGIS 10.0 to build and draw, among other things, graphic text on the current display. At one point I need to use the ITextSymbol.GetTextSize method. In a ...
17
votes
7answers
11k 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
0answers
43 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 ...

1
2 3 4 5
49