Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Thank you. I will check it. – Z77 Jun 13 '12 at 5:48

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:


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.

share|improve this answer
Thank you again! – Z77 Jun 13 '12 at 5:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.