Constructing Attributes

Besides constant attribute values, FME also allows you to build values using string manipulation and arithmetic calculations. This is achieved using the menu opened by clicking on the arrow in the Attribute Value field and using one of the editor options:

This capability is very useful because an attribute is no longer a fixed value: it can be constructed from a mix of existing attributes and parameters. The two methods are the Text Editor and Arithmetic Editor.

Editor functions are mostly based around standard programming language syntax. The text editor is based around the language Tcl, while the arithmetic editor around C.


FME Lizard says…
Remember that besides existing to construct attributes, the text and arithmetic editors can be applied on most FME parameters. You wouldn't, for example, have to use the AttributeManager Arithmetic Editor to create an attribute to then use in the 3DForcer transformer; you could instead use the arithmetic editor directly in the 3DForcer itself.

FME Lizard asks...

Q) Do you know which transformers can be used to create attributes? Select all that apply:

AttributeCopier
AttributeCreator
AttributeManager
AttributeRenamer

A) The AttributeCreator is obvious and - hopefully - so is the AttributeManager. Other transformers may have allowed attribute creation at some point, but those capabilities should no longer be needed.

results matching ""

    No results matching ""