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.

learn more… | top users | synonyms (3)

1
vote
0answers
46 views

Can't get ESRI.ArcGIS.ADF.Connection.Local to work for 10.2.1

Not sure what I'm missing. I'm trying to use the ESRI.ArcGIS.ADF.ComReleaser and I can't get C# to recognize the ADF namespace. I can add the reference by going to Reference->Add ArcGIS Reference, but ...
1
vote
2answers
50 views

How do you programmatically access a feature's attachments?

I am attempting to access a feature's attachments in ArcObjects and I'm following the docs for Working with feature attachments. Everything is fine until attempt to access IAttachment.Data because I ...
2
votes
1answer
84 views

Getting Uncompressed Size of Raster using ArcObjects?

How can we get the Uncompressed Size of a raster as shown in the layer properties below using ArcObjects?
1
vote
1answer
61 views

How can I delete relationship classes?

ArcGIS 10.2.2 Standard I'm looking for a code sample that can delete all relationship classes from a database, including inside Feature Datasets. I've searched ESRI's site and only found a ...
3
votes
0answers
73 views

Pulling ArcSDE feature classes from current map to fieldmapping as DETable?

I'm working with SDE layers in arcmap. trying to avoid pointing to the sde file itself. I've tried workspace.Pathname, it was empty for sde remote workspace. I've also tried IName from workspace, ...
3
votes
0answers
17 views

How do I drag item/file from ArcCatalog to custom UI form created with Toolbar Add-in?

I have created a button add-in in ArcMap that pops up custom UI/Form. I want to drag and drop file from ArcCatalog into the textbox on the Form. I am able to do so with windows explorer but not from ...
1
vote
0answers
15 views

Set Maximum Allowed Panning Area

I'd like to fix the maximal area, in which the user can fly around. Now its possible for the user, to pan everywhere he wants to go. For e.g. to XMin: 216.2. My map has got these "borders": ...
0
votes
0answers
16 views

Drawing geometry and attaching it to featureclass with arcobjects and Add-in button

I am newbie to ArcObjects and exploring classes. I want to have form created on add-in button click.(Form contains certain text boxes for input) That shall create a new feature class and then allow ...
1
vote
1answer
20 views

Why is this formatted string “n. def.”?

I'd like to show the user the current map scale. I update the current map scale in a textblock everytime the map size/scale has changed. This is my code, to show the map scale (in C#): private void ...
1
vote
0answers
13 views

vb.net arcobjects remove a buffer

I have a function which can select and zoom to a feature, at the same time I will create a buffer around the selected feature so that further more function provided only for the selected feature. The ...
2
votes
1answer
54 views

How to make elements size fixed (Arcobjects)?

I'm using arcobjects .Net 10 to add graphic elements to my map. My problem is that when the map scale changes, the element size change too. How to fix element size at all scales?
1
vote
1answer
35 views

How to set custom fullextent?

I have a WPF Map control whose extent I would like to restrict to a certain area (e.g. to the full extent of some layer). That is, a user should not be able to zoom out too far, or shift the map to an ...
2
votes
2answers
28 views

vb.net arcobjects determine whether arcmap is in editing session

I have a vb.net arcmap addin which provide a function to validate geodb topology. But there is a problem, when I am not in editing session and use the function, arcmap will crash. In this case I ...
3
votes
1answer
43 views

How to change the Transparency of an ILayer?

I've created a function which sets the IColor to a specific ILayer, the value of transparency is between 0 and 255. When I set the value to 0, it gives me a transparent layer which is OK, but when I ...
1
vote
0answers
29 views

Access specific version of featureClass (Table) through SOE

I am new to ArcObject and SOE. The task I am trying to accomplish is: Find the specific version of a table Copy the table (to a new table) that the non-soe user can access that version of the ...
1
vote
0answers
32 views

Exporting selected Features to CAD drawing using ArcObjects and C#?

I'm new to ArcObjects, and I have to export selected features to CAD Drawing using just ArcObjects and C#. The code below works well when I convert to a shapefile ShapeFileWorkspaceFactory, but ...
1
vote
0answers
17 views

ArcGIS geoprocessing Metadata Translator error

