kdoconnell8939

Inserting row program

Discussion created by kdoconnell8939 on Mar 10, 2012
Latest reply on Mar 11, 2012 by ScottSugden
Hey all,
  I am trying to write a program that will allow the user to input their address in 4 segments (ie 555 Main Street, Los Angeles, California, 90024) and fill the information into a table i have created.  So far the code looks like this:

import arcpy
from arcpy import env

folder_path = r'E:\Geog173\Final_Project'
arcpy.env.workspace = folder_path
arcpy.env.overwriteOutput = True


#Create Table
arcpy.CreateTable_management(folder_path, "Address.dbf")
arcpy.AddField_management("Address.dbf", "StreetAdd", "TEXT")
arcpy.AddField_management("Address.dbf", "enterCity", "TEXT")
arcpy.AddField_management("Address.dbf", "enterState", "TEXT")
arcpy.AddField_management("Address.dbf", "enterZip", "DOUBLE")

The part I need help with is the code that will allow the user to input their address in ArcMap using our tool, and then take that information and insert it into the correct fields of the above created table.  Thanks in advance for your help!

Outcomes