Question

Which FME Python option to use?

  • 9 August 2019
  • 2 replies
  • 0 views

I have an ArcPy script that is simply renaming ~40 datasets in an ArcSDE database.

 

I'd like to run it once by Master FME workspace is complete (set of workspace runners ), so i had thought of using the Shutdown Phyton Script in workspace parameters. However i am very new to FME and to Python to be honest, so it's all a bit confusing (even after reading the information relation to the Python transformers etc).

Can i simply copy and paste my script into the blank window of the script parameter? i.e. import arc py, list variables, include updates to be made etc? or is there a way of including the file path to the python script that sits on my c:drive and have FME activate it?

 

Thank you in advance


2 replies

Badge

Try using python Caller transformer... It may solve your issue.

Userlevel 4
Badge +25

Here's some resources that can help you get on your way with Python in FME:

https://knowledge.safe.com/articles/706/python-and-fme-basics.html

http://cdn.safe.com/resources/webinar-data/conterra-python-webinar-slides.pdf

Reply