access feature class properties through ValueTable?

Discussion created by AdamCox on Jan 14, 2013
Latest reply on Nov 1, 2013 by AdamCox

I'm working on a script that basically does one simple thing, append a bunch of feature classes in one geodatabase to corresponding fc's in another geodatabase (there's more to it, but there's no problem with that path of the script).  I'm creating a log file to record the results, and there's something I want to do, but I just don't think it'll work.

As parameters for the tool, I have only the target geodatabase, and then a multivalue input for all of the feature classes.  In the script, the latter parameter comes in as a ValueTable, and I'm able to do what I need by accessing the feature classes with a while loop. 

However, I'm hoping to be able to take the first feature class, and work backward to automatically locate my newly created logfile in the folder that holds the original geodatabase.  I struggled with this for a while, and found that the problem is that the values in the ValueTable to do not have paths.

I've looked for a way of finding the containing folder/workspace of a feature class, but have come up short.

Any ideas?  Of course I can add a parameter that can just be filled in with a folder path, but I'd prefer to automate this.