Truncate/Append code

المشرف العام

Administrator
طاقم الإدارة
I've tried to write some python code to update ArcMap Feature Classess.

I want the script to truncate the old data and populate it with the new data. My code bombs out though...I get the following error (code is below)anyone have any ideas?

SyntaxError: invalid syntax (Update_Truncate.py, line 20) Failed to execute (Script2). Failed at Tue Sep 29 08:40:32 2015 (Elapsed Time: 2.62 seconds)

Import arcpy module

import arcpy import os import string import sys

Variables:

OldFeatureClass = arcpy.GetParameterAsText(0) NewFeatureClass = = arcpy.GetParameterAsText(1)

Process: Truncate Table

arcpy.TruncateTable_management(OldFeatureClass)

Process: Append

arcpy.Append_management("NewFeatureClass", "OldFeatureClass", "TEST", "", "")



أكثر...
 
أعلى