# Name: GenerateGeodatabseFromExcel_sample.py
# Description: Uses the contents of a Microsoft Excel file (.xls or .xlsx) to create a geodatabase
# Import System Modules
import arcpy
# Check Out Extensions
arcpy.CheckOutExtension('Foundation')
# Setting the environment
arcpy.env.overwriteOutput = True
# Setting Local Variables
in_excel_file = r'C:\Data\Excel\MGCP_TRD_4_6.xls'
out_geodatabase = r'C:\Data\GDB\MGCP_TRD_4_6.gdb'
# Execute Generate Geodatabase From Excel
arcpy.topographic.GenerateGeodatabaseFromExcel(in_excel_file, out_geodatabase)
# Check In Extensions
arcpy.CheckInExtension('Foundation')