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)

3
votes
2answers
1k views

Finding fields in Feature

I have a program that has to loop throug a very large amount of features. I have created a wrapper for the feature. This made me think: How expensive is the Fields.FindField method? Would it be faster ...
1
vote
0answers
261 views

topology rules for structuring topology data to get line feature as topoparent in topology graph

i Created topology graph of a polygon feature and i copied geometry of topology edges into line feature class,and topology nodes into point feature class i created topology layer containing ...
2
votes
1answer
357 views

Using IDocumentEvents_Event from a .NET 4 assembly within ArcMap

Are there a known issues when working with events from .NET 4 COM assemblies within ArcMap? For example, when using IDocumentEvents_Event from a .NET 4 assembly in ArcObjects, the event appears to ...
5
votes
1answer
248 views

Stubbing IFeature for unittests

I am trying to stub an IFeature with RhinoMocks, but I am having so much trouble doing it. Does anyone have experience with it?
3
votes
2answers
837 views

Using Arc Objects to collapse a layer in the map TOC

I have the following snippit of code to perform this. However, it doesn't do anything to the layer in the TOC on the map that gets generated from this code. When the layer is created and the map ...
2
votes
1answer
1k views

IFeatureWorkspace.CreateFeatureClass() error

I am trying to read a csv file straight into a set of new feature classes within a new file geodatabase, but I am getting the following stack trace when it fails: Attempted to read or write ...
4
votes
1answer
751 views

Checkout Spatial Analyst extention, ArcObjects code

Update After investigating more closely the CODE 2 sample below (at the end of this post), it does check out spatial analyst (sa) extension, however it does not reflect it in the Tools>Extensions ...
5
votes
1answer
809 views

How to create adjacency matrix of topology graph of arc map for shortest path?

I have created a topology graph of a polygon feature and I want to find the individual FIDS of the lines of the polygon. I want to construct an adjacency matrix to create the shortest path. How can I ...
1
vote
1answer
451 views

Get geometry of a Line Callout

How can I extract the geometry of a line callout and the border of an annotation featureclass in ArcGIS desktop. I want to transfert those to a separate featureclass. I'm able to get the Anchor point ...
8
votes
1answer
2k views

Editing a shapefile in ESRI ArcMap (programmatically)?

Is this something that can be done? For instance if I created an overlay on a map and saved it as a shape file, I want to go and edit this (pre-existing file.) overlay...Either add points/remove ...
3
votes
1answer
515 views

save IGeometry to disk as a Layer file

How can I save an IGeometry to disk as a Layer file? ArcEngine 10, C#, VS2010 Edit 1: With Jason Scheirer 's suggestion I managed to convert a point into a shapefile - and I'll post the code here ...
1
vote
1answer
422 views

Getting ISpatialReference from ArcObject mapcontrol in VBA

I am working with ArcObjects and ESRI for the first time, and I am trying to do what is probably a simple task. I have a map control in VBA that is associated with a mxd. I have a table with XY ...
3
votes
1answer
573 views

Problem setting IActiveView extent

I'm having a problem when setting the IactivewViews extent. I have done it the same way on other places and it does work. In here, it just throws me a LoaderLockException. // OLD CODE ...
3
votes
1answer
450 views

problem with building WKB from a geometry

I have some points in an array,stored by user click on the map in ArcMap,and I want to build a polyline and create a Well Known Binary sequence. I use IPointCollection interface to add this points to ...
2
votes
3answers
930 views

Arc Objects and non-spatial table

I am a new Arc Objects user, with little ESRI experience. We are using VBA to create a spatial report on a Map Control using a mdb table. The mdb table contains a Lat and Long field, and this data is ...
3
votes
1answer
459 views

Null values in plugin data source

