0
votes
0answers
9 views

Unable to debug ArcGIS 10.2 add-in on ArcMap with “No GUI components found in this Add-In”

I am working on an ArcGIS add-in (a very simple toolbar with a few buttons) with VB.Net and ArcObjects SDK in Visual Studio 2010. The solution was built successfully and the debug settings were ...
0
votes
0answers
26 views

Dynamically created toolbar doesnt show in Toolbar in ArcMap

I am trying to troubleshoot an application that allows creation of a tool bar based on a config file, which contains information about the tool bar like Name, ProgId, ESRIType, CLSID, Tooltip etc. ...
0
votes
0answers
16 views

Customized tab does not show in ArcMap 10 Table of Contents after migration from 9.3?

I'm new to ArcGIS 10, and I have a huge block of code migrated from ArcGIS Desktop 9.3 to 10. Most of them work properly but some classes, which implement the "IContentsView" interface, don't show ...
1
vote
1answer
29 views

ArcObjects SQL Server Connection not recognizing instance

I am trying to make a connection to a SQL Server database with SdeWorkspaceFactory. This is from my Windows 7 x64 Desktop to a Network database. If I use this: SDEWorkspace = ...
1
vote
1answer
38 views

ArcMap - WMS service layers not drawing

I'm using ArcObjects .NET to load WMS 1.3.0 service layers from our ArcGIS server into ArcMap 10.2.2. The process of connecting to the server and adding layers works fine, however none of the layers ...
2
votes
1answer
21 views

ArcObjects Event when ArcMap table of contents selection is changed

I have been trying to figure this out for almost a full working day and I just can't get it working. All I want to do is fire an event when the user clicks different layers in the arcmap table of ...
0
votes
2answers
56 views

How to find the coordinate system of an existing Map in arcGIS using VB.NET [closed]

I already have a georeferenced base map loaded in ArcMap. I want to find the spatial reference of this map and assign the same coordinate system to a polygon that I created. I can not get a start with ...
1
vote
1answer
43 views

Remove a custom contents view from ArcMap TOC in VB .NET?

I am using the ESRI sample, TOCLayerFilterVB2010, which implements a custom TOC view for map layers, as a prototype. For my purposes, I need to be able to turn it on/off, meaning add and remove that ...
2
votes
0answers
44 views

Adding a button from an add-in to a TOC context menu

I would like to add a button to a group layer context menu in the table of contents. The button is from an add-in that also contains an extension. Should be straight-forward enough. The extension ...
1
vote
0answers
89 views

How to resolve an InvalidCastException for two Objects of the same type in an ArcMap AddIn?

I'm trying to work through an InvalidCastException that is being thrown when a form is displayed from an ArcMap Addin. This is a fairly recent occurrence and I haven't identified what has changed that ...
2
votes
1answer
91 views

Unknown coordinate system warning when programmatically adding layer

I have another interesting question for you. I have data with unknown coordinate system. When I add this data using a standard tool(File->Add Data) in ArcMap, a warning dialog appears. It looks like: ...
0
votes
0answers
53 views

Problem after buffer is created in arcobject.net?

I have arcmap10.1. and arcobject10.1 .net. I have created a single buffer successfully and it also display in axtoccontrol but the axmapcontrol display that buffer on upper side off all layer so ...
2
votes
1answer
72 views

Is it possible to learn ArcObjects without VB?

I have some text in arcmap active view and I need to Change the font face as the licence does not cover the font type. I am using python script for Automation but arcpy can not select the text ...
0
votes
0answers
20 views

IColor reporting BGR rather than RGB

I've created a single point in ArcMap 10.1 SP1, and set it's color (SimpleMarkerSymbol) to Red = 16, Green = 0, and Blue = 255, or 1000FF in hex. I saved that as a layer package, and opened it back ...
0
votes
0answers
39 views

mapcontrol not reflected when i split polygon with polyline?

I have created a split tool which will create polyline and based on this line i want to divide that polygon into two separate polygons. i have write below code it will create left side and right side ...
1
vote
1answer
31 views

Set available orientation to toobar in ArcMap using ArcObjects

We are creating a very huge extension for ArcMap and in the process, we have created a lot of new custom toolbars. These toolbars contains both buttons and custom controls. These custom controls can ...
0
votes
0answers
39 views

