HOW TO
The script in this article uses the MatchSource request to create matchable themes from those in a view.
Code:
'-- This script will build the geocoding indexes ArcView
'-- needs to match addresses to the street theme.
theView=av.GetActiveDoc
theThemes=theView.GetThemes
theStyleFN=AddressStyle.GetDefStylesODB
For each theTheme in theThemes
theStyle=AddressStyle.FindStyle("US Streets with Zone")
theFTab=theTheme.GetFTab
theList={theFTab.FindField("L-f-Add"),
theFTab.FindField("R-f-Add"),
theFTab.FindField("L-t-Add"),
theFTab.FindField("R-t-Add"),
theFTab.FindField("FdPre"),
"",
theFTab.FindField("FNAME"),
theFTab.FindField("FTYPE"),
"",
theFTab.FindField("ZIPL"),
theFTab.FindField("ZIPR")}
theSource=MatchSource.Make(theStyle,theTheme,theList)
theTheme.SetMatchSource(theSource)
End
Note:
Make sure the items in the list of fields to find are the names of the fields in the street theme.
Get help from ArcGIS experts
Download the Esri Support App