Skip to main content

HOW CAN I CALL A PYTHON SCRIPT IN FME, IT IS SIMPLE ONE CREATE A RANGE OF NUMBER AND WRITES TO A TEXT FILE IN RANGE LOOP

Have you looked at:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Transformers/Transformers/pythoncaller.htm


thank you for the answer..

BUT NEED TO STUDY MORE FROM OBJECTS AND FUNCATION IN PYTHON.

It is not copy code from ArcGIS help and run it..


It's worth considering whether you need to use python at all, often things that you might use python in ArcGIS for can be accomplished without python at all in FME.

If you post more details on exactly what you want to achieve then people might be able to provide more help


It's worth considering whether you need to use python at all, often things that you might use python in ArcGIS for can be accomplished without python at all in FME.

If you post more details on exactly what you want to achieve then people might be able to provide more help

thank you @ebygomm

 

i am trying to create a annotation layer in fme using python script below.. I want to use the label engine used by Esri. Below is sample code

 

import arcpy

 

arcpy.env.workspace = "D:/QC2017/contour/results/TEST1.gdb"

 

arcpy.ContourAnnotation_cartography("ONEMT", "D:/QC2017/contour/results/TEST1.gdb", "ELEVATION",2500, "ContourGroupLayer", "BLACK", "","PAGE")

Can we achieve this in FME.. without python script.

labeler is there but create to many label on the contour lines..

 


It's worth considering whether you need to use python at all, often things that you might use python in ArcGIS for can be accomplished without python at all in FME.

If you post more details on exactly what you want to achieve then people might be able to provide more help

I agree with @ebygomm that it sounds like something FME could do. Can you share an image of the result you are trying to acheive.


Reply