ARCVIEW 3.x LAYOUT TEXTFILE TOOL Places a text file in a layout as a graphic text object. ======================================================================= INSTALLING THE TEXTFILE TOOL IN THE DEFAULT PROJECT 1) Begin a NEW ArcView 3.x session. 2) Create a new script by double-clicking on the "Scripts" icon 3) Use "Properties..." under the "Script" menu to rename Script1 to Layout.PutTextFile 4) Paste the following text: '====================================================================== 'Layout.PutTextFile 'Create graphic text from text file '**** get user point and Layout units theLayout = av.GetActiveDoc thePoint = theLayout.GetDisplay.ReturnUserPoint '**** get text txt_name = FileDialog.Show("*.*", "Text File", "Create Text") if (txt_name = nil) then exit end txt_file = TextFile.Make(txt_name, #FILE_PERM_READ) theText = txt_file.Read(txt_file.GetSize) txt_file.Close '**** create graphic text and set as selected gt = GraphicText.Make(theText,thePoint) gt.SetDisplay(theLayout.GetDisplay) theLayout.GetGraphics.UnselectAll gt.SetSelected(TRUE) theLayout.GetGraphics.AddName(gt) av.GetProject.SetModified(true) '====================================================================== 5) Compile and close the script 6) Double-click the tool bar, choose "Layout" and "Tools", and create a new tool 7) Double-click "Apply" and select Layout.PutTextFile 8) Double-click "Cursor" and select Cursors.Finger 9) Double-click "Help" and enter: Import Text//Import Text 10) Double-click "Icon" and select FrameText [or Write in AV2.1] 11) Click the "Make Default Button" and then close the Customize dialog box 12) EXIT ArcView (do not save changes to "Untitled") and you're done! ======================================================================= INSTALLING THE BUTTON IN A SPECIFIC PROJECT 1) Open the desired project and follow steps 2-10 above 2) Close the "Customizer" and save the project This control (among others) may also be installed by loading the Stuff! extension. ======================================================================= USING THE TEXTFILE TOOL 1) Pick the tool 2) Point to the desired location of the lower left corner of the text and click once. 3) Enter the filename. Text will not automatically wrap: the textfile must be preformatted with line breaks. ======================================================================= Mark Cederholm plp@pierssen.com http://www.pierssen.com/PC/arcinfo.htm http://www.pierssen.com/arcview/arcview.htm