Skip to main content
Archived

Get FME Version ++ as parameters

Related products:FME Form
  • October 17, 2019
  • 3 replies
  • 66 views

sigtill
Supporter
Forum|alt.badge.img+25

I want to get the following data

FME 2020.0.0.0 Beta (20190920 - Build 20090 - WIN64)

FME Desktop Professional Edition (floating)

As Parameters within a workspace to be able to write which version of FME converted the file. Is this possible both on Desktop and Server?


For instance:

FME_VERSION

FME_BUILD

FME_BIT

FME_PLATFORM

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+66

Some parts are parameters already:

$(FME_OS)

 

Windows

 

$(FME_PRODUCT_NAME)

 

FME(R) 2019.1.2.0

 

$(FME_BUILD_DATE)

 

20190829

 

$(FME_BUILD_NUM)

 

19630

 

 

When I needed the version and last saved date I read the running workspace and parsed it. But info about the software and platform running the workspace can't be gathered this way.


david_r
Celebrity
  • October 17, 2019

You can already access the following "hidden" parameters using either Python or the ParameterFetcher:

  • FME_BUILD_NUM (e.g. "19642")
  • FME_BUILD_DATE (e.g. "20191007")
  • FME_OS (e.g. "Windows")
  • FME_PRODUCT_NAME (e.g. "FME(R) 2019.1.3.0")

There doesn't seem to be a super obvious way of getting the "bitness" of FME, but you can use the following Python code somewhere within FME, which will return either 32 or 64 depending on the bitness of FME:

import struct bitness = struct.calcsize("P") * 8

You can get the FME edition and license type in Python like this:

import fmeobjects product = fmeobjects.FMESession().getAllProperties()['PRODUCT NAME'])

Example: "FME Desktop Oracle Edition (floating)".

If you look further into the FME session properties you can even find out which formats are currently licensed, e.g. how to check if your current FME license allows you to write to SDE:

can_write_to_sde = fmeobjects.FMESession().getAllProperties()['SDE WRITER'] == 'LICENSED'

All of this should work on both Desktop and Server.


jelle
Contributor
Forum|alt.badge.img+23
  • Contributor
  • October 23, 2019

I would primarily be interested in the 'FME_Platform' Parameter for creating different actions on FME Server / FME Cloud