ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products, ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.
1
vote
1answer
86 views
How to set a color for a rectangle?
I had drawn a rectangle by adding element to graphics container like the code below:
IGraphicsContainer gc = mxDoc.FocusMap as IGraphicsContainer;
gc.Reset();
IRectangleElement rectangleElement = new ...
5
votes
0answers
150 views
Plugin Workspace: when to close an OleDbDataReader?
I'm developing a plugin workspace for ArcGIS. Internally, the plugin uses an OleDBconnection. All of the sample code I see seems to stress the importance of closing and disposing the connection.
...
4
votes
1answer
58 views
Cannot use a SnapAgent alone?
I'm trying to use a standalone snap agent. Is that not possible?
Here's some code:
// instantiate these agents.
_snapSupportAgent = new FeatureSnapClass();
...
2
votes
1answer
110 views
How to create multiple dockable windows?
I am building an add-in and I have several different windows, which I open with the code below. This works fine. However, how can I create the same window n times?
UID dockWinID = new UIDClass();
...
0
votes
0answers
25 views
How to capture the “OnFeatureChange” or “OnFeatureChange” for a parcel in a cadastral fabric?
The normal "OnChangeFeature" and " OnCreateFeature" don't fire when editing in a cadastral fabric and I'm looking for similar events where I can hook into editing events that are occuring for ...
5
votes
1answer
95 views
how to capture the clicked point before moving a vertex
I need the location of clicked point before moving a vertex.
IVertexMoved event will provide me the coordinates of the point after vertex is moved but I need before moving.
Please help.
Regards,
...
0
votes
0answers
42 views
Code for Transferring into Python from ArcOBjects Program? [duplicate]
Possible Duplicate:
Calling arcpy/python from .NET?
I wrote my program in ArcObjects at the beginning because I needed a form. Now when the Map and Cancel button are hit I need to move into ...
3
votes
1answer
143 views
How to get X and Y coordinate values of the map?
I want the upper right and lower left coordinate of the exposed portion of the map, and for the whole map.
What is the way to do this?
3
votes
1answer
170 views
How to programmatically clear all layers from data frame?
I'm trying to create a button using VB.NET and ArcGIS 10 to clear the layers of my data frame.
I know how to add layers, but I don't have any idea on how to delete/clear them.
Any suggestions?
...
0
votes
0answers
61 views
MxDocument_OpenDocument() Question [duplicate]
Possible Duplicate:
How to define Subroutines and functions?
I know Visual Basic but I am not familiar with the ArcObject language. I am trying to open a form when my MXD is opened. I have ...
3
votes
1answer
73 views
OGIS Ole Db provider sample with read/write capability
I'm trying to determine what level of effort would be required to develop an OGIS Ole db provider for ArcGIS.
There is a sample that is read-only. I would like to be able to edit featureclasses in ...
2
votes
2answers
62 views
How do I reach a layer inside a GroupLayer?
I am having problems in ArcObjects. I am struggling to get to the individual (feature-)layers inside a GroupLayer. Does anyone know how to do that ?
0
votes
1answer
36 views
GxFilterWorkspace allows a folder that is not a IWorkspace or IGxDatabase
I am trying to open a ArcGIS file browser. And For this, I used IGxDialog interface's DoModalOpen method. To specify what the user can select using a GxDialog browser is based on the filters ...
1
vote
1answer
157 views
How to change the view from layout view to data view using c# code in ArcMap?
How to change the view from layout view to data view using c# code?
2
votes
1answer
92 views
Why IEnumFeature in ArcObjects returns duplicate features?
During development of ArcGis AddIn I've found strange behaviour of MapSelection when there are a lot of selected features. When I tryed to get selected features I've received duplicate features. So ...
1
vote
1answer
45 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 ...
0
votes
0answers
31 views
How can i fix the error of IApplication in Visual studio
I want to use IApplication interface in my program . but when i run my code, an exception occured in visual studio . i create an object from IApplication (IApplication paap) but i can't use it. help ...
-1
votes
1answer
90 views
How to get the nonspatial tables in the TOC into a combobox in ArcMap?
I'm new in using Arcobject . i'd like to set dbf of ArcMap TOC to the Combobox Items.
How can i set dbf files to items of combobox using C# programming and Arcobject ?
0
votes
0answers
53 views
How to display font with UTF-8 coding charset in MapControl (C#) ?
I can display Unicode font without error. But, I got font error when trying to use UTF-8 font.
Are there anyone know how to fix it ?
I used below statements to set font for Text:
IFontDisp pFont = ...
2
votes
3answers
242 views
Removing duplicate rows from a shapefile
I would like to write some c# code to delete duplicate rows from a shapefile stored in a folder.
Can anyone provide me with an example or pointers on the best way to attempt this, please?
0
votes
0answers
39 views
Possible to manipulate data in a postgres database with psql using JDBC or Python's psycopg2 with something else?
I ultimately want to manipulate data in a postgres database programmatically, and I am much more comfortable programming in Python than Java, but I'm not sure whether arcpy can ultimately use psql, ...
0
votes
0answers
51 views
Zoom a line feature based on two points on the line using vb6?
I would like to zoom certain part of features using vb6 code. It is not the full extend zoom. In details say several lines are selected, this may be a stretch of a river or road. If I use full extend ...
2
votes
1answer
167 views
How to draw a rectangle a the map using C#?
I have two points, Ipoint upperRight; and Ipoint lowerLeft; points.
from the previous points i can get the height and the width for the rectangle.
How can i draw a rectangle on the map?.
I think i ...
2
votes
1answer
61 views
How can I multiply rows with a number using C#?
I have a dbf with a field named "ppa" .the type of ppa is double. users enter number (for example 0.023) in a textbox and select the dbf in a combobox . then click Run and program multiply 0.023 ...
2
votes
1answer
47 views
Should I use thread lock when implementing Enabled void in ArcGis Command?
I've noticed that that ArcGis Commands are activated asynchronously. So I supposed that there is a chance to corrupt memory without using thread locks when overriding Enabled void of custom ArcGis ...
2
votes
2answers
317 views
Problem creating polygon features using ArcObjects / ArcGIS 10
I need to create a grid of polygons. Each polygon is rectangle, thus has 4 corners (vertices). When I create polygon features using ArcObjects they seem to have wrong geometry, which results in wrong ...
1
vote
1answer
66 views
Having trouble setting up Eclipse for ArcGIS 10.0 Java development
I'm trying to setup Eclipse for ArcGIS development. I've been reading for days and weeks through the documentation and through the forums here and elsewhere. It seems that no one has this same ...
1
vote
1answer
55 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
3answers
106 views
How to sort data after using uniquevalue from IDataStatistics?
How to sort data after using uniquevalue from IDataStatistics? The problem is I am using ArcGIS 9.3 vb6.
Edit:
Thanks kenbuja for the code. It will be useful. In details what I am trying to is this.
...
2
votes
1answer
152 views
How to display custom context menu during create feature task?
I have a created a custom context menu using ICommandBar and am displaying it on create feature mouse-down right click. I am constructing a point collection on each mouse down and then creating a ...
1
vote
1answer
276 views
Is there any way to set polygon features fill color and outline programmatically?
By some process I am creating a polygon feature layer. Before adding the layer in the map, I want to set polygon's fill color to no color and set polygon's outline color and width. I am working with ...
1
vote
1answer
65 views
How to programmatically Pause the drawing of the Map?
In ArcMap, there is a button to Pause the map's drawing. How do I programmatically call it from ArcObjects Code, before and after my heavy code runs?
4
votes
1answer
100 views
Turn off field programmatically in ArcMap via VB.Net
I'm creating an addin button in Arcmap via VB.net that when clicked, runs the identify tool. But I want only selected fields to appear in the identify dialog. My idea is to hide the unnecessary fields ...
3
votes
1answer
70 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
177 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 ...
6
votes
2answers
184 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
188 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?
0
votes
0answers
112 views
Problem building raster attribute table in ArcObjects
We are converting some polygon features to raster using ESRI.ArcGIS.GeoAnalyst.IConversionOp. The conversion is based on an integer field and the output raster is being correctly produced with integer ...
3
votes
1answer
116 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
76 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
64 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 ...
1
vote
1answer
144 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
125 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
115 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
131 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
217 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
99 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
93 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
166 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
131 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 ...

