Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import arcpy
- import datetime
- import os
- arcpy.env.workspace = r"Database ConnectionsConnection to gisDB(edits).sde"
- print("env.workspace completed successfully")
- out_folder_path = "C:Users**Sonic GISReport"
- nowstart = datetime.datetime.now()
- YearMonthDay = nowstart.strftime("%Y_%m_%d")
- out_name = "Report_" + YearMonthDay + ".gdb"
- # Execute CreateFileGDB
- gdb = arcpy.CreateFileGDB_management("C:Users**GISReport", out_name)
- print("workspace created, exporting feature classes...")
- in_features = ["Poles.shp"]
- out_location = gdb
- arcpy.FeatureClassToGeodatabase_conversion(in_features, out_location)
Add Comment
Please, Sign In to add comment