Solved

Dynamically Create FileGeodatabase output?

  • 19 August 2019
  • 1 reply
  • 8 views

Badge

I have a input file geodatabase that just has points. The workbench first uses the file name extractor transformer to get info on the input file. I use the results from the file name extractor to build out the output file path because I want it to be dynamic.

 

For Example

Input: C:/Temp/Input.gdb

Output: C:/Temp/Output.gdb (Dynamically created based on the file dir of the Input, name would also be generated)

On the output file geodatabase destination fanout directory I put in the user param "OutputDir" that is blank to start but filled out by an attributeCreator that overwrites the value after the file name extractor transformer runs, same for the output filename but it does not seem to work dynamically and the value must be hardcored in the writer to work?

icon

Best answer by tforward 19 August 2019, 17:14

View original

1 reply

Badge

I got it to work by sending the dynamically created path name as an attribute instead of a User Param. Then in a FeatureWriter setting Dataset to the attribute

Reply