Hi Mark I just tok a look at your first transformer - Bravo - I think it would worke
I just have this comment, you should not use the TCL function as it is quit slow comparede to Tcl2 and In Tcl2 you dont have the FME_Attributes array, in stead you have a group off functions allowing you to manipulate and query the attributes this is mutch faster and more flexible you could try and replace TCL with Tcl2 and the tcl stuff with the function i just mailede to the lsit Peter >From: "mark2atsafe" <[EMAIL PROTECTED]> >Reply-To: [email protected] >To: [email protected] >Subject: [fme] Re: Automatic attribute renaming >Date: Wed, 10 Jan 2007 19:52:22 -0000 > >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 > > > > _________________________________________________________________ Opret en personlig blog og del dine billeder på MSN Spaces: http://spaces.msn.dk 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/
