2

Arcgis can give such a headache! I want to automate loads of small tasks, and so I need to edit empty TIN with python in order to create a full TIN. My srcript is giving errors, so I tried by hand to make it work with ModelBuilder AND EditTIN IT WORKS FINE!!!!

Exported the same Model (that just worked) as python script gives errors!

# Local variables...
raster = "F:\\...\\mClip_1"
raster_InterpolateShape = "F:\\...\\mClip_1_InterpolateShape"
# Process: Edit TIN...
gp.EditTin_3d(raster, "raster_InterpolateShape Shape <None> softline true")

and the error message:

 Traceback (most recent call last):
 File "F:\....\test_editTin.py", line 26, in <module>
 gp.EditTin_3d(raster, "raster_InterpolateShape Shape <None> softline true")
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 %s.
ERROR 000800: The value is not a member of %s.
ERROR 000800: The value is not a member of %s.
Failed to execute (EditTin).

All extensions and everything is checked since it is exported from model builder. I suppose something wrong is just with first shp input

In ArcgisHelp ex for the input 3d shp name it shows the name with extension

..."masspntz.shp Shape <None> masspoints true"

And so I tried both, with extension and without, but the same errors come.

Any ideas, how can I get that TIN from feature automatically.. ???

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Sep 19, 2012 at 10:55
4
  • 1
    Post your script if you can. Commented Sep 19, 2012 at 11:14
  • The script or process of the script is clear from the error message, as the rest is just variable definition, tool adding and so on... Well, can post variable if that would change smth :/ Commented Sep 19, 2012 at 11:42
  • If you can give us the full script it will help with debugging. It is probably a small syntax error, but without the full code its hard to say what it is. Commented Sep 19, 2012 at 12:11
  • indeed it's just syntax. I've found that Arcgis requires here in a script a FULL PATH, so the problem can be solved simply adding variable and joining with the rest to be string.. : gp.EditTin_3d(raster, raster_InterpolateShape+" Shape <None> softline true") Commented Sep 19, 2012 at 12:13

1 Answer 1

2

Problem of the exporting was that I used local variables.. (Drag and drop from the same environment). And the problem of my script was that following the ArcgisHELP I also used local variables..

For scripting, when EDIT TIN, the full path with data source must be added, so insted just using variable, or local parameters:

gp.EditTin_3d(raster, "raster_InterpolateShape Shape <None> softline true")

should go (variable plus string and then also sapce is important):

gp.EditTin_3d(raster, raster_InterpolateShape+" Shape <None> softline true")

Hr... so simple..

answered Sep 19, 2012 at 12:20
1
  • Hi @najuste, I ran into similar problem. I tried below combinations. But none of them worked for me. arcpy.CreateTin_3d(shift_dx, "", shift_tin_source+" dx masspoints", "DELAUNAY"), arcpy.CreateTin_3d(shift_dx, None, shift_tin_source+" dx masspoints None", "DELAUNAY") and arcpy.CreateTin_3d(shift_dx, None, shift_tin_source+" dx masspoints None", "DELAUNAY"). Thought to share with you. Perhaps you can throw some more light on this. Commented Jul 10, 2017 at 1:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.