To all GISDK learners and programmers, As promised I have collected into DK_Aids.exe sample code and other useful items from my nine years of GISDK programming experience along with a few from Armando Scalise. To keep the time to maintain this to a minimum I have stuck to simple text files with simple formatting in most cases. I know the name sounds like a new brand of antacid but it's short and simple!<g>
Rather than emailing it to those of you who requested it, I have uploaded it as a file in our Maptitude group. Go to http://groups.yahoo.com/group/Maptitude/files/, and download DK_Aids.exe. It is a self-extracting zip file containing 63 files (1.5 mb). I invite additional tips, tricks, sample code and anything else useful and will periodically add them to this archive. So, I suggest you extract it to the same folder, eg., DK_Aids, on your machine, overwriting each time. If you want to make changes to any file you should copy it elsewhere so it won't be overwritten with the next version. Each time I issue a new version, there will be a list of the changes and additions to it so you don't have to look at the whole thing again. After extracting the archive you should read the __readme.txt which is your master table of contents for the entire collection. I hope these will be helpful and that, together, we can develop a body of useful information to help each other create awesome, DK-based, custom GIS applications! Larry Manire Databasics, Inc. To give you a preview, here is a list of all the files. ---------------------------------------------------------------------------- -------- _dk_tips_and_tricks.txt - miscellaneous useful programming pointers _dk_sample_code_index.txt - list of sample code files with short descriptions organized by functional category _supporting_software.txt - software useful for dk programming or using with Maptitude _dk_quick_reference.doc - summary of Caliper script syntax and dialog box items _dk_coding_standards.doc - a set of proposed DK coding standards for discussion _dk_consultants.txt - a list consultants available for DK programming SAMPLE GISDK CODE APPLICATIONS AND TOOLBOXES parcels.rsc - toolbox prompts for parcel ID, displays lots, units, land and contruction data from the tax assessors database (LM) parquery.rsc - parcel map display application for tax assessor public access; see parquery.doc for user interface (LM) dealers.rsc - toolbox to select a point on map, put map on layout and print (LM) editplat.rsc - toolbox to edit property parcel boundaries, dimension annotation and attributes (LM) editzone.rsc - toolbox to enter and edit city zoning boundaries (LM) er.rsc - toolbox to copy roads to another layer and edit them (LM) istea.rsc - toolbox for on-screen digitizing and editing of points and areas copying from source layer (LM) optimap.rsc - optical fiber sales management application; large toolbox with many specialized fuctions (LM) signs.rsc - municipal street sign/culvert/bridge inventory application; toolbox for field data collection (LM) zones.rsc - application toolbox to assign workers to geographic zones (LM) ziptas47.rsc - zip code based franchise territory assignment application (LM) SPATIAL ANALYSIS, MANIPULATION AND UTILITIES measure.rsc - measure the length of a line and show its bearing (AS) aroute.rsc (TC) - gets shortest path for routing (LM) bgavg.rsc - computes sum of block centroid distance in miles from bg centroid chekarea.rsc - lists duplicate points in each polygon in current layer (LM) fromto.rsc - for each street write out list to dbf of all interecting streets (LM) makpasta.rsc - creates trade areas boundary definitions from groups of areas nearstor.rsc - for each point in a points layer, adds id, name and distance to nearest point in same layer (LM) snapto.rsc - snaps selected features to underlying features (LM) DATABASE AND FILE MANIPULATION area2lin.rsc - converts current area layer to lines and nodes (LM) binmaker.rsc - converts selected .dbf files to .bin files e00tomt.rsc - toolbox to convert E00 (ESRI export files) to CDF format (LM) getfiles.rsc - copies all files in all source folder subdirectories into a destination folder (LM) lin2area.rsc - converts line layer to area layer (LM) makegrid.rsc - creates grid layer (now obsoleted by Maptitude) (LM) mifs2mt.rsc - converts all .mifs in a directory to maptitude DBDs (LM) mixareas.rsc - combines separate area DBD files by exporting them to text/geography (CSV), reading the CSV files and adding them to a consolidated file while incrementing the corresponding IDs.(LM) mixlines.rsc - combines separate line DBD files by using the MergeGeography() function (LM) mixpts.rsc - combines separate point DBD files by using the MergeGeography() function (LM) overedge.rsc - puts IDs of areas in current layer that have > 500 edges in selection set "Selection" (LM) protect.rsc - exports geographic files in directory at CDFs with "Protect","Yes"; prevents user from exporting from CDF (LM) removeislands.rsc - removes islands smaller than specified size from areas (LM) rtnums.rsc - extracts highway numbers from street names and inserts in sepeate field (LM) DISPLAY annoutls.rsc - annotation utilities for adding anno to a layout in columns for reports (LM) atics.rsc - toolbox to add tic marks along a line with distance labels (LM) dateanno.rsc - tool to add date annotation to lower right hand corner of map window (LM) editbmp.rsc - toolbox to select bitmap annotation and edit it in Paintbrush (LM) golatlon.rsc - toolbox, scopes map to entered lat/lon and adds annotation (LM) laymenu.rsc - toolbox to show dbox of layers with display checkbox for each (LM) styles.rsc - create 22 basic line styles, fill styles and colors as globals (LM) PRINTING AND OUTPUT creating_pdfs.txt - instructions and code samples for outputting multiple layouts to pdf (LM) batchmap.rsc - output large number of maps on layouts to pdf index.rsc - creates index pdf of group of pdfs using naming convention (LM) layprint.rsc - automatic printing of selected areas to layouts (LM) mailers.rsc - prints batch of form letters and maps on layouts to pdf (LM) mktmap.rsc - creates user specified grid with aggregates for selected areas (LM) map11x17.rsc - prints 11X17 map for user specified tax map grid rectangles (LM) map24x36.rsc - prints 24X36 map for user specified tax map grid rectangles (LM) mapatlas.rsc - create map atlas street index giving each grid square a street is in; companion program to maprds.rsc (LM) maprds.rsc - prints maps for selected town tax map grid rectangles; use mapatlas.rsc to print street index (LM) GISDK PROGRAMMING UTILITIES calltree.rsc - produces calling tree for all macros, dboxes, toolboxes, toolbars, menus in a resource (.rsc) (LM) rsctoc.rsc - creates a table of contents for a GISDK resource file (LM) uipath - finds ui path in \mapt\add-ins.txt file for a uiname (LM) SELECTION SETS makesets.rsc - creates selection sets for the selected values of a character field (LM) setmenu.rsc - displays a permanent menu of selection sets for a selected layer with on/off buttons (LM) MISC UTILITIES utilities.rsc - buttons to redraw current map, kills all progress bars, areas adjacent to set of areas; suggested by Richard Hoskins (AS/LM) quickqry.rsc - code fragment to find all the records with the same value of a single field without having to do a SelectByQuery()/GetFirst/GetNextRecord() (LM) wrapstr.rsc - breaks up input string into pieces of specified length without breaking words (LM) inifiles.rsc - utilities for reading and writing .ini files (LM/AS) close_new_views.rsc - close currently open view not in list passed in (AS) GEOCODING geocode.doc - document from Caliper in your Maptitude install directory that has sample dk code on how to do geocoding (Caliper) ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/C5grlB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Maptitude/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
