Skip to main content

Hello folks,

Simply, what I am trying to do with my script, is create a service that allows the person running my process on FME Server to add a Plan ID # to the start of a file deliverable name. Example:

Current output file name: Complete_Data_DWG.dwg

Published Parameter "PLAN_ID" value: 24883

Desired output file name: 24883_Complete_Data_DWG.dwg

I have already tried using "$(PLAN_ID)_Complete_Data_DWG.dwg" but it only returns that exact string (with $(PLAN_ID) and not the user set value).

Basically my script works and I am just trying to make it more aesthetically pleasing and to also provide better file management for my clients.

Thank you for your time,

Moe

 

Try using FME_MacroValues:

FME_MacroValues["PLAN_ID"]_Complete_Data_DWG.dwg


If the file name is also a published parameter, it might get evaluated before the PLAN_ID parameter.

If you do not need the file name to be published, convert it into a private parameter (right click menu on the parameter) and it will get evaluated after the PLAN_ID and should get the right value.


Hi @moe

would you mind sharing your workspace? Or maybe, could you please post a screenshot that shows how you concatenate the new file name and where the name is used?


Reply