0

I am in the infancy stage with python and have no idea where to start. I simply want to replace values in a field from a feature layer with the values in a field from a table I joined (to the feature layer) using the Calculate Field tool in ArcGIS Pro.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Oct 25, 2017 at 18:34

1 Answer 1

2

Pretty straightforward in the Calculate Field geoprocess window - if you wanted to populate a field named "Box Name" with the values from the joined field "Second Layer.Box Name" you could either (in the calculate field text box at the bottom of the window that starts with the "=" symbol) type:

[Second Layer.Box Name]

with the VBScript radio button selected, or:

!Second Layer.Box Name!

with the Python radio button selected. Then just click "OK". Make sure that the new field you are calculating has the same Type (such as Text, Double, Short) as the one you are copying over. Or, as a Python command:

arcpy.CalculateField_management("Joined Layername", "Box Name", "!Second Layer.Box Name!", "PYTHON")
answered Oct 25, 2017 at 18:58

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.