Hi Steve.
 
You can loop by creating a Custom Transformer (right-click anywhere in the 
canvas...). Inside this you can then on the right-click menu choose Insert 
Transformer Loop. The "Loop" has a setting, where to send the data sent to it.
A nice option is to insert an input node that you can redirect the 
Loop/features to, and hide this INPUT node from Transformer interface.
 
But, nothing of this is what you want or need to do, inorder to output data to 
different files.
 
The sample workspace attached (made in build 4207) has a Custom transformer 
showing what I described earlier + an output setting that outputs each line to 
its own shapefile depending on its OBJECTID.
 
Good luck.
 
/Nisse

________________________________

Från: [email protected] [mailto:[EMAIL PROTECTED] För snelsons2006
Skickat: den 13 december 2006 23:36
Till: [email protected]
Ämne: [fme] Create a Looping FMW



Hi again all, sorry for the three posts in as many days, but trying 
to do some things for the first time using FME.

I have an FME that reads a personal GDB table. It starts off by 
reading a table, and I use an Attribute Filter to manually filter 
out one record based on a number in this table's field. Depending 
on what the value is of this filtered record, the FME uses this 
value to start doing multiple joins and outputs a final file 
containing certain values/info.

Do you know a way to run this FME so that it reads this first table 
(single sourcedataset), and cycles/loops through so that it 
runs/processes/outputs a file for each record in this table??? So 
if the table has 100 records, I would run the FME and it would read 
the first record, process it, and spit out a file, then it would 
read the next record, process it, and spit out a file - and so 
on.....ending up with 100 output files.

I've never used TCL before, so if this is possible in FMW that would 
be ideal. Could I use the Looping transformer to do this?



 

Attachment: fmesupportsample.fmw
Description: fmesupportsample.fmw

Reply via email to