1
vote
1answer
31 views

Is there a way to call the “Select By Location” dialog box and gain access to the parameters

In an application that I am developing using VB.Net with ArcObjects 9.3, I am trying to display the "Select By Location" dialog box in my code. I know that I can call it directly using the UID ...
1
vote
1answer
25 views

Concurrency and lock challenge in Nonversioned editing in ArcMap

I use a non version SQLServer geodatabse with geometry type for spatial data storing.To do so,I have registered all layers in SDE repository and geodatabase and ArcMap shows all layers and edit them ...
2
votes
2answers
29 views

Getting a list of ObjectID from a Selection Set Object using ArcObjects 9.3 in VB.Net

I am trying to get back a list of ObjectIDs from a selection set using VB.Net in ArcObjects for ArcGIS Desktop 9.3. I have been passing an object populated using the ".IDs" method from the ...
1
vote
1answer
60 views

IFeatureDataset.CreateFeatureClass Error

I'm working on a webservice in ArcObjects 9.3. It works fine when deployed on IIS, but when I try to debug some unit tests I keep getting the same error: The remote procedure call failed. ...
1
vote
0answers
48 views

IfeatureClass.searc(Iqueryfilter pqueryfilter, bool recy) is throwing external component has thrown exception [closed]

I am running my code to trace features approx 20 lacs and my code is working fine for 2 or 3 lacs features and after sometime it thrown external component exception. Please provide any code ...
1
vote
0answers
220 views

ArcGIS (ArcObjects) Windows 7 - 64 bit -support

I have been developing with ArcGIS Cross Platform C++ SDK (with Qt 4.8.2) on 32 bit Windows XP SP3 (development machine). I used to use MapTool Control within ArcObjects on the development machine. ...
0
votes
0answers
99 views

How to get The character spacing from a ITextElement arcgis engine 9.3 C#

i have a problem.I can set character spacing to a IElement as ITexElement like : TextSymbolClass pTextSymbol = new TextSymbolClass(); pTextSymbol.CharacterSpacing = 10 ; //etc ...
0
votes
0answers
184 views

Export From PGDB to ArcSde Using C#

I need help exporting a personal geodatabase Feature Class to an ArcSDE geodatabase using C# ArcObjects with ArcGIS 9.3. I just want to replicate the tool Feature Class to Feature Class ...
1
vote
0answers
50 views

Problem in VersionEdit4.Reconcile4 method

I had an standalone application in which i am getting all the available versions in the database. Based on user filter he selects multiple versions and reconcile it. if ...
0
votes
0answers
49 views

How to check a polyline is self intersecting [duplicate]

How to check weather a single polyline is self intersecting to itself. using arcobject C#
1
vote
0answers
188 views

How to get hold of the Activated Event for the ArcMap window?

I am using ArcObjects 9.3 .NET. In my ArcMap dockable window, I have a single element host hosting a WPF user control (That's the only means of using WPF for ArcMap extensions as far as I know). ...
1
vote
0answers
103 views

InsertFeature on a versioned layer [vba]

I am writing an application that takes data from an Excel Spreadsheet and loads it into an ArcSDE feature class. The Feature class is editable within ArcMap, but I am having trouble inserting a ...
3
votes
1answer
138 views

How to display point features w.r.t field values of a polygon file in arcobjects?

I have a point & polygon shapefile. Point file has a field namely, Type: atm,hospital,school etc... Polygon file has a field Zone: Zn1, Zn2, Zn3. There will be two combo boxes which will populate ...
1
vote
2answers
147 views

cast from IFeatureClass to ISchemaLock

I'm programming with the ARCGIS Java SDK, in Eclipse. I need to cast an IFeatureClass to an ISchemalock. This cast is supposed to be allowed. There is an example of this cast in: ...
1
vote
0answers
139 views

add an INDEX to an IFeatureClass with ARCGIS Java sdk

I want to add an index to a feature class. To do so, I used the very short and complete example given there: ...
2
votes
0answers
108 views

ESRI CreateGeometryFromWkbVariant creates CCW polygon

I am using ESRI GeometryEnvironmentClass that implements IGeometryFactory3 and I use the method CreateGeometryFromWkbVariant. For the same wkb, in ESRI 9.3.1 the returned polygon is oriented ...
2
votes
2answers
107 views

How to create `Workspace` without using `IWorkspaceFactory.Create`?

Can I create a Workspace without using IWorkspaceFactory.Create I am trying to create a Workspace without specifying it's parent directory, is that possible ?
1
vote
0answers
61 views

Joining a In_memory table with an SDE table

I have a in memory table that gets created, and want to join it to a table from SDE. I have tried the following code. Private Sub JoinTables(sdetable As ITable, inMemoryTable As ITable, joinField As ...
2
votes
1answer
200 views

How to move all elements of PageLayout to left (right, right, up, down..) 5 cm (C#) ?

Are there anyone know how to move all element (text, line,) of a PageLayout (in GraphicsContainer) to left (or right, up...) 5 cm using C# ? Thank you very much !
3
votes
0answers
414 views

How to change page size of pagelayout for printing custom size?

I have a A3 printer (size: 297mm x 420mm). But I am wanting to print my pagelayout with paper size is: 265mm x 380mm I tried to change the page size of my pagelayout to 265mm x 380mm by using the ...
5
votes
1answer
152 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, ...
2
votes
1answer
323 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 ...
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
0answers
272 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 ...
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 ...
6
votes
2answers
394 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 ...
2
votes
0answers
216 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
0answers
295 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
1answer
484 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
2answers
729 views

IFeature.Store seems to bypass edit sessions and cannot be rolled back. Why?

I'm working with ArcObjects edit sessions for the first time and am having some trouble with it. The C# code I am about to discuss is part of an ArcMap 9.3 extension DLL. My problem is that calls to ...
4
votes
1answer
410 views

Programatically take screenshot of map extent in ArcMap 9.3

Is it possible to programatically capture a screenshot of the current map extent (the map area with any active displayed layers) in ArcMap with the ArcObjects .NET SDK?
2
votes
1answer
462 views

Using IBufferConstruction to create single and multiple buffers (VBA and ArcObjects)

I need a bit of help with using the iBufferContruction interface, my overall goal is that the user clicks on the map, a graphic is created and then buffered,at multiple distances and then stored in a ...
1
vote
1answer
191 views

How do i get ArcObjects not to ignore a layer definition that has been set?

I am creating a simple text search application, where the user can enter an address search and the result appear in a listbox, which they can then select it and zoom to the address. Now the problem I ...
1
vote
1answer
700 views

How do I delete specific graphics on the map using arcobjects

I am writing a small application that allows the user to click on the map, and it will create 3 buffers (these are graphics using the IElement interface) at specified distances. What I want to do is ...
3
votes
1answer
317 views

Draw graphic on screen without requiring a double click to finish sketch

I am trying to get the user to draw a line(only 2 vertices) on the screen(just like the georeferencing link/spatial adjustment link). I got the below snippet from ESRI website which does give me a ...
0
votes
1answer
206 views

Creating a report from features that have been selected

I'm in need of some guidance, I have created an application where the users does the following workflow Enter Postcode Zoom to Postcode Create a buffer at specified distance Spatial Query to find ...
1
vote
1answer
331 views

Trouble trying to zoom to graphic (ArcGIS 9.3.1, VBA)

I am writing an application where one of the things it does is create a point then creates buffer (which is a graphic) at the specific point, what I want to do is when the buffer has been created, is ...
2
votes
4answers
930 views

How to distinguish between File and Personal Geodb workspace?

I am looking for a way - given an IWorkspace object - to check if it was created from a Personal-GDB or a File-GDB. I tried using IWorkspace.WorkspaceFactory to check if it's an instance of e.g. ...
3
votes
1answer
883 views

IFeature.set_Shape The coordinates or measures are out of bounds

I'm trying to add a point to my map, but something with the way I used shp2sde create caused me to have a incorrect spatial extent or something. So I'm getting "out of bounds" error. How do I go ...
2
votes
1answer
2k views

Creating a featureclass in memory and adding to the map error

I have the code below, which is supposed to create a new featureclass in memory then add the FC to the map, but I get a Automation error when I use the createfeatureclass method Set pFC = ...
2
votes
1answer
398 views

Shapes of this entity type not allowed in this layer when CreateFeature() is called

I have the following code that calls on a remote geodatabase server. Everything is connected and working, but when I try to add a point and use featureclass.CreateFeature();, it shuts down. At first ...
1
vote
1answer
331 views

IMapServerObjects.get_Map says object is null reference.

So I am trying to access a map layer, which I can connect to. try { agsconn.Connect(); Log.Write("Connected.", "myclass"); ...
2
votes
3answers
626 views

How do I zoom to the overall extent of two (or more) selected features from two layers?

I am creating an application where the user picks a value from a combo box, the application then selects that feature and then selects the corresponding features from a second layer, (both selections ...
1
vote
0answers
170 views

Trouble programmatically publishing to SOM when SOC is on another machine [closed]

I wrote a desktop extension for ArcMap that allows a user to publish the map they've just created to an AGS 9.3.1 machine on another server. This works fine as long as the AGS machine acts as a SOM ...
0
votes
1answer
308 views

Cannot run toolbox model from button

I have a button on my toolbar that when clicked, will run a particular model, I have copied the code from here ...
4
votes
1answer
490 views

Can you edit an SDE table via ArcObjects when not added to ArcMap

I have a table that is in SDE, what I want to do is in my userform click on the "Save" button, and the table will be edited even though it is not within the map document. Is this possible? I have ...
0
votes
0answers
152 views

How to make sure OnSketchFinished always works?

In my VBA application i have a listener setup that listens for OnSketchFinished, when the polygon is created a messagebox appears and then a userform. My problem is that the listener will work 90% of ...
2
votes
2answers
1k views

Collapse layers in ArcMap Table of Contents using ArcObjects

Can someone offer up a Christmas present here? I'm stuck on how to collapse all layers in my ArcMap projects (9.3). I've tried a few bits of sample code, but they all seem to fail for some reason or ...
6
votes
2answers
1k views

How are Class Extensions associated with a Feature Class in ArcGIS v10?

In ArcGIS 9.x if a Feature Class is registered with a Class Extension the CLSID of the extension is recorded in a table in the sde schema called sde.GDB_OBJECTCLASSES (EXTCLSID field). However in ...