jpedder

Determine current workspace and default database

Discussion created by jpedder on Jan 4, 2013
Latest reply on Jan 4, 2013 by LDanzinger-esristaff
I'm running a script which includes TableToDomain (TTD) statements. TTD requires the current workspace and database.

The path of my project will vary depending upon who's using it, one might be c:\data and another might be c:\data\new or even c:\myproject etc. I've tried using 'CURRENT' and %workspace% to establish the current workspace and then database, but they don't appear to work.

Is there a way to determine what the current default database for the working mxd without explicitly specifying the path?

Thanks

Outcomes