[GIS] Invoke FME batch process/Process using c#

cfmepython

I want to invoke FME batch process and general FME processes using c#, I have no idea about FME, can anyone please let me know if anything like this is possible?or is it possible in python, any help on this is most welcome.
I'm thinking of making a system process file using c# which can automatically initiate FME process or FME batch at midnight.
Thanks

Best Answer

You can certainly schedule FME processes using FME Server.

However, I believe you can also call an FME workbench using Python. This could easily be scheduled using Task Scheduler or something similar. I found this pdf on the Safe website of a Conterra webinar. On page 11 (Sample #2), they show how you can call an FME workspace from a Python script using the following code:

import os

os.system('fme.exe AnyWorkspace.fmw \
    --SourceData AnySource \
    --DestinationData AnyDest \
    --AnyParam ParamValue')

The questions posted here and here might also be of assistance.