Solved! Go to Solution.
Hello,
For some reason when I cannot get the following script to work:
# Import primary modules
import arcpy, sys, os, traceback
from arcpy import env
# Set Variables
inTinA_features = arcpy.GetParameterAsText(0)
out_TinA = arcpy.GetParameterAsText(1)
spatial_ref = arcpy.GetParameterAsText(2)
# Create TIN
arcpy.CheckOutExtension("3D")
arcpy.CreateTin_3d(out_TinA, spatial_ref, "inTinA_features Elev_Obs masspoints <None>", "DELAUNAY")
arcpy.CheckInExtension("3D")
The script was stripped down to the bare bones, but still is not functioning.
I am using Python 2.7 with ArcGIS ArcInfo 10.1.
The error I get is as follows:
Traceback (most recent call last):
File "C:\Users\George\Documents\ArcGIS\v2\ProGIS_Project\createTIN.py", line 11, in <module>
arcpy.CreateTin_3d(out_TinA, spatial_ref, "inTinA_features Elev_Obs masspoints <None>", "DELAUNAY")
File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\ddd.py", line 1683, in CreateTin
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of <None>.
Failed to execute (CreateTin).
Failed to execute (createtin).
Thanks in advance,
Haskett