Hi Markus, It would depend on how you are processing multiple files. If you do this by selecting all of the files in the "source dataset" settings, then the Counter should always continue in the sequence for all features. You could do this and use a fanout to split out the data again, though it's not too efficient for a large set of data.
If you do this with batch deploy, then each dataset is a separate run, and so I think the Counter would revert back to zero each time. There are other ways of assigning an ID number, eg record the next ID to use in a separate dataset or database. For example, have a small FFS dataset that contains just one feature with one attribute called nextID. Then edit your workspace. At the end of the workspace have it find the max ID number (StatisticsCalculator), add 1 (expressionEvaluator) and write that to your FFS to record the next ID. Then at the start of the workspace add a reader to read the FFS and a FeatureMerger to add it onto the incoming features. Use that value to offset the starting-at-zero count (ExpressionEvalutor: ID = Count + NextID) Does this make sense? Hope so. Guess it would be nice if we had an FME global variable that persisted from one run to the next, then this wouldn't be an issue. Maybe I'll suggest it. Mark Mark Ireland, Senior Product Specialist Safe Software Inc. Surrey, BC, CANADA [EMAIL PROTECTED] http://www.safe.com Solutions for Spatial Data Translation, Distribution and Access --- In [email protected], "markus.tigiser" <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a question about creating Unique ID's. > This is the initial position: > As input features I have dxf-files with different feature types. > Each feature runs through a counter and gets an unique ID. > > What I want to do now: when the second dxf-file runs through the > workspace the counter should start at the maximum count value+1 the > first run outputs. > The third dxf-file should start at the maximum count value+1 the > second run outputs... > > So that in the end each feature running through this workspace has an > unique ID. > > > Hope someone could help me > > Markus > 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/
