I created the following model based on the fields that is needed for asset valuation. Please see below.
I would like to auto-populate the "Code" field basde on certain criteria, for example.
The "size" field determines the Code field: if a pipe is 110mm thick a Code of "P_1" is added to the code field. This is later used to lookup the unit rate of said pipe.
Now here is where i am stuck: I would like to write a python script that will auto populate the Code field for me but the size value is not always constant. In some cases the pipe will be attributed the size of 108mm. I would like the script to then assign the "P_1" code to this pipe as the is a 2mm difference.
Is this possible within Arcmap or will i need to use a post gis program?