# Name: ModifyRouteIdPadding_inline.py
# Description: Modifies the padding, null, and length properties for fields that are part of a multifield route ID in the Python window.
# Requires: ArcGIS Location Referencing
# Check out license
arcpy.CheckOutExtension("LocationReferencing")
# Tool variables
in_feature_class = r"C:\Data\DOT.gdb\LRS\StateRoutes"
## Values format: "Field Length VariableLength EnablePadding PaddingCharacter PaddingLocation PadifNull AllowNullValues;Field2......"
route_id_padding = "RouteSystem 3 false true @ LEFT false false;RouteNumber 10 true true 0 LEFT true true"
# Set current workspace
arcpy.env.workspace = "C:\Data\DOT.gdb"
# Execute the tool
arcpy.locref.ModifyRouteIdPadding(in_feature_class,route_id_padding)
# Check in license
arcpy.CheckInExtension('LocationReferencing')