On 03 Aug 2007, at 11:27 AM, kathy.irwin wrote:
From what I can tell, there is no way to loop through elements as we
did in TCL. Interestingly, all the transformers that use lists call
TCL instead of Tcl2, so I think this is a known thing?
The reason that pseudo-attributes like $FME_Attributes are gone in
@Tcl2 is the same reason that @Tcl2 exists in the first place: all
of the binding to attributes for each invocation of @TCL was really
slowing things down.
The downside is that it means you can't use the nice "array get"
functionality directly. The closest thing you could easily do would
be a slight modification to Mark's code that filters out the
attributes you want.
I haven't tried this, but I don't see why it wouldn't work:
set attrs [lsearch [FME_AttributeNames] $points{}.SEIS_PT_LONG]
foreach name $attrs {
set value [FME_GetAttribute $name]
...
}
Cheers,
-g