Python field calculations across different fields

322
1
11-08-2023 01:04 PM
Labels (1)
lilyblackcpud
New Contributor

I am trying to run a field calculation in ArcMap using conditional statements using Python Parser. My goal is for it to recognize phasing text (ex. 'ABC') from the field (gs_phase), and return the field that contains the shape length (gs_line_defined_length), and multiply it by a value that matches the phasing (4 for 'ABC' example). I am trying to calculate how much conductor is in our system, but multiphased spans are captured under one line segment (even if there are multiple lines).

I am very much a Python beginner, and I have gotten it to run without errors, but it produces only null values in my new field, any insight would be greatly appreciated.

script_example.PNG

0 Kudos
1 Reply
lilyblackcpud
New Contributor

Update: I learned I just have to be patient with ArcMap, because after reopening the map document, it ran, and my null values were updated.

 

0 Kudos