We're using the ArcGIS Metadata Translator tool within ArcObjects.net using geoprocessing, which for the most part is working fine, but it's throwing us this error occasionally: The process cannot ...
0
votes
1answer
46 views

How to create a transparent buffer of a polyline?

I use vb.net arcobjects create a buffer around a polyline feature once it is selected. The problem is the buffer has a obvious colour. Since I have other functions on the selected feature, I cannot ...
0
votes
1answer
43 views

How to run spatial query get fields value of 2 layers?

Last month I ask a question "vb.net arcobjects spatial query get fields value of desired layer only", url vb.net arcobjects spatial query get fields value of desired layer only. Now there is some ...
0
votes
1answer
26 views

vb.net arcobjects determine 'create features' on which layer

When I create new feature in editing session, I need to determine the new created feature is in which layer because after that have further more action on the layer. I wonder can this be done in ...
1
vote
0answers
22 views

vb.net arcobjects validate topology function only works after I use arcmap topology tool validate topology first

I find a strange thing occasionally, I have a validate topology function developed by vb.net arcobjects. It work not properly. The case is: open arcmap start editing use my validate topology ...
-1
votes
1answer
49 views

How to get feature fields and values?

How can I get features from EID? I cannot define a Geodatabase connection since it changes. I have to get it from IUtilityNetworkAnalysisExt or IEditor. I figured out how to get EIDs on downstream. I ...
0
votes
1answer
26 views

vb.net arcobjects check if topology has error

I follow the esri example for validating topology, is it possible to tell whether topology error exists? The code I use: ' Step 1 - access a topology Dim topoUiD As UID = New UIDClass ...
1
vote
0answers
27 views

mapping and update data in database

We have two feature layers: layer A - drainage segment layer (along road outline) layer B - road centre line layer. In my SQL Server database I have a table storing the mapping information of ...
2
votes
1answer
43 views

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox?

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox? I'm trying to execute a tool in a Python toolbox (.pyt) from .NET. First I call: GP.AddToolbox(@"C:\path\to\MyToolbox.pyt") ...
1
vote
0answers
25 views

Using IRelationalOperator ArcObjects interface with feature classes stored in Oracle?

Could you give an example how you’d use the IRelationalOperator ArcObjects interface with features from different feature classes stored in oracle database? In my visual studio project I have an xml ...
1
vote
0answers
24 views

How to create schematic attribute as associated field using ArcObjects?

I'm trying to automate the complete creation of a schematic template with ArcObjects SDK for Java (10.2). I've managed to create the GDB, the schematic dataset and the schematic diagram class ...
1
vote
1answer
58 views

Invalid SQL-Statement error when querying file-geodatabase table date field with arcobjects

I want to query a DateTime Field in a table in a file-geodatabase and I keep on getting the error "invalid sql statement" (Error Code: -2147220985) while that sql statement does not give me an error ...
0
votes
0answers
25 views

Releasing FeatureLayer COM object

I am going through some code and trying to implement correct COM object releasing because currently in an error situation we cannot remove some generated files as the databases are kept locked. I ...
3
votes
0answers
46 views

Temporary File GDB-based scratch workspace is not deleted after it is released

I have created a temporary File GDB-based scratch workspace as follows: var factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.FileGDBScratchWorkspaceFactory"); var factory = ...
0
votes
1answer
36 views

How to set max map scale for a layer?

How can I set the maximum scale for a layer? Sometimes the layer is not visible (it disappear), when the map scale is >= 1:250000. I'd like to set it on max 1:125000. This code does not work: ...
1
vote
1answer
33 views

How to zoom to a specific point?

How is it possible to make the map zoom to a specific point like an address that the user wants to find? Codebehind: private void btnSearch_Click(object sender, RoutedEventArgs e){ var queryTask ...
0
votes
0answers
31 views

Sorting by geometry

I'm trying to implement sorting of features by set of fields. These fields can contain geometry one. For geometries I want to use adjustable XY- and Z-tolerance. My thought was to use ITableSort with ...
3
votes
1answer
24 views

Deriving coordinates from Application.Display or MxDocument.ActiveView in ArcObjects?

I've found two possible ways of converting a MouseEventsArg's coordinates to the coordinates of the current map: The first is taken from a snippet included with ArcObjects: protected override IPoint ...
3
votes
2answers
87 views

Selecting features by location based on selected feature using ArcObjects?

I am very new to ArcGIS and ArcObjects. I am writing a code for a button that will detect a selected feature and then select other features based on the feature that I had selected please take a look ...
-1
votes
1answer
33 views

Is there a method in ArcObjects that is equivalent to ArcPy's: SelectLayerByLocation_management?

I have 2 IFeatureClass and I want to do an INTERSECT between the two. What is the best way to do this from ArcObjects?
2
votes
1answer
57 views

Dockable window close event

Is there an event that fires when a custom dockable window is closed in ArcMap? My dockable window uses the Add-in pattern and hosts a WPF user control. It opens via a command button which is nested ...
1
vote
0answers
20 views

Adding feature to remote geodatabase takes a long time

I have a program that I must add some features to a feature class that is in a sql server remote database. But when I want to open connection and add them, it takes a long time, about one or two ...
4
votes
3answers
56 views

ArcObjects : How to identify ITool.OnMouseUp method execution

In ArcMap, I have a tool that inherits BaseCommand. The tool enables the user to draw a graphic on the screen. I activated this tool (set as current tool) from a Windows UserForm by getting its ...
1
vote
1answer
38 views

Merge polygon based on other line shape file PostGIS

I have a polygon shape file and a line shape file. I would like to merge two polygons which shares the same border along with line shape. Finally the line should be removed in polygon shape file. In ...
1
vote
0answers
31 views

Minimum Bounding Box by Area using ArcObjects

I'm trying to calculate the minimum bounding geometry by area for a polygon in arcobjects. I know that the the MinimumBoundingGeometry class is exposed but I was hoping that this functionality was ...
3
votes
0answers
30 views

How to update a field in one geodatabase table via a join to another geodatabase table?

I have 2 tables in a file geodatabase and I need to update a field (via ArcObjects) in the first table with a field in the first. Basically, the equivalent to SQL Server's update statement: UPDATE t1 ...
3
votes
0answers
48 views

How do I check what type of mapsurround is on the map?

I want to have the program add a scalebar to the map, but only if there isn't one already on the map. The code below works for legends, but when I try to replace ILegend with IScalebar it doesn't ...
3
votes
1answer
52 views

Opening a featureclass not being the owner of the data in SDE

How can you open a featureclass if you are not the schema owner but have been given privs to select or view the data? So given a name of a featureclass, say "STREETS" - how can I open this if I am ...
2
votes
0answers
43 views

Getting XY screen coords from ArcScene 3D point using ArcObjects?

I already know how to convert screen point (X,Y in pixels) to 3D point: ISceneGraph pSceneGraph = m_pSceneHookHelper.SceneGraph; IPoint pPoint; pSceneGraph.Locate(pSceneGraph.ActiveViewer, X, Y, ...
2
votes
3answers
70 views

How to convert PCS based point X/Y into GCS Lat/Lon using ArcObjects

There are so many permutations of questions I've tried to find the answer to my question from various sources, but I have yet to actually find an answer the way that makes sense to me (and works). ...
8
votes
2answers
122 views

Run ArcGIS 10.1 application on 10.2

I support a .NET application that has been compiled on a PC with ArcGIS 10.1 installed. The application comprises a user interface and an ArcGIS desktop extension, plus an installer assembly that is ...
3
votes
0answers
80 views

An unhandled exception of type System.AccessViolationException

I am trying to upgrade a desktop extension from ArcGIS 10.0 to ArcGIS 10.2. I am getting this error: An unhandled exception of type 'System.AccessViolationException' occurred in GIS.Metadata.dll. ...
2
votes
0answers
63 views

Add WMS Layer into map using Arcobjects

I am going to add a wms layer to my existing map.I use this code: public load_wms(ESRI.ArcGIS.Controls.AxMapControl mapcontrol) { // Create an WMSMapLayer Instance - this will be ...
1
vote
1answer
44 views

How to add an IFeature to the Map and zoom to it ?

I have an ITable i cast it to an IFeatureLayerDefinition after casting it to an ILayer then to an IFeatureLayer, then i used my IFeatureLayerDefinition to get only one IFeature using the ...