Hi Adrian,
Ah... this would be one of the reasons we don't recommend our users
writing their own transformers from scratch - the obscure syntax that
leads to problems like this when you don't know what you are doing -
and one of the reasons I work in support and not development! I will
see what I can do to fix it.

Regards,

Mark


--- In [email protected], "amp_starapic" <[EMAIL PROTECTED]> wrote:
>
> Hi Again
> 
> Many thanks for the help with this problem, every thing works great!
> 
> I have added this as a transformer into workbench which is fine. As
> part of my process i have an attribute keeper following this and I can
> see from the interface drop down list that the attribute names have
> not changed! If I do a visualizer at this point the attribute names
> have changed! 
> 
> Is is not the use of the attribute keeper that is the problem it is
> just where I noticed the problem!
> 
> Is there something I need to do to update the interface, or is this
> just a by products of using TCL to change attributes. 
> 
> Many Thanks
> 
> Adrian
> 
> 
> 
> 
> 
> 
> --- In [email protected], "mark2atsafe" <mark.ireland@> wrote:
> >
> > OK - having had it pointed out that an end-of-string test should be
> > XXXX$ (and not $XXXX) I've updated the transformer to work on either
> > the start or end of the attribute name. Still uses TCL though...
> > 
> > Mark
> > 
> > --- In [email protected], "peter laulund" <peter_laulund@> wrote:
> > >
> > > 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" <mark.ireland@>
> > > >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
> > > >support@ http://www.safe.com
> > > >Solutions for Spatial Data Translation, Distribution and Access
> > > >
> > > >
> > > >--- In [email protected], "amp_starapic" <amp_starapic@> 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/
 

Reply via email to