CEEn 414 - Civil Engineering Applications of GIS |
Select some code at one of the online resources like the ArcScripts download site or ArcObjects Online and incorporate it into ArcMap (a document for this case). Try to stay with code that has good documentation, and you probably won't be able to use a .DLL unless you are working from your own computer. At the ArcScripts site you will have the best success if you search for scripts written in "Visual Basic" for "ArcGIS Desktop." Try to pick some code that does something you are personally interested in and please avoid sample code that relates to 3D Analyst, etc. as we have not covered these extensions yet. If you are having trouble finding something interesting then a useful one that computes area, perimeter, centroids for polygon layers can be downloaded by clicking here. I tried this (last year!) and it worked fine by following the help file, except that the document asks you to import the "frmLayerInfo" data and type it in a couple of times in the code window at one spot, but the zip file actually has this named "frmAreaPerimCentroid" now instead so be sure and substitute this name in the correct places. Team Assignment: |