Sunday, 25 December 2016

file geodatabase - Setting default gdb from ArcPy?


I created a new gdb by


arcpy.CreateFileGDB_management('e:/Rstack', 'new.gdb')
arcpy.env.workspace = 'e:/Rstack/new.gdb'

But how to set this new gdb as my default gdb by arcpy, without opening ArcGIS desktop? Setting env workspace does not seem to work here.




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...