Select to view content in your preferred language

Problem with CreateTin_3d in Python script

603
2
02-03-2014 06:45 AM
RafaelAnleu
Emerging Contributor
Hi there, while working on a huge project with ArcGis 10 (ArcInfo license fully loaded) I needed to generate some TINs. So long story made short, prototype on Model Builder, Export to Python Script and of course it did not work. Search on the forum gave me some hints, but to my "surprise" not many threads on the subject. The hints where basically two:

- CreateTin has some issues working with projections ==> As far as I have tested it is not true, but with it in mind I edited my projection "grammar" and then it worked.
- CreateTin requires that at least one input is of type shape.Z ==> Also not true as far as I tested, but with it in mind I then found out that the <None> key word to designate the height field to be used, does not work and I do not seem to find anything wrong with my syntax. Here are the snipets:

This one does not work:
# arcpy.CreateTin_3d(qq, proyeccion,"F:\\FLOODS_USA\\ASSET_TRIAL\\VertFlood_08_9.shp <None> masspoints <None>", "CONSTRAINED_DELAUNAY")

Result:
ERROR 000800: The value is not a member of <None> | OBJECTID | STATIC_BFE | DEPTH | VELOCITY | BFE_REVERT | DEP_REVERT | X_Cent | Y_Cent | ORIG_FID.



This one works:
arcpy.CreateTin_3d(qq, proyeccion, "F:\\FLOODS_USA\\ASSET_TRIAL\\VertFlood_08_9.shp OBJECTID masspoints <None>", "CONSTRAINED_DELAUNAY")

Result: Exit code 0. It works

The only difference isthat I specified the OBJECTID, which is a field on my attribute table, and then it worked. Why is <None> not being accepted?

Any insights on this would be much appreciated as well as any other issue with TINs.
Tags (2)
0 Kudos
2 Replies
MichaelStead
Frequent Contributor
Not sure I (or ArcGIS) understand why you are making a TIN and trying not to use <none> on a "mass points" triangulation.... the only thing it makes sense to include as a TIN input and not use for data values is some sort of mask or constraining feature. What are you trying to do?
0 Kudos
RafaelAnleu
Emerging Contributor
Hi, it is quite long to explain, but is basically a workaround and what is important is that I only need the triangle geometry as created from a TIN, I do not need the TIN itself. Thus I do not care for elevation values.
0 Kudos