How do you appropriately setup a plugin data source to allow for null values (in .NET - C# preferred)? I'm currently setting up a field using: field.Type_2 = esriFieldType.esriFieldTypeSingle; ...
1
vote
2answers
168 views

Accessing PAT,NAT of coverages using arcobjects

I want to access the polygon attribute table (PAT) and node attribute table (NAT) of an arcgis coverage using arcobjects VBA, is this possible?
3
votes
2answers
407 views

how to convert personal geodatabase feature class to coverage using arcobjects

how to convert personal geodatabase fatureclass to coverage using arcobjects with vba pls provide me any documentation or samples.
2
votes
1answer
345 views

Using custom dlls in multiple arcmap applications

I'll do my best to ask my question. I develop a number of COM-based libraries for use within custom arcmap dlls (using ArcGIS 9.3.1 SP2, .NET 2008 C#). These would include a custom arcobjects "helper" ...
12
votes
5answers
3k views

What are the rules for releasing ArcObjects from memory in .NET?

Do I need to release each object? Is some memory management handled for me? ArcEngine 10, VS2010 C#
10
votes
0answers
391 views

Scale in printed map (mxd) is different in code to manual printing

This question is related in part to a previous question I have asked. I have tried printing an A3 mxd with the Print Active View code as published by ESRI and have changed only one line of code and ...
6
votes
2answers
435 views

Exporting ArcGIS plugin data source to Shape

I have implemented a plug-in data source for ArcGIS. In my case, the format read by the plug-in may contain point, line and polygon features within the same file. In my implementation the data file ...
6
votes
5answers
934 views

Troubleshooting ArcObjects performance problems

We have developed a relatively complex geoprocessing routine using a C# / ArcObjects (COM) / ArcGIS Server 9.3.1 / ArcSDE 9.3.1 / Oracle 11g stack. Running the routine on a complete dataset takes ...
2
votes
1answer
621 views

Disabling/overriding internal arcmap commands with vba

I am creating a template for ArcGis JTX. This is a mxd file, with a vba onload event handler which removes some functionality from vanilla ArcMap. I'm stumped on one problem: double clicking on a ...
1
vote
1answer
1k views

Feature Cursor Count on mutiple layers

I would like to get a total count of multiple layer features (defined) within the ArcMap view extent. The code works fine with one layer but when I add a second or third layer with an "OR" operator I ...
0
votes
1answer
1k views

Change color of shape in Layer File

I currently have a layer file - in this case one of the United States. This layer contains a shape for each state so if I were to open the TOC Control and expand the "United States" I would see ...
3
votes
2answers
625 views

Printing MXD at A3 always prints at B5

Context ArcGIS 9.2 Build 1500 ArcObjects Windows Forms application running outside of ArcMap, similar to ArcEngine product. Accessing mxd to print out page layout to A3 paper. Mxd is saved with ...
5
votes
1answer
260 views

When is it better to use 64 bit File GDB access?

The beta 2 release File Geodatabase API includes 64 bit support. Esri says arcobjects is still the "preferred" method to interact with the file gdb. However, arcobjects has no 64 bit support. ...
0
votes
4answers
856 views

MFC Dialog Application using ESRI ArcEngine 10.0

I'm new to ESRI ArcObjects and I'm trying to create a basic MFC dialog application. I add the License and MapControl to the dialog resource. I compile and run the app, but I get the following runtime ...
1
vote
0answers
451 views

ArcObjects: How to get the size of the formatted text part only of a TextElement whose text contains formatting tags?

I'm working in ArcGIS 10.0 and Python 2.6.5. I have a string, say 'mMx', that I want to enter into a TextElement (in the data view). The lowercase letters are to be substituted with a graphical ...
5
votes
2answers
793 views

How to set a map's extent to the envelope in miles

I want to set extent of the map into envelope which sizes are defined by user in miles(kilometers, whatever human readable unit). How to make it? I wrote the following code: static void ...
3
votes
0answers
412 views

IDatasetContainer2 CreateDataset method fails after upgrading to ArcObjects 10 [closed]

I have a Network Analyst routine that worked for 9.3 and does not work with 10. I was closely following the example at: ...
3
votes
3answers
689 views

How to use ArcGisServer from Engine?

MapServerQuerySublayer (Version 10) does not seem to support setting a definition query, although according to documentation it should using ImapServerSublayer2.LayerDescription as IMapserverSublayer. ...
4
votes
2answers
923 views

Publish MXD to server in ArcObjects C#

I have an MXD that I would like to publish to an ArcGIS server using C# ArcObjects (preferably as an MSD). I have been unable to find anything regarding this. Essentially I would like to implement the ...
6
votes
4answers
2k views

Programmatically edit/update metadata in ArcGIS 10

Has anyone succeeded in programmatically updating metadata in ArcGIS 10? Considering using Python/arcpy but ArcObjects (C# or Python/comtypes) is also a possibility. I need to update both the FGDC ...
3
votes
0answers
232 views

Alternative to IMapServer2.ExportScaleBar

Does anyone know a good alternative to the IMapServer2.ExportScaleBar function? I want to do essentialy the same task, but outside the ArcGIS Server environment. For a given map scale, predefined ...
5
votes
2answers
1k views

Where is the feature cache in ArcMap?

It seems that ArcMap keeps a cache for every layer which contains features data and every time wants to refresh layer or apply a change,uses tis cache.As I found,when ArcMap wants to draw a layer from ...
3
votes
1answer
773 views

Legend text wrapper (ArcGIS)

I'm interested in wrapping long legend text (in ArcGIS 9.3.1) so that the text does not exceed the layout extent. I would like to call the "GetFormattedString" Function within the ...
5
votes
2answers
3k views

No constructor defined?

In my C# Console Application, Visual Studio 2010 highlights new FeatureClassNameClass() in my below line of code and states "ESRI.ArcGIS.Geodatabase.FeatureClassNameClass has No constructors defined" ...
1
vote
1answer
215 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
711 views

Getting an empty geometry when retrieving the envelope of a GroupElement in ArcObjects: what might be wrong?

I am working in ArcGIS 10.0 (ArcMap) and Python 2.6.5 and in the Data View. I have an IGroupElement3 to which I add a TextElement and up to several RectangleElements. I want then to retrieve the ...
3
votes
3answers
1k views

How to select the vertices from a polygon?

I am writing some VBA code to extract vertices from a polygon. I would like to ask, how to select the vertices from a polygon ? Regards Gary
0
votes
0answers
187 views

how to write Topology Graph Edges geometry to polyline feature class

i have created topologygraph of a polygon feature . and iwant individual ids of polylines i want to write Topology Graph Edges geometry to new polyline feature class any samples OR documentation ...
3
votes
1answer
525 views

Setting CQL_FILTER on WMS in ArcGIS?

Is it at all possible to use a CQL_FILTER on a WMS service in ArcGIS? Ideally we'd be able to programatically change the CQL_FILTER parameter in the WMS URL.
3
votes
1answer
220 views

Force a new AddDataDialog to open at a defined directory path

Is there a way to force the AddDataDialog to open to a specific path? I created a tool that when clicked on a specific feature will open the Add Data dialog, but I need it to open starting at a ...
5
votes
4answers
657 views

Is accessing an mxd from an Msd based SOE safe?

I have a server object extension (SOE) that returns a list of legend items based on symbols that fall within a specified extent. This allows the client to update a legend to reflect on the symbols ...
1
vote
1answer
133 views

What's the ArcGlobe equivalent of BaseDynamicLayer

I'm attempting to have a dynamic layer in ArcGlobe but obviously BaseDynamicLayer is only for ArcMap. I'm looking for something that has similar functionality where I can Display data dynamically and ...
2
votes
1answer
218 views

Persisted member in an application extension does not save to stream

I have an ArcMap extension in which I'm trying to persist a string value. When the document is saved, the public member m_LayerName in the application extension class is not being persisted. Either ...
5
votes
1answer
324 views

GDAL and ArcObjects in The Same Project - A Recipe For Disaster?

I am working on a project where I am attempting to use GDAL and ArcObjects together in the same project. Although the project itself is nothing more than a toolbar in ArcMap, I would like to use some ...
1
vote
2answers
436 views

ArcGIS: Can I modify an existing edit tool to make a new tool?

I want to create versions of the edit tools that will add a parallel, offset segment each time I add a segment regularly. Is it possible to put a wrapper around the existing tools? Or otherwise add to ...