Hi Adrian, I can't think of a way to rename the attribute names except by TCL. @RenameAttributes doesn't appear to permit multiple changes - the AttributePrefixer help says it uses this function, but doesn't.
The good news is that I think the TCL would be fairly simple. In fact, I'm almost tempted to suggest that the easiest way would be to grab the transformer definition for AttributePrefixer (from fmesuite.fmx) and create a new transformer, replacing the "prefix appending" part with a "strip off these characters" part. That way you have the outline of the TCL already defined, and just need to insert the correct replacement function. I'll maybe have a try at this if I have time... but will definitely look up the TCL command you would need to use. 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], "amp_starapic" <[EMAIL PROTECTED]> wrote: > > Hi Everyone > > Happy new year to all! > > I am using workbench to create an automatic translator. The source > features have a number of attributes all beginning with a prefix, e.g. > "data_feat_". I would like to be able to automatically rename the > attributes by removing this prefix. I do not have a full list of the > attributes that have the prefix, hence the need to make it quite generic! > > I suspect this may involve TCL which i afraid I do not much experience of! > > Does any one have any suggestions? > > Many Thanks > > Adrian > 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/
