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

learn more… | top users | synonyms

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
296 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
385 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

Run Model ArcMap 9.3.1

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
121 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
5k views

ArcObjects (vba) update selected feature/record

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
272 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 ...
2
votes
1answer
694 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
363 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
979 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 ...
4
votes
1answer
934 views

FIELD CALCULATOR VB scripting

In my attribute tables field. I am trying to get rid of the "&" in between names i.e. "John Adams & wife" and want it to say "John Adams and Wife" in all the attributes with "&". What is ...
3
votes
2answers
4k views

use VBA in a code to edit the attributes table

so 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
832 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
3k 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
889 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

ArcMap field calculator VBA question

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 ...
7
votes
5answers
13k 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
763 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 ...