5

I need one attribute value from FME and use it in python script as a parameter. How can I do this? Do I have to have def_init_() def input(), def close() also?

asked Jun 12, 2012 at 9:56
1

1 Answer 1

6

To view the API documentation, navigate to your FME installation folder and go to this location: help\python\apidoc\index.html

In this case you'll want to use the GetAttribute method:

getAttribute(attrName)

Get the value of the named attribute. A return of None indicates the attribute does not exist.

Parameters: attrName (string) - The name of the attribute to get.

Returns: bool, int, long, float, string, list of string, or None The value of the named attribute.

answered Jun 12, 2012 at 16:29
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.