JD,
> My question is quite similar to Steven's, except that I have been
> using Workbench. My Source Datasets are for U.S. counties, and I'd
> like to allow the user to specify a county name and destination folder
> in the FME Mapping File Arguments window, and then the full
> path/filename for Destination Datasets to be built from that (using
> county name as filename). I know it's easy to set the path and name
> for a single Destination Dataset, but I have 7 of them (all text
> files, each with a different custom file extension), and since they're
> all going to the same place, I'd rather not have 7 different
> path/filename parameters to specify at runtime.
>
> I gather from this thread that this sort of thing is possible,
> but does it absolutely require a macro? If so, can these macros be
> easily integrated into Workbench? I've never created a Custom Mapping
> File before.
I'd recommend command line/batch file parameters.
E.g. your workbench is called foo.fmw. The parameters it takes are a
source dataset location and a destination dataset location.
Create a batchfile called run_foo.bat. It's contents should be:
@echo off
fme foo.fmw --SourceDataset C:\SourceData\%1 --DestDataset C:\DestData\%1
(line wrapped, be careful with that... also check the FME variable names)
So, assuming you have your source data in C:\SourceData\[county name]
you can run this by entering "run_foo [county name]" on the command line.
--
Hans van der Maarel
Red Geographics
www.redgeographics.com / [EMAIL PROTECTED]
For insights into what's up at Safe Software and what's on the development
horizon, visit Safe's blog at spatial-etl.blogspot.com.
Safe Software has also made slides available that outline enhancements planned
for FME 2007. The slides are from the "Road Ahead" presentation given on Day 2
of the FME Worldwide Users Conference. To view these slides, visit
www.safe.com/2006uc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/fme/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/fme/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/