Python help for default value in attribute field

341
2
02-25-2020 08:36 AM
CurtHale
New Contributor II

I would classify myself as a beginner at best using Arcmap.  I currently have an attribute table and feature class called WaterMeter and a field in that attribute table called City_Mater.  The field properties are text and a 50 character limit.  I have tried running python to assign a default field value for all of the individual features for the field City_Mater field so that the default value is Copper.  I have tried to run it several different ways in the python tool but with no success.  Could someone provide me with some insight?  Thanks

0 Kudos
2 Replies
DavidPike
MVP Frequent Contributor

Hi,

You can assign a default value in the fields tab of the feature class, right-click properties on the FC in catalogues or catalog window.

If you need this done in python can you screenshot your inputs to the assign default to field method?

0 Kudos
DanPatterson_Retired
MVP Emeritus

If more people would set appropriate defaults, it would solve lots of problems

/blogs/dan_patterson/2019/11/28/the-solution-to-null-in-tables 

0 Kudos