Hi
Here a little tcl comes ind handy
this function returns the concatenade value off all the attributes,
seperated by a ;
proc concatAll {} {
set retVal [list]
set pat {fme_|mapinfo_|multi_}
foreach attr [ FME_AttributeNames ] {
if { ![regexp -- $pat $attr ] } {
lappend retVal [ FME_GetAttribute $attr ]
}
}
return [ join $retVal \;]
}
a few notes about the function
- the foreach loop run trough all attibutes
- and append the value to the tcl list 'retVal'
- we use the regexp to remove some off the system and formates attributes,
just change the pattern to suit your dataset
- in the end we join the values of the list with a ; and returns the value
to fme
to implement it in wb save the function in a file my.tcl and then use the
tcl caller to execute it, as the tcl expressiion give the name of the
function and set your attribute as the destination
Peter Laulund
_________________________________________________________________
Få 250 MB gratis lagerplads på MSN Hotmail: http://www.hotmail.com
Get the maximum benefit from your FME, FME Objects, or SpatialDirect via our
Professional Services team. Visit www.safe.com/services for details.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/fme/
<*> 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/