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
3answers
2k views
Running EsriRegAsm on Windows 7 without running as Administrator?
Even though I'm logged in as a user with admin privs, Windows 7 still won't let me register with EsriRegAsm.exe. I need to explicitly run as Administrator.
Is there some way to configure a machine ...
1
vote
1answer
311 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.
0
votes
2answers
193 views
Can i change the color/font of map tool tip through arc objects for desktop application?
I want to have custom format of tooltip of features on axmapcontrol.
3
votes
1answer
197 views
Force ArcCatalog to refresh TreeView and View after programmatically creating a table
I'm programmatically creating a table in a geodatabase and am trying to force ArcCatalog to refresh the display to show the new table. I've tried the following which does not work:
Dim gxApp As ...
4
votes
4answers
927 views
Exploring ArcObjects through C# or VB from Python background
While I understand that this may be off topic to an extent, I am in a bit of a bind and could use some help directing my thought process and research.
I have little programming background aside ...
4
votes
2answers
803 views
Get Database Table Name From Layer Name in ArcObjects
I am using ArcObjects v10.0 with a SQL Server 2008 database. Given the name of a Layer, is there a way for me to extract the corresponding name of the database table that represents that Layer?
The ...
3
votes
1answer
503 views
Deploying Projects ESRI.ArcGIS.ADF vs ESRI.ArcGIS.ADF.Local
I have a project which implements BaseTool and BaseToolbar. For those of you who don't know already, the name of the dll containing these base classes has changed from ESRI.ArcGIS.ADF to ...
3
votes
2answers
172 views
How can I implement Persistance in a Layer Extension?
Last time I checked, arcgis doesn't honor IPersistVariant in layer extensions. Rather advanced code has been provided here showing how to implement IPersistStream.
Is there something simpler?
1
vote
1answer
214 views
How to work with locators in ArcGIS 10.0
I wrote my locator class which grab features from my web service. I picked it up in the ArcMap and now I can perform a search in the geocoding toolbar.
The suprise for me is the way results of ...
3
votes
1answer
183 views
IFeatureClassWrite and ITableWrite doubt
I'm looking at these specific interfaces ITableWrite and IFeatureClassWrite.
I have a need to store some features (mostly a custom log) and I can't having them triggering my editor events (OnCreate, ...
1
vote
1answer
101 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 ...
6
votes
1answer
874 views
ArcObjects C#: Create Random Points fails with ERROR 999999: Error executing function
I am having trouble running some ArcObjects C# code that calls create random points. I would not be doing this in ArcObjects, but I am suffering with the same issue using Arcpy as seen here:
...
4
votes
3answers
1k views
Delete a feature data set in SDE 10 programmatically
Is there a way to delete a feature data set and all of its feature classes programmatically either by using custom code or pre-existing command line tools?
There is a tool provided by SDE called ...
2
votes
0answers
170 views
ArcGIS Desktop 10 - MyBase.UpdateBitmap()
I am changing one icon on my extension toggle toolbar in runtime using:
MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName))
This works fine but I get a border/highlight around my ...
2
votes
1answer
399 views
How to launch a tool when my button has been pressed
I use ArcGIS 10.0 and ArcGIS .net SDK. I created AddIn project which contains Tool:
<Tool id="AddSearchLocationPoint"
class="AddSearchLocationPoint"
category="Add-In Controls"
...
2
votes
2answers
450 views
how can i symbolyze a layer with graduated colors
can any one tell me how to use isimplerender interface to symbolize a polygon layer with graduated colors according to a value of a field such as "population"
...
2
votes
3answers
619 views
extract lat/long from screen when using British National Grid projection
Using ArcGIS 10, is it possible to click anywhere on the map (projected to British National Grid), but return the coordinates in WGS84 lat long? Alternatively, when will Streetview work with OS ...
6
votes
6answers
3k views
How do I activate a custom ITool from a form without having to add it to a toolbar? (ArcGIS 10 add-in development)
I'm working on an add-in for ArcMap 10.0 that adds a toolbar to ArcMap. One command (OpenModelessDialogCommand) button on that toolbar opens a modeless WinForms dialog, from which a tool (MyTool) can ...
3
votes
2answers
715 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
231 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
267 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
216 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
635 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
0answers
866 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 ...
3
votes
1answer
666 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
654 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
392 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
392 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
354 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
428 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
350 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
675 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 ...
0
votes
1answer
215 views
python and arcobject- whats next step …? [closed]
I import Arcobject into Python in ArcGIS 10 (http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python)
now whats the next step ? how can i use Arcobjects for programming in ...
3
votes
1answer
369 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
160 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
328 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
314 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" ...
8
votes
5answers
2k 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#
5
votes
0answers
273 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
400 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
777 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
483 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
784 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
497 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
236 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
723 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
369 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
642 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 ...
