Select to view content in your preferred language

Error When Creating TIN in Python

872
1
07-25-2012 10:30 AM
NickJones
New Contributor II
Hello,

I'm having trouble creating a tin in my Python script.  Everything looks right to me, but I keep getting the error:

<class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid.
ERROR 000800: The value is not a member of <None>.
ERROR 000800: The value is not a member of <None>.
ERROR 000800: The value is not a member of <None>.
ERROR 000800: The value is not a member of <None>.
Failed to execute (CreateTin)

There's one for every input in the TIN it appears.  I think it has something to do with the tag field, but I've tried a lot of things to get around this.  Here's the piece of my script:

arcpy.CreateTin_3d(InvertTIN,"PROJCS['NAD_1983_StatePlane_Georgia_West_FIPS_1002_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',2296583.333333333],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-84.16666666666667],PARAMETER['Scale_Factor',0.9999],PARAMETER['Latitude_Of_Origin',30.0],UNIT['Foot_US',0.3048006096012192]]", \
                   "DownstreamPerpLineLeft3D Shape.Z hardline <None>; \
                    DownstreamPerpLineRight3D Shape.Z hardline <None>; \
                    UpstreamPerpLineLeft3D Shape.Z hardline <None>; \
                    UpstreamPerpLineRight3D Shape.Z hardline <None>","DELAUNAY")

Thanks,
Nick Jones
Tags (2)
0 Kudos
1 Reply
NickJones
New Contributor II
I ended up fixing this by using .format.  Like so:

arcpy.CreateTin_3d(InvertTIN, inputProj,
                                 "{0} US_INV_ELV hardline; {1} US_INV_ELV hardline;{2} DS_INV_ELV hardline; {3} DS_INV_ELV hardline".format(UpstreamPerpLineLeft, UpstreamPerpLineRight, DownstreamPerpLineLeft, DownstreamPerpLineRight), "DELAUNAY")
0 Kudos