The dialog for each function has a Help Tab that contains the full help topic for the current function.
All the functions of ET Surface can be used in Python Scripts by calling ETSRun.exe located in the installation folder of ET Surface using the Subprocess Python module. ET Surface 7.0 is a native 64-bit application, but since it runs in a separate process, it can be used from 32 and 64 bit Python.
Below is an example of using a function of ET Surface within a Python script
Calling the script CreateTin from Command Prompt python.exe CreateTin.py "c:\testData\points.shp" "c:\testData\pointTin" "Elevation" "Points" |
import sys, subprocess argList = sys.argv print (len(argList)) if len(sys.argv) < 5: print ("Usage:" , "CreateTin <input_dataset> <output_tin> <elevation_field>); <triangulation_method> else: etsPath = r"C:\Program Files\ETSpatialTechniques\ETSurface\ETSRun.exe" etFunction = "CreateTin" inputDataset = argList[1] outputTin = argList[2] elevation_field = argList[3] triangulation_method = argList[4] print ("Input: " , inputDataset) print ("Output: " , outputTin) retCode = subprocess.call([etsPath, etFunction, inputDataset, outputTin, elevation_field, triangulation_method]) if retCode == 0: print ("Success") else: print (retCode) |
The location of ETSRun.exe can be derived from the registry using: hKey = _winreg.OpenKey (_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\ETSpatialTechniques\ETSurface", 0, _winreg.KEY_READ|_winreg. KEY_WOW64_64KEY) myPath = _winreg.QueryValueEx(hKey, "InstallPath")[0] etsPath = myPath+r"ETSRun.exe" _winreg.CloseKey(hKey) |
The functionality of ET Surface can be also used in custom .NET applications. See this topic for details
The functionality of ET Surface can be executed directly from the DOS command prompt. Example:
ETSRun.exe "CreateTin" "c:\testData\points.shp" "c:\testData\pointTin" "Elevation" "Points"