0
votes
2answers
22 views

feature store get NullReferenceException error

I am trying to update a field value according to the selected OBJECTID. But get System.NullReferenceException error. Don't know what's wrong with the code. My code is as follows: pActiveView ...
0
votes
1answer
22 views

arcobjects determine when attribute dialog window closed

In arcmap, I choose to "Display the attributes dialog before storing new features" in editor options for several layers. I intend to do further development upon user closing the attribute dialog ...
0
votes
1answer
22 views

vb.net arcmap add-in log4net log still follow the configuration before update

I met a strange thing in my log4net for vb.net arcmap add-in. At first, I follow the link http://www.codeproject.com/Articles/42276/How-to-Use-Log-Net-with-VB-NET-A-Simple-Step-By-St to write logs ...
1
vote
0answers
13 views

vb.net arcobjects remove a buffer

I have a function which can select and zoom to a feature, at the same time I will create a buffer around the selected feature so that further more function provided only for the selected feature. The ...
2
votes
2answers
27 views

vb.net arcobjects determine whether arcmap is in editing session

I have a vb.net arcmap addin which provide a function to validate geodb topology. But there is a problem, when I am not in editing session and use the function, arcmap will crash. In this case I ...
3
votes
0answers
33 views

ArcMap add-in (vb.net) datagridview will crash map when right click on the title part

I find the problem accidentally. In my ArcMap add-in, there is a search function which allows the user to search the geodb based on the value of a field. It works fine but today when I right click the ...
0
votes
2answers
77 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 ...
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 ...
2
votes
1answer
136 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 ...
2
votes
0answers
1k views

How can I copy selected polygon features to a polyline feature class with ArcObjects?

I would like to copy selected polygon features to a polyline feature class. (Similar to how polygon features can be copied and pasted inside an edit session in ArcMap) Until recently I've been using ...
2
votes
2answers
873 views

Data View/Layout View Changes - ArcMap 10

I have code that will hide a certain set of points from the view using an ExclusionSet, and then switch to layout view for printing. I noticed in my 9.1 version, when after I am done printing, and I ...
5
votes
1answer
348 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 ...
4
votes
1answer
152 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 ...
5
votes
1answer
750 views

Refresh Currently Open ArcMap Attribute Table using ArcObjects

I have written an ArcMap Addin (ArcMap 10.0) that allows a user to perform a join between an in-memory table and a feature class (feature layer) added to the TOC. I want the attribute table of the ...
4
votes
0answers
340 views

Creating a VB.net Dataset in Visual Studio 2010 from an SDE Geodatabase

I am building an ArcMap Addin that contains several Windows Forms with controls that need to be bound to a database. I am trying to decide whether or not to use a native SQL Server Database or an SDE ...
1
vote
1answer
99 views

How do I keep user from selecting a different tool when my custom tool is selected?

I am using VB.Net to write an add-in. I'd like to keep the tool that I created selected even when the user attempts to select a different tool, and only deselect when my tool is clicked on again.
1
vote
1answer
403 views

How do I save edits from an ArcMap editing session using VB.Net?

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.
2
votes
1answer
558 views

How do I save an ArcMap map document using VB.Net?

I am trying to save the map document that is currently open. How do I write the code? I have tried many suggestions that I found using Google searches, but nothing works. Currently I have: Dim ...
2
votes
1answer
524 views

Why do I get an “Type 'IPoint' is not defined” error in VB.NET

I am writing an add-in for ArcMap 10. I am trying to do Dim clickedPoint as IPoint in VB.NET, but I get "Type 'IPoint' is not defined" error. Do I have to import a class or how do I make this work?
4
votes
2answers
607 views

DLL As Embedded Resource ArcMap Add-In? VB.NET

I tried using StackOverflow, but I don't think anyone can answer my question in context(ArcMap Addins). I am currently developing an add-in that needs to load a custom control DLL as a dependency. ...
1
vote
2answers
459 views

ArcMap 10 How to create a tool to use with a Vb.Net script?

I have a VB.net scrip that I would like to run from the toolbar. In VBA, you would create a buttton that would collect the xy coordinates and pass the variables to the script for running. I can't ...
2
votes
1answer
641 views

ArcMap Commands .NET code equivalent

What is the .NET code equivalent for this general ArcMap command syntax: Application.Document.CommandBars.Find(ArcID.Query_ClearSelection).Execute() I have been using this one below as a work ...