Change the Name,Tooltip of builtin Commands

When I change the name of a builtin command using the following code, I get the error, "this method cannot run on builtin commands". ICommandItem BuiltinCMD = ...
0
votes
2answers
85 views

How to get the current map from a geoprocessing tool execute function?

I'm making a geoprocessing tool with the ArcObjects SDK Java 10.2. I need to modify labeling colors of a layer of the current map. Is it possible from the execute function to access the map currently ...
1
vote
0answers
347 views

How to cut polygon or split polygon using polyline and ArcObjects?

I have ArcMap10.1 and ArcObject.net. i have created tool and on mouse down event i write some code I tried it using topologicalOperator4.Cut2(newPolyline) but i get error "A polygon cut operation ...
0
votes
1answer
61 views

How to change a schema name within a MXD with ArcObject .NET?

I have a MXD file where all layers point to an Oracle Spatial database. Recently our DBA changed the schema name. So now my MXD file has broken links, each time I open it, all my layers have a ...
0
votes
0answers
11 views

Change layer border in arcmap through arcobject [duplicate]

I wish to change the border of layer in arcmap through arcobject vb.net program .Through my program i have added layer to arcmap now i want to change its property .Can anyone please tell me where to ...
0
votes
1answer
86 views

split polyline with point and add vertex on that point as well as reflect in attribute table?

I am new to ArcGIS. I am using the ArcObjects SDK and I couldn't understand how to: Add vertex to that clicked location as well Add attributes in that attribute table. Can someone suggest some ...
2
votes
1answer
116 views

Writing an algorithm to find the most efficient line angle at which to draw lines

I've written a tool that fills a polygon in ArcMap with parallel lines at a user specified distance apart and at a user specified angle, written in vb.net and arcobjects. What i'm looking to do next ...
-1
votes
1answer
101 views

On Mouse Up Event in ArcMap Add-In

Does anyone know how to wire up mouse events on a map document? I have found a bunch of example code on how to wire up Add-In tools, but the Add-in I'm creating is a button. It should be as easy as ...
0
votes
2answers
233 views

C# code to display result of spatial query on arcmap

the problem is i have to display those points on arcmap that lies inside the envelope.I am explaining what i have done so far. I have one point feature class say featureclass ,open it and used one ...
2
votes
1answer
249 views

Adding FeatureLayer on a thread crashes ArcMap

I asked this question on the ESRI forums but got nothing so I thought I would try it here (hope that is consider ok). I am creating an extension for ArcMap 10.2 using Visual Studio 2012 C# WPF. ...
1
vote
1answer
140 views

Get a spatial reference object by name from a saved string

I am creating an ArcMap 10.2 extension is VS 2012 and C#. I want to give the user the option to select a spatial reference to be applied to a layer - planning to use the Dialog for that. But then, ...
2
votes
0answers
34 views

Getting value from IRow is slower while edit mode is on? [closed]

When I access a value in an IRow using get_Value(index), it usually takes 0 to 1 ms. But when edit mode is on, the same operation takes 0 to 15 ms (most common values are 0 and 10 ms)! What could be ...
1
vote
1answer
79 views

Errors when creating a TextElement from ArcObjects

I am attempting to add some text in the layout view of ArcMap. I’m using the following line for the TextElement that I’ve found online from numerous places including ArcObjects Library Reference. ...
2
votes
1answer
105 views

Application Extension vs. Add-in Application Extension

Background: I am tasked with rewriting a 9.3 ArcMap solution based upon a VB6 implementation using an application extension and several forms. The interface to ArcMap is that this solution needs to ...
4
votes
2answers
251 views

How to create new legend using ArcObjects?

I am trying to add simple legend to the map. I wrote some simple test code below to see what happens but it did not work. var map = activeView.FocusMap; IGraphicsContainer ...
3
votes
1answer
79 views

Accessing Data Sources listed in the ArcMap TOC

I recently identified a bug with a fairly mature application I've developed which is hosted through ArcMap. The bug happens when I've loaded a 'project' into ArcMap, which includes assorted feature ...
2
votes
1answer
97 views

How to close the current mxd document through arcmap add-in

First, I open a mxd document named A in arcmap, then i use my add-in to generate another mxd document named B, then I use ArcMap.Application.OpenDocument(arcmapMapFileName); to open the ...
0
votes
0answers
31 views

Selection Problem

I'm trying to handle feature selection event using c# code. I'm wondering that if using the "HTML popup" tool to click on the points on the map counted as selecting the point feature? As I always get ...
6
votes
3answers
2k views

What is the target .NET Framework of ESRI ArcObjects SDK 10.2

I had ArcMap 10 Add-In project built with ArcObjects SDK for .NET 10.1 where I could not reference external COM DLL build on .NET 4.0 due to a .NET forward compatibility issue. (ArcObjects SDK 10.1 ...
1
vote
3answers
431 views

How to change feature color?

I have feature (polygon) was gotten by spatial query from the map. How to change its color? I used this code but it didn't work IMxDocument mxDocument = application.Document as IMxDocument; ...
2
votes
0answers
199 views

Problem with multi-threading and geoprocessor tool in c#

What I am doing: I am trying to run a geoprocessor tool in a background thread other than UI thread. I am passing string path of arcObjects and creating that arcObject in my background thread. Then I ...
3
votes
1answer
103 views

How to get any changes happened in the current SDE version?

How to get any change done on the map in the current version of sde. using arcObjects e.g. if i had a line on the map. and in the current sde version i changed the length of that line. how to get this ...
3
votes
1answer
360 views

ArcMap AddIn Build Error when referencing external ActiveX Interface in VS2010

If the "Register for COM interop" is unchecked the projects builds without errors. But I have to reference external ActiveX Interface in my project so I have to have that check-box checked. I am ...
4
votes
1answer
359 views

What is the difference between ActiveView, FocusMap and PageLayout in ArcObjects?

I see that different starting points are used when interacting with ArcMap IMxDocument IMxDocument mxDocument = application.Document as IMxDocument; IActiveView activeView = ...
2
votes
2answers
682 views

ArcObjects snipped to Select all Features currently visible on the ArcMap screen (ActiveView)

I guess I have to get the extent of the ActiveView and then use it to perform a spatial search. Is that the proper way to do it? Please share the code snipped if you have any. Thanks.
2
votes
0answers
399 views

How to wire ESRI.ArcGIS.Desktop.AddIns.Extension to a custom AddIn Button click event?

I am developing custom ArcMap toolbar with various AddIn tools, button and extension. I see the sample how to access the ActiveView events in the extension Initialize() method. private void ...
0
votes
2answers
543 views

ArcObjects - accessing layer data table from C#

I've spent all day yesterday trying to trace all my the errors but I'm just completely stuck now. Google isn't helpful either. I'm trying to create a small C# tool which opens my MXD file in ...
2
votes
2answers
1k views

get valules for all fields from selected features

The following code works for retrieving values within a particular field(Name1), but I want to retrieve mulitple fields. Am I to create multiple variables for each field? IMxDocument pMxDocument = ...
0
votes
1answer
93 views

How to access and send coordinates from third party application to the current running instance of ArcMap?

I'm quiet new to ArcObjects and I need some help. My main issue is that I have an external WPF application (a video player exactly), and from that application I want to perform the following actions ...
3
votes
1answer
87 views

How can I hide a tool from command window under category

I have created a tool, a button and a dockable window under one project. To open/close the dockable window, button is used. For some specific work, by clicking some specific button from dockable ...
3
votes
0answers
95 views

drawing line from points [duplicate]

I have a series of XY coordinates. I want to use these points to draw a line in ARCMAP using arcobject10.1 using c#. I have saved this in a table inside geodatabase.Am i supposed to create a feature ...
3
votes
3answers
255 views

Get IWorkSpace from IGxObject

I am creating a tool that opens an IGxDialog which it's objects are filtered to show only workspaces, my question is how can I convert IGxObject to IWorkSpace or get the selected workspace without ...
4
votes
1answer
538 views

Customizing Identify Dialog in ArcMap

Any idea for customizing Identify Dialog in ArcMap.I want to use my control (for example a list view or a custom control) to show attributes of features in same native ArcMap Identify Dialog,mean ...
2
votes
1answer
167 views

ArcObjects 10/10.1 Get rid of Invalid layer symbol in TOC

I've written an add-in (VS2010, C#) that finds specific invalid feature layers in ArcMap and fixes them. After the layer is fixed, the red invalid symbol still appears in the TOC. An ...