Skip to main content
Question

How to Perform a Utility Network Model Subnetwork Trace Using Python Caller or Python Creator in FME?

  • March 27, 2025
  • 1 reply
  • 13 views

chandu
Participant
Forum|alt.badge.img+1

Hello FME Community,

I am working with a Utility Network Model (UNM) in ArcGIS Pro and need to perform a subnetwork trace using FME. Since FME does not have a dedicated transformer for UNM traces, I am exploring options using the Python Caller or Python Creator to execute this operation.

What I Need Help With:

  1. Python Script Guidance:

    • How can I use the arcpy module (or another approach) within FME's Python Caller/Creator to perform a subnetwork trace.

    • Are there any specific UNM functions or ArcPy methods that work best for this?

  2. Input/Output Handling in FME:

    • i need to pass subnetwork name  from FME to Python?

    • How can I return the traced features back into the FME workflow?

 

Environment:

  • FME 2021.x

  • ArcGIS Pro 3.x

  • Python 3.x

1 reply

trentatsafe
Safer
Forum|alt.badge.img+6

Hi ​@chandu

 

There are a couple of ways this can be done either via Python or through the Rest API, both methods can be found below.

REST API - https://developers.arcgis.com/rest/services-reference/enterprise/trace-utility-network-server/
Python - https://pro.arcgis.com/en/pro-app/latest/tool-reference/utility-networks/trace.htm 

If you don’t know the name of the Subnetwork that you want to trace to begin with, you will have to query the table to grab the Subnetwork name and pass that in along with any of the other arguments/parameters required by each of the above methods. 

If going the Python method, I might recommend getting an example run in ArcGIS Pro and then have it generated as Python(there is an option to have a tool scripted as Python) just to get you started with how the Python should look. That can then be altered in FME etc.

I hope that helps!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings