Skip to main content
Solved

HOW CAN WE CALL PYTHON SCIRPT IN FME

  • July 6, 2020
  • 5 replies
  • 31 views

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

Best answer by deanhowell

Have you looked at:

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

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.

5 replies

deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • 315 replies
  • Best Answer
  • July 7, 2020

  • Author
  • 2 replies
  • July 7, 2020

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..


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • July 7, 2020

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


  • Author
  • 2 replies
  • July 7, 2020

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..

 


deanhowell
Influencer
Forum|alt.badge.img+24
  • Influencer
  • 315 replies
  • July 7, 2020

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.