HOW TO

Plant trees on a TIN or grid theme in a 3D viewer

Last Published: April 25, 2020

Summary

ArcView 3D Analyst comes with a set of sample scripts that generates trees on a 3D Scene. This document discusses how to use this tool.

Procedure



  1. Open a new script window.

    A. Activate the Project window.
    B. Click the Scripts icon.
    C. Click New.

  2. Load the 3dtreeap.ave sample script file. This file is located in ..\esri\av_gis30\arcview\samples\scripts directory.

    A. Select 'Load Text File' from the Script menu.
    B. Navigate to the location of the text file.
    C. Double-click on the file.

  3. Rename the script 3D.TreeApply.

    A. Select Properties from the Script menu.
    B. Type in a new name in the Name field.
    C. Click OK.

  4. Select Compile from the Script menu.
  5. Repeat steps 1 - 4 for the sample script 3dcreek.ave. Rename this script 3D.TreeClick.
  6. Repeat steps 1 - 4 for the sample script addtovie.ave. Rename this script 3D.AddToView.
  7. Open the 3D.AddToView script and click the Run button.
  8. Select Tool from the Add to Viewer dialog.
    [O-Image] Add to Viewer
  9. Give the new tool a unique name.
    [O-Image] Tool Name
  10. Click the Yes button when asked if you would like to set an apply.
  11. Select the 3D.TreeApply script on the Script Manager dialog box and click the OK button.
  12. Click the Yes button when asked if you would like to set a click script to this tool.
  13. Select the 3D.TreeClick script on the Script Manager dialog box and click the OK button.
  14. Click the Yes button when asked if you would like to set a Help String to this tool.
  15. Enter a brief description of what this tool does. This information will appear in the bottom left corner of your ArcView window.
    [O-Image] Help String
  16. Select an icon for this new tool.
  17. Open a new 3D Scene and add your data.

    Note:
    The new tool will only show up on 3D Scenes created after this script is ran. Refer to the comments in each script for further details.

  18. Click the new tool and define the height of the trees.
  19. Click in the area of your 3D scene where you would like a tree to appear.
    [O-Image] Tree

Article ID:000003061

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic