This page is meant to be a place where the GIS professionals can find Avenue scripts that will help her/him to be more proficient in their craft. We hope you find the scripts here to be helpful in many ways. They are generally well written and are meant to be good examples of how Avenue can be integrated with your ArcView application. In some situations, their are multiple scripts zipped together. Please read the disclaimer above. The scripts were zipped as textfiles with PKZIP.
Special thanks to Alan Holsted of Metro (Portland, Oregon) and Mike Quetal of GeoNorth (Anchorage, Alaska). They either wrote or assisted with the writing of the scripts listed below.
- Search All Scripts
This script will search through every script in the Project Window, replacing a text string if found. If a text string is found and replaced, the script will then be re-compiled so it is usable. ( search.zip 2K )
- Mailing Labels
This script will create mailing labels using the selected tax lots. The script will need to be modified before using, replacing the name of the theme required (currently "Tax Lots"), and changing the field names that are used to create the mailing labels. The mailing labels can be output in a variety of user-selected formats, including comma-delimited textfile, DBF file, or Avery 5160. ( mailing.zip 2K )
- RailRoad Symbol
Creates a custom railroad symbol on the fly. This script is designed to be inserted into another script. The hash marks used are black, but I have used red hash marks to indicate a light-rail line. ( railroad.zip 3K )
- Get Unique Values
This script takes two arguments, a table and a field name. It returns a sorted list of the fields values (uses selected values if a selection exists), with all duplicate values removed. ( getuniq.zip 1K )
- Bitmap Legend On View
Put a bitmap legend directly on the view. You need the Dialog Designer extension to make this script work. I implemented this in conjunction with a script that draws residences (red dots for one units, red squares for two units, and red triangles for three units) and mobile homes (blue houses) and makes the size of the marker based on the year built. Given the amount of information, a legend is useful to quickly understand the markers. I could not create a theme legend because the markers are all graphics, so I used the Layout module to create a custom legend, and then saved this legend as a bitmap. I had to trim the legend somewhat using Paintbrush. It takes a little bit of work, but the results are well worth it, and I'm sure there are other applications. Credit to Chen Li of ESRI-Olympia for helping me with the scripting. ( legview.zip 6K )
Other Recommended Scripts
Mikael Elmquist's site has several scripts. One script will convert a polygon theme into a point theme using centroids and another converts a line theme into a point theme using vertices. There is a script that adds zoom options to the right-mouse button and another script that creates a backup copy of your project. Two other scripts work with grids, requiring the Spatial Analyst extension.
- Stuff for ArcView Users
Mark Cederholm's site has numerous scripts, categorized by their function. There are too many scripts to list here, but a couple of my favorites are the Arrowhead Button and Point-and-Click Scalebar.
| Mission Statement
| ArcView Courses |
| ArcView Extensions
| Dialog Designer
| Palettes |
Please e-mail Keith Massie if you have comments.
Updated April 15, 1999
Copyright 1997 Columbia Mapping