(Visual Basic for Applications) A subset of Visual Basic that provides a common language for customizing Microsoft applications.

learn more… | top users | synonyms

2
votes
1answer
2k views

Call tools from ArcToolBox in VBA form

I am now looking for a code in VBA that can call Tools from ArcToolBox(The little red box) I have find a Arcobject code(I thought it's can run under VBA) but it's don't work! I have to delete the ...
3
votes
2answers
2k views

How to Open a Table, Convert it to ShapeFile & projecting the data using the X and Y

it's my first project using ArcObject, i create this interface : http://i118.photobucket.com/albums/o104/b_sara/Cap2-1.png i did programme the button "Parcourir" ( browse ) using a commonDialog, it ...
1
vote
0answers
128 views

Arcobjects - Properties Grid

Does anybody know a way, in VBA, to change the grid interval? For example: if my layout´s scale is 1:2000, my grid will have 200 meters interval and my layout´s scale is 1:5000, my grid will have 500 ...
2
votes
3answers
2k views

ArcObjects - Select record from table

I´ve a project in VBA but I hit a wall that I can't pass. What I want to do: I´ve a table (of parcels) with the fields: ID, Name, Area, Scale. For each Parcel there is a different scale! I input, in ...
3
votes
1answer
604 views

Setting Spatial Reference for Geometry Bag using ArcObjects and VBA?

Within the ESRI SDK resources there is an example of combining polygons by use of a geometry bag. The following code appears: 'Define the spatial reference of the bag before adding geometries to ...
7
votes
2answers
2k views

Finding Nearest Feature Methods VB ArcObjects

Greetings, I have: (a) point feature class (b) polyline feature class I am trying to loop through the (a) point feature class to find the nearest feature from the (b) polyline feature class. Just ...
1
vote
0answers
51 views

How do I get non modal .dll things to work in ArcGIS 9 Education edition?

I dont know if I have installed it correctly on my computer. I think I need Non-Modal Forms Support in Visual Basic DLLs? and forcing VBA to load automatically in ArcGIS 9?
2
votes
2answers
1k views

Why is * .tlb not visible?

I've created a Visual Studio 08 Active X - MXCommands dll for a VBA button within ArcMap 9.3.1. I'm able to load and use the .tlb on my computer; however when I try it on my test computer the .tlb ...
2
votes
2answers
3k views

VBA to VB.NET (Visual Studio 10) Migration - ArcMap Focus

I will be migrating several VBA applications currently in ArcMap 9.3.1 to Visual Studio 10 in the near future, and wanted some feedback on the general migration steps listed below. I wanted to make ...
1
vote
0answers
277 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 ...
4
votes
1answer
1k views

Creating adjacency matrix of topology graph of ArcMap for shortest path using ArcObjects? [closed]

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
486 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 data,...
2
votes
3answers
1k views

ArcObjects 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 ...
1
vote
2answers
179 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?
2
votes
2answers
444 views

Converting personal geodatabase feature class to coverage using ArcObjects? [closed]

how to convert personal geodatabase fatureclass to coverage using arcobjects with vba pls provide me any documentation or samples.
3
votes
4answers
945 views

VBA script for Incremental labeling in Field Calculator?

I have a shape file with a bunch of pipes in it. I would like to be able to label each pipe with "Pipe - X". X being the number in the row that the pipe falls on (Pipe - 1, Pipe - 2, Pipe - 3, etc). ...
2
votes
1answer
845 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 ...
3
votes
3answers
2k 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
3
votes
2answers
321 views

Getting line FID from polygon ITopologyGraph

I want to export polygon Arc list to txt file for that I created topologygraph for personal geodatabase feature class (polygon) using ITopologyGraph::build. I got polygon FIDs but I am not getting ...
2
votes
1answer
395 views

VB ArcGIS 9.3 - Move column to the left

I'm trying to move text that is not aligned to the far left of the column due to programmer input. I'm trying to figure out the VB coding for it, but nothing seems to happen in the Attributes table (...
2
votes
1answer
1k views

Running Model within ArcMap using VBA?

I would like to Run/execute a model within ArcMap 9.3.1 vba. I can run it in vba by exporting out the VBS script and importing it into vba, however I'm wondering if there is an easier way to just call ...
1
vote
1answer
140 views

Traceflowsolver

I am working with VBA in ArcGIS.I want to use "Traceflowsolver.findpath" but I recieved an error on "SegmentCost".I need to see an example about this subject .anyone can help me? Also my code is: " ...
3
votes
2answers
6k views

Updating selected feature/record using ArcObjects (VBA)?

I would like to edit a selected feature/record via ArcMap vba, but I'm not having much luck with this code sample (see code below). I'm not getting an error, but the record selected is not updating. ...
1
vote
0answers
285 views

Export topology tables to txt files using ArcObjects, generating directed graph, and finding intersections

I want to export topology tables to text files: for points: 1 id x y for lines: line id fompoint.x from point.y topoint.x topoint.y for polygons: id line id 1, line id 2... 2 arc ...
3
votes
1answer
911 views

MapInfo 10.5.1 Update and MS Access Database

I am having problems with a database that I have developed. The data uses MapInfo for any of the spatial parts of it. I installed the update to MapInfo 10.5.1 and I now get an error when I am trying ...
2
votes
2answers
392 views

Can I use VB to search against an arcserver service in arcmap?

I've published a ArcServer service that is going to be consumed by out of the box, standard ArcGIS on the desktop. My question is, is it possible to write custom tools in VB to query layers from that ...
4
votes
2answers
1k views

VB ArcGIS 9.3 Field Calculator

I'm trying to join one column into another. one is "acct id" and the other is "taxid number". Acct is from one county whereas the tax is from another, so there are blanks in the number of parcels/...
5
votes
2answers
5k views

VBA code to edit and add azimuth values to attribute table

I have a point shapefile. I made a button that finds the best fit line for selected points and calculates the azimuth of it (zero degrees being the east). Is there a way I can add something to the ...
3
votes
2answers
1k views

Add-in; Failure to get code to execute when toolbar button pressed

I had written several VBA routines for ArcGIS up through v9.3 and have since upgraded to 10. Since VBA will be a thing of the past in the next version, I downloaded and installed VB Express 2008 and ...
2
votes
1answer
4k views

convert from C# to VBA

I have a code that wrote with C#.But I need to convert it to VBA and then use from it into GIS. how can I convert it be VBA?
4
votes
1answer
2k views

How can I import layer symbology from another layer programmaticaly with ArcObjects & VBA?

I would like to be able to develop a procedure that runs through all layers in the TOC and if the layer (name) exists in a specific folder where I am storing layer files with complex symbology I would ...
3
votes
2answers
930 views

How can I load VBA customizations stored in a “document-level custom template” into a Map Document created from a “Normal.mxt” template in ArcGIS 10?

I have all kinds of custom tools that are called from UI Controls stored in a document-level map document (my custom template). In earlier versions of ArcGIS these were stored in the global-level "...
5
votes
1answer
5k views

Using VBA in ArcMap field calculator?

I am trying to use ArcMap's Field Calculator to populate values in a column based on a value in another column. So, in pseudo-code: if [field1] = 'Foo' set [field2] = 'Bar' endif Something like ...
10
votes
5answers
20k views

Snapping points to lines in ArcGIS Desktop and automate using VBA?

I use ArcGIS Desktop and I want create a network with a point feature and a line feature. I need my point features to be on the line features so I should do Snap point to line. However, I do not ...
1
vote
1answer
855 views

I want create a crystal report in gis with writing code

I am working in ArcGIS 9.3.1 and I try to write code for creating a crystal report and work with it in VBA, but I recieved an error when the program arrived at this line of code: Dim pProj As ...
2
votes
3answers
686 views

Verifying that ArcInfo Workstation is Installed?

What is the best way to verify that a machine has ArcInfo Workstation installed? A code sample in VBA, VB or C# would be great!