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

Errors when creating a TextElement from ArcObjects

I am attempting to add some text in the layout view of ArcMap. I’m using the following line for the TextElement that I’ve found online from numerous places including ArcObjects Library Reference. ...
1
vote
2answers
122 views

Can SqlWorkspaceFactory connection files be created with ArcGIS Desktop?

With ArcObjects, I can use IWorkspaceFactory.Create I can create a connection file for a SqlWorkspaceFactory. Is there an out-of-the-box method to create the same file in ArcGIS Desktop? Update: I ...
1
vote
1answer
493 views

How to create windows form based tools as add-ins in arcgis 10.0 using vb2010

Here i am again with a query again. Let me explain the project layout first. 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 ...
1
vote
1answer
66 views

ArcObjects- IBorder.GetGeometry() in Python

I am trying to get geometry of frame border trough IFrameElement.Border. I do receive IBorder object, which has .GetGeometry() method. How do I use this method to get geometry of the border? I can ...
1
vote
1answer
254 views

Getting Coordinates from a feature with VBA

Is there a way to get the longitude and latitude coordinates from a feature class? I have some code which can select the first layer in the Table of Contents. I want to be able to get the lat./long. ...
1
vote
1answer
90 views

How to get the Area of a Polygon with a known SpatialReference in arcobjects?

This is what I tried so far: IGeoGraphicCoordinateSystem gcs= _spatialReferenceFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984); ISpatialReference standardRef = ...
1
vote
2answers
45 views

Can I convert an ISegmentCollection to an IEnumFeature?

I would like to try to call the function, IFeatureConstruction.SplitPolygonsWithLines( ); The 4th arg is a type IEnumFeature, I have an ISegmentCollection. Can I convert ISegmentCollection to an ...
1
vote
3answers
535 views

How to change feature color?

I have feature (polygon) was gotten by spatial query from the map. How to change its color? I used this code but it didn't work IMxDocument mxDocument = application.Document as IMxDocument; ...
1
vote
1answer
248 views

ESRI Raster Remap with Decimals

I have a requirement where the user would like to see the output value in a raster as a decimal. The user will input a series of ranges with a cost associated to them. For instance 0-5, 1.20 ...
1
vote
1answer
180 views

SDE FeatureClass Granting and Revoking Privilege with ArcObjects

Q: 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 ...
1
vote
1answer
225 views

IQueryFilter where Clause quering two feature class at a time

I need to query two feature class at the same time using IQueryFIlter. For eg - FeatureClass -- A has field OBJECTID FeatureClass -- B has field OBJECTID what i am tring to do is -- IQueryFilter ...
1
vote
1answer
614 views

How to get polyline out of multipart feature using ArcObjects C#

I've got a polyline feature class and I've identified the first feature that is a multipart feature. I now want to find out which of the paths of this multipart feature intersects with a point. Up ...
1
vote
2answers
238 views

How to write a file in an Server Object Extension (SOE)

I would like to create a file with an ArcGIS Server Object Extension and return the url. Is this possible? Where would I write the file? I'm working with .Net, IIS, and AGS 10.1.
1
vote
1answer
146 views

What is the preferable value for setting tolerance for selecting a feature

I know it's really a basic question. But I am really confused about this. For selecting a point feature by mouse click, we need to set a tolerance value to create the envelope. And here is the problem ...
1
vote
1answer
268 views

Problem in splitting and removing Polyline

I am stuck at a problem for weeks, Please Help!!! I am making program in C# Here is what I need to do --- I have two polylines that are intersecting with each other at some points. I want to delete ...
1
vote
3answers
1k views

How can I permanently reorder fields in a feature class programmatically with ArcObjects, 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
1answer
218 views

ArcGIS10 VBA requires library references

I just upgraded from ArcGIS 9.2 to 10.0, and I'm trying to create some tools using VBA. It doesn't recognize any of the ArcObjects Classes, Interfaces, or Constants unless the reference includes its ...
1
vote
1answer
913 views

Getting error in applyEdits function for ArcGIS

I have been trying to add an entry to a featureLayer and in want to get a callback from this so I can update another field in it. below is my code clkListenerAddFeature = dojo.connect(map, "onClick", ...
1
vote
1answer
110 views

How to get 'IGraphicsContainer' from the map?

I tried to get IGraphicsContainer from Data View (active map) using FocusMap, ActiveView IGraphicsContainer graphicsContainer = (IGraphicsContainer)neApp.Document.MxDocument.FocusMap; but the ...
1
vote
1answer
62 views

Store global reference to a service/object

In developing with ArcMap, is there any way to register a service that can be used during the life-cycle of a document- for example to do something like: C# .NET ...
1
vote
1answer
66 views

meaning of createObject(Point.getClsid())

What actually does the createObject(Point.getClsid()) do?Does it create a new Point Object,and return the class id of the Point.Does it mean that each point created will have the same class id. I ...
1
vote
1answer
511 views

Implementing Custom Selection Tool (Adding to current selection) with ArcObjects

I am trying to implement a custom selection tool in ArcMap 9.3.1 that is functionally similar to the default ArcMap selection tool with "Adding to current selection" enabled. ie. the user can click to ...
1
vote
1answer
490 views

Custom C# tool populate field combobox parameter from layer parameter

I'm creating a custom tool for arcmap toolbox where user select FeatureLayer in one combobox, and in next combobox user can select a field from selected FeatureLayer. FeatureLayer combobox fills ...
1
vote
1answer
297 views

Dealing with overlapping grid (and graticule) labels using ArcGIS Desktop?

I do have 3 grids made by Grids menu in data frame properties. I do need them to display in certain layout and also to behave accordingly to couple of rules (overlapping issues), so I can automate my ...
1
vote
1answer
97 views

Is there anything obviously wrong with this hit test code?

I want to know if the IPoint of the mouse position is hitting an IPolyline, I wrote this code, and was optimistic that it would work, but it always returns false. IPolyline poly1 = pc1 as ...
1
vote
1answer
395 views

Obtaining friendly names for ArcMap layer data types

Using ArcObjects, is there a way to programmatically obtain the "friendly name" for a layer's data type as seen in the ArcMap Source tab for layers in a map document? e.g.: File System Raster ...
1
vote
1answer
116 views

Listen to edit events

I recently started working on ArcMap. I want to make some changes to the edit tools. For example I want to prevent the user from using the sketch tool when the time is between 1pm and 2pm But I ...
1
vote
1answer
2k views

Writing In-memory IFeatureLayer to Shapefile using ArcObjects (Engine SDK)

I've been working on this for a little while now, and can not seem to get this thing working. I've managed to export a geodatabase feature class and shapefile to a shapefile, but what I'm struggling ...
1
vote
2answers
909 views

Getting the workspace from IGxDialog:DoModalSave

I'm writing an application that allows a user to save data into a table in a variety of formats: dBase, File or Personal Geodatabase, or SDE. I'm trying to see if there's a way to determine what type ...
1
vote
1answer
502 views

How to determine if a LYR file has more than one Layer using ArcObjects?

In using arcpy, I have found that there are just a few lines of code needed to get a list of layers in a LYR file if more than one layer exist. How can I accomplish this same feat using ArcObjects in ...
1
vote
2answers
346 views

use existing function in arcmap use VBA in Arcobjects

I have a UI tool button, I would like to get and use the existing function (select elements tool) in Arcmap when I activate this button, does anybody know that how to call the existing function using ...
1
vote
2answers
159 views

Identity tool FID column name gets cut off

After my ArcMap extension executes the Identity tool, the resulting identity shapefile has FID columns for the "input features" FeatureClass and the "identity features" FeatureClass but the column ...
1
vote
1answer
520 views

Converting distance between nautical miles and degrees

This is such a basic question that I'm kinda of embarassed. Here is the situation: We have a certain funcionality developed that: Will check for a tolerance value (this input is given by the user ...
1
vote
1answer
1k views

How to get the “queried” value from attribute table and put it in a textbox?

I am new in VBA, I have a problem about querying an attribute table....: I have a table of a layer (wish.shp) with the fields: owner_ID, Value, Area. I made 3 textboxes in a userform, I input the ...
1
vote
1answer
104 views

Merge column data with a IFeatureClass

I have a points shapefile with City, State, Zip columns. I want to merge the column data together into a new column containing: City-State-Zip (with the hyphen). Can I merge column data like this ...
1
vote
1answer
346 views

How to Create and Rotate Raster Dataset using ArcObjects?

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

How to merge several tables/feature classes into single geodatabase object in ArcObejcts?

My project is ArcGis extension, which uses a specific set of tables and feature classes. I want that this structure to behave like single geodatabase object, so user cannot delete part of it's schema. ...
1
vote
1answer
104 views

Named ITable removal

I am dynamically creating a join between a GeoFeatureLayer and an external ITable derived from a SQL query and opened with OpenQueryClass(). It works. Now if I could only delete the Join!? But even ...
1
vote
1answer
250 views

Dynamic defining of transformation type for ISpatialReferenceFactory.CreateGeoTransformation call

Suppose given a point (IPoint) in some coordinate system. Required to transform it to another coordinate system. If both of coordinate systems are predefined, we can use IGeometry2.ProjectEx with ...
1
vote
2answers
516 views

intersection between a geometry and a layer in Arcobjects VBA

i have to make an intersection between a polygon and a layer of parcels, the polygon used in the clip is not belonging to any layer and the result of this intersection should be all the parcels inside ...
1
vote
2answers
793 views

ESRI Desktop Zoom to the feature

i find a feature by using IFeatureClass.Search then i want to show the feature on the screen.How can i do that ? is there a zoom interface or else ?
1
vote
1answer
223 views

Check if a land parcel (polygon) has access on a road or not

I have a feature layer with land parcels as polygons. Polygons (land parcels) are either adjacent in all its around sides by other polygons but some of them have a road a which is not actually a ...
1
vote
2answers
540 views

Opening a custom model's geoprocessor window with ArcObjects

I have developed a custom model using ModelBuilder in ArcGIS, and I would like to use a .NET Base Command to open the geoprocessor parameter window for this tool so the user can enter their ...
1
vote
1answer
335 views

If a shapefile with geometry esriGeometryPoint is valid is it guaranteed to have a non null featureclass?

I have been given a point shapefile but it's feature class is null. I haven't seen this before so I'm wondering if the data is bad or if it's something I need to handle with code. //I was using this ...
1
vote
1answer
575 views

Adding an AddIns.Button to an Add-In Menu

I know the title sounds unwieldy but as I am beginning convert an existing COM interface to Add-Ins, I am having trouble adding a button to a root menu. I have an AddIn.Button that is used both as a ...
1
vote
1answer
310 views

Can I listen to the ICommandBar or ICommand OnClick event?

I have an ArcMap extension and I'm listening to the IEditEvents. When the OnChangeFeature, OnCreateFeature or OnDeleteFeature event is called, I want to know if it came from the "merge(Editor_Merge)" ...
1
vote
1answer
434 views

How to collect the graphics element drawn on a graphics layer?

The graphics element may consist of point, circles, polygon, free hand line drawing or marker symbols. I m using arcobjects.
1
vote
1answer
103 views

Configure SoundEx in ArcEngine

Is there a way to configure SoundEx properties in ArcEngine? This query: "100 Fairvew Rd returns "100 Fairview Rd" But this query: "100 Farview Rd" returns no results Is there a way to make the ...
1
vote
1answer
223 views

Extent in ArcGlobe

Does anyone know if it's possible to get an Envelope/Extent in ArcGlobe based upon what's visible on the globe. For instance, I'm looking to be able to zoom in over the state of Pennsylvania and get ...
1
vote
2answers
1k views

How do you update the ArcMap 10 Statusbar from an AddIn?

I'm using this statement in an add in to update the first pane of the ArcMap statusbar: ArcMap.Application.StatusBar.set_Message(0, message); When the method is called, no exceptions are raised. In ...