How to Calculate Field to six digit number from another field concatenated with State

المشرف العام

Administrator
طاقم الإدارة
I'm trying to calculate a field (Unique_ID) in arcpy that will bring in a six digit number from another field (Point_ID) in the table. I want to add the state plane code to the end of the Point_ID and have it calculate in the Unique_ID code.

I tried copying it from a python snipped to get what I want and this is what it gave me.

arcpy.CalculateField_management("SMON","Unique_ID","!PointID!","PYTHON","")I also have a string of all the state plane codes. I need to get the end of the state plane code added to the end of the PointID.


New Code just trying the "!PointID!"
Giving me this error:ERROR 000732: Input Table: Dataset SMON does not exist or is not supportedFailed to execute (CalculateField).

I set the environment to the database doing the calcs and ended up working for just the !PointID! part of the script. When I try to add ,+ "PointID!" + Con , it kicks back: ExecuteError: ERROR 000539: SyntaxError: unexpected EOF while parsing (, line 1)



أكثر...
 
أعلى