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)

4
votes
1answer
154 views

How to use IDatabaseCompact.Compact() on an used IWorkspace, without permission denied

I am writting an ArcMap-AddIn with vb.net. I get an error when trying to compact my IWorkspace(mdb), the error is: COMException You tried to open a database, which was already opened by the ...
3
votes
2answers
646 views

How to find self-intersecting polylines using ArcObjects?

If I have a polyline, how do I figure out whether it is self-intersecting? I tried to use ITopologicalOperator.IsSimple Property, but it always returns true. Are there any ways of doing these kind ...
7
votes
2answers
453 views

How to export only some feature classes to xml using ArcObjects?

I need to export some of the feature classes to an xml file ("export xml workspace") quite often so I'd like to automate the process. I've found an example here how to export a feature dataset to an ...
3
votes
2answers
357 views

How to add point to a polyline?

I have a polyline, and i want to add point (vertex) on a specific distance, like two meters for example. How can i do that?
3
votes
1answer
209 views

C# Where to create GP service output files

How to get path of default scratch workspace(folder) using c#? I'm making REST GP tool, where you pass some input parameters, tool collects data, create csv files, and archive them. Then tool return ...
2
votes
1answer
121 views

How to make Plugin-DataSource Layers Editable in ArcMap(Arcobjects)

The .Net samples of the developer kit for ArcGis contains an example, that shows how a custom data source(Plugin Data Source) can be added as a layer in ArcMap. It is done by implementing interfaces ...
2
votes
1answer
135 views

How to unselect elements in PageLayoutControl (using C#)

I have a PagelayoutControl with the name: PageControl. And I added a text element into MapFrame (FocusMap) of the PagelayoutControl. If the text element and MapFrame are selected (by using the button ...
2
votes
1answer
215 views

ArcObjects bug in OID field duplication while duplicating feature class?

I have a shapefile with a column of type esriFieldTypeOID with the name FID and numbers from 0 to 5 (the first odd think is that ArcMap does not show a * next to the column name in the table view even ...
1
vote
0answers
246 views

Error when opening attribute table of a feature layer with a programmatically generated join

I'm creating a query table with IQueryDef and then using MemoryRelationshipClassFactory to create an inner join between a feature layer and the query table. Both the query table and the join are ...
2
votes
0answers
220 views

AxSymbologyControl via WindowsFormsHost in WPF (ArcMap Add In Project)

I need a way to offer the user a choice of color ramps for the ClassBreaksRenderer. I came across the AxSymbologyControl which was designed for WinForms. I tried also ESRIs (WinForms) example project ...
4
votes
1answer
374 views

ArcObjects IConflictsWindow3 not seeing version reconciliation conflicts

We are working on a reconcile and post add-in for one of our departments. I'm able to successfully complete the task if there are no conflicts or if I specify which version 'wins'. We would like to ...
5
votes
4answers
520 views

Need help to convert 9.3 code for registering .dll to 10.1

This is my code to register my DLL (im using ArcMap 9.3) Private Sub regDLL(ByVal dllName As String) Dim asm As System.Reflection.Assembly = System.Reflection.Assembly.LoadFile(dllName) ...
0
votes
1answer
230 views

The remote server returned an error: NotFound

Our Sliverlight application (using V2.4) make a call to custom GP Toool which executes huge process which last for more than 10 min (avg), but before that client gets timed out. After going through ...
2
votes
1answer
142 views

Union shapes which is not touching

I want to union two shapes which is not touching each other using Arcobjects. I do not want to perform small buffer on two shapes and union them . This is because when we apply buffer round buffer ...
2
votes
0answers
273 views

Creating a new map frame: Error HRESULT E_FAIL has been returned from a call to a COM component

I am trying to create a new map frame in the PageLayout Control. But I got the error: Error HRESULT E_FAIL has been returned from a call to a COM component at the method AddElement. Please see ...
4
votes
1answer
220 views

What needs to be done to downgrade a ESRI addin from 10.1 to 10?

I have created an esri addin which targeted ArcGIS 10.1, however I need to have the addin to work on ArcGIS 10, what needs to be done within my solution to get it working? I have checked the ...
2
votes
0answers
119 views

How to print two pagelayout on two sides at the same time ?

I am having a PageLayoutControl with name: PageControl1. I used below codes for printing it: public override void OnClick() { try { PrintDialog ...
5
votes
0answers
76 views

Can I verify that attribute indexes are being used in a query from ArcObjects?

We have some software as part of a larger project written using ArcObjects via .NET. This software migrates and merges data from multiple file geodatabases in one schema to a single file geodatabase ...
2
votes
2answers
323 views

Managing Data Driven Pages with ArcObjects

I can't find any resources on managing Data Driven Pages with ArcObjects. E.g.: is it possible to use ArcObjects (.NET) for the following tasks: Check if the current map document has enabled Data ...
1
vote
0answers
202 views

Zooming MapControl (Arcgis) doesn't effect?

I am trying to use the Zoom commands (Zoom In, zoom out) for a MapControl. But it doesn't make "Text elements" bigger (larger) or smaller. Please see my image. I used the below function to add a ...
6
votes
2answers
395 views

Error: can't display dash lines (broken lines) when zooming PageLayout

I am working with PageLayoutControl, its mapframe include elements: lines, texts. And I am getting an error when zooming: If I zoom the pagelayout to 100% ( smaller than 110%), it can display "Dash ...
4
votes
1answer
56 views

Why would running LocateFeautresAlongRoutes GP tool return null?

I'm currently using the LocateFeaturesAlongRoutes tool wrapper for C#/.NET for a custom tool I'm developing for ArcMap 9.3.1. I've been able to run this tool in ArcMap outside of code in a tool with ...
1
vote
1answer
227 views

ArcObjects 10.0: Adding Annotation Feature Class To Map

ArcObjects 10.0, SDE on MS Sql Server, Visual Studio 2010, C#.Net Using ArcObjects, I am able to add feature classes to the map with no problem. However, when adding an annotation feature class to ...
4
votes
2answers
534 views

How to select features that intersect but don't touch (using ArcObjects)?

So how do I do that? ArcMap's Select By Location selects also all features that touch, but I only need the ones that actually intersect the area. I currently use ...
2
votes
0answers
217 views

How to set the font size of ITextElement if only know Height of the text?

When I read text elements from a .dgn file. I only can get the "height", "length" attribute of the text (it doesn't have a "size" attribute) (example: total height = 0.9; total length = 8.6). I need ...
3
votes
2answers
293 views

How should I get a Raster out of ArcMap and into Google Earth (.kmz) with transparency

RasterLayerExportClass will only create a .png with a single value transparency, however there is a bug in Google earth which prevents this from working. The other export options don't support ...
3
votes
2answers
1k views

ArcObjects + comtypes at 10.1

Has anyone played around with using ArcObjects in Python at version 10.1? I am having all sorts of problems, such as TypeErrors when wrapping the ESRI OLB modules and AttributeErrors when attempting ...
3
votes
2answers
890 views

Getting Annotation Text Geometry as Polygon Using Arcobjects

How can i get the rectangle boundary of an annotation object using ArcObjects? Once we select an object on the map, there is a boundary as shown in the first picture. Also is there an option to get ...
5
votes
1answer
797 views

How to split a Polyline Geometry at a certain point in ArcObjects?

I have a polyline geometry and wish to split it into two different geometries, based on a given point on that line, in ArcObjects. I have tried to find out how to do this, but to no avail. I found ...
2
votes
1answer
100 views

How to output the ActiveView to a Jpeg image

I have an ArcGIS Desktop extension and I need to extract images from the map. How can I programmatically output the active view to a jpeg image?
2
votes
1answer
386 views

Get Type of Arcobjects objects

Trying to check the type of some Elements if they are (ITextElement , MarkerElement), when i try .getType() function it returns always "System._COM_object". How i could get the type of an object if i ...
2
votes
1answer
169 views

Get Annotations selection Arcobjects

i have annotations stored in mxd document, when i select some annotation , i tried to get the selection through graphics selection, so i got always the rectangle of the dataframe (because i'm working ...
2
votes
0answers
76 views

Recommendations on universal projection API or algorithm for ArcObjects?

As asked on the esri forum here, we are trying to convert a geometry from any spatial reference to any other spatial reference. We have tried the default IGeometry.Project(target_spatial_reference) ...
2
votes
1answer
189 views

Error in Symbol Selector Sample

This question can seems to be n00b, but really im stuck at running this Arcengine Sample code, then i got this error i'm looking for any working example of Symbol Selector. i'm working on XP SP3, ...
3
votes
1answer
1k views

How to add a layer file to an ArcGIS map document programmatically?

I want to create a feature layer from a layer (.lyr) file and add it to my ArcGIS map document programmatically. I am using C# and ArcGIS. I have a layer file and a shapefile.
14
votes
3answers
1k views

Algorithm to find out points of inflection for a polyline

I am trying to find out the points of inflection , i.e. points where the curves in a line start and end. If you look at the image, the green line may be a road or a stream, and the black points are ...
2
votes
1answer
563 views

How to create a new feature layer from the selected features?

I have a simple tool written in ArcObjects which takes features from a layer and does some processing on them. I use a feature cursor to loop through all the features in the layer. To perform the ...
0
votes
2answers
677 views

Unselect Individual Selected Features using ArcObjects

I've been stumbling around with this issue for a bit now and I can't seem to find any relevant answer for it anywhere else. In my Add-In built using .NET ArcObjects/C# with Arc 10.0 I would like to ...
3
votes
1answer
345 views

Cannot select a feature using ArcObjects because coordinate systems differ

I'm using ArcMap 10 and Bing Maps Road as base map. Then we have our adding which is programmed using C#. What I'm trying to do is to select a feature (A) that intersects another feature (B, from a ...
4
votes
1answer
702 views

How to declare ArcSDE workspace for Geoprocessing tool in ArcGIS 10.1 using ArcObjects and c#?

What is the proper way to declare an ArcSDE workspace for Geoprocessing tools in c# .net? I am using ArcGIS 10.1 SDE (MS SQL) on SQL Server 2008. I want to write code so that every night the server ...
1
vote
1answer
220 views

queryFilter whereclause - VBA to c# [closed]

I need some some with a queryfilter whereclause that is giving me a headache.. All it does is convert the search to uppercase and preform the search whether the result is uppercase or not (e.g. it ...
2
votes
1answer
128 views

How do I export circles from ArcObjects to WKB?

I have a small circle in SDE which I'm trying to extract through ArcObjects into well-known-binary (for later import into other systems). Using the IWkb interface I can obtain the WKB, but it comes ...
1
vote
1answer
475 views

Convert a FeatureLayer to graphics in Arcobjects

I want to convert a Map or FeatureLayer to graphics on Arcobjects 10.1, Any help or code examples Problem Solved this is the working code: private void Convert_to_graphics( IMapDocument doc) ...
1
vote
1answer
65 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 ...
3
votes
0answers
297 views

How to draw a rectangle graphic element (given feature and extents in meters) with ArcObjects?

I am trying to render a rectangle graphics box onto the map, given the center location of an polygonal feature and the extent dimensions (length and width) in meters. The feature has the spatial ...
1
vote
2answers
83 views

How to edit the position of a banner text's pointer?

I have build an ITool where one can add text (ITextElement) to the map. The user can choose the symbol from the ESRI symbology. There one can choose a symbol called "Banner Text" which looks like this ...
2
votes
1answer
327 views

Converting a Map to graphics and annotations

i want to export a map for later editing before print, so i thought about converting all the annotations and and graphics and save them in the .mxd map. when i export graphics after exporting labels ...
2
votes
1answer
377 views

Problem Initializing License for ArcEngine application

I have written an ArcEngine application using vb.net and Visual Studio 2010. When I initially started the code, I indicated an ArcInfo license was available during the project setup. This worked ...
0
votes
1answer
119 views

Problem with deploying addin

I have made a Button addin for ArcMap in Visual Studia 2010, but I don't know how to deploy it, I tried debugging it from ArcMap but nothing happens, Any help Please.. Thanks in advance....
0
votes
1answer
90 views

Unable to update integers in PGDB table field using ArcObjects

Dim pLinerow As IRow pLinerow = ptable.CreateRow pLinerow.Value(pLinerow.Fields.FindField("IS_CLOSED")) = 0 when this code is executed, the below mentioned error is returned, "Error HRESULT ...