Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Electric Utility Networks with ArcPy: Trees, Traces & AI
New

Electric Utility Networks with ArcPy: Trees, Traces & AI

Find a feeder's or closure's parent, check spare capacity, import PDF/CAD splice drawings and build ArcPy tools with AI
Created byHendo A
Last updated 10/2026
English

What you'll learn

  • Model a radial electric network (substation, feeder, cable, splice closure, branch, service point) as a tree in Python and NetworkX
  • Find any asset's parent, feeder and path to the substation, and everything downstream of a closure
  • Use pre-order traversals for feeder schedules and post-order roll-ups for customers, load and spare capacity
  • Decide whether a new feeder or splice closure can connect, update used and spare counts safely, and test it with pytest
  • Run Utility Network upstream, downstream and subnetwork traces with arcpy and match them to your own tree code
  • Read associations and dirty areas, and write a weekly network health report
  • Extract splice data from DXF (ezdxf) and PDF (pdfplumber, PyMuPDF) drawings, validate it and update the network
  • Ground AI coding agents in Esri docs with rule files, and review AI-written ArcPy before it touches data

Course content

4 sections • 17 lectures • 1h 34m total length
  • Welcome from Hendo0:34
  • Riverbend Power: thinking in trees6:41

    Meet Riverbend Power, a radial electric network, and store it as a tree in Python and NetworkX to answer three questions: who feeds this, what is below it, and is there room?

  • Up and down the tree5:50

    Walk up to the parent, feeder and substation, and down to every descendant, to find which feeder and closures feed service point SP-0090.

  • Pre-order and post-order traversals5:58

    Use a pre-order traversal for a top-down F4 feeder schedule and post-order roll-ups for customers, load and spare trays.

  • Chapter project: can the new closure connect?5:59

    Decide whether new closures SC-031 and SC-032 and a new feeder F5 can connect, update used and spare counts safely, and prove it with pytest.

  • Quiz: Network trees in Python

Requirements

  • Comfortable with ArcPy cursors, script tools and Python toolboxes (Courses 1 and 2)
  • ArcGIS Pro 3.7 (3.x works for most of it); building or editing a Utility Network needs a Standard or Advanced licence
  • Most notebooks also run in any Python 3 with the provided CSV and GeoPackage data
  • An AI coding assistant (for example Cursor or Claude Code) is useful for chapter 4 but not required to follow along

Description

This course contains the use of artificial intelligence.

The questions your network team asks every day, answered in Python. Who feeds this splice closure? What hangs below it? Is there room for one more?

This course follows Riverbend Power, a (fictional) electric utility with a radial network: substation → feeders → cables → splice closures → sub-closures and branches → service points. Every closure carries real capacity fields: ports, splice trays, fibre splices and ducts, each with capacity, used and spare. You'll turn that hierarchy into a tree, walk it up and down, and build tools that decide, before anyone digs, whether a new feeder or closure can connect.

Built for the current versions: ArcGIS Pro 3.7, Python 3.13 and ArcPy 3.7, with NetworkX (ships with Pro), ezdxf, pdfplumber and PyMuPDF (added to a cloned environment). Where Pro 3.7 changed things, like the deprecated shortest-path trace type, the video says so.

What's inside

  • 4 chapters, 16 short videos (5–6 min) and a short welcome, about 1 h 30 min in total.

  • A task notebook for every video with # TODO gaps, hints and a checker, plus a separate solution. Most of it runs offline on CSV and GeoPackage copies of the network; the Utility Network parts run in ArcGIS Pro.

  • A project at the end of every chapter: a closure-capacity check, a weekly network health report, a drawing-to-network importer and the Closure Capacity Planner toolbox (the first and last come with pytest tests).

Chapter by chapter

  1. Network trees in Python. Parent pointers, ancestors and descendants, pre-order feeder schedules, post-order roll-ups of customers, load and spare trays, and a can_connect check for new closures and feeders, with pytest.

  2. Utility Network in practice (electric). Domain and structure networks, subnetworks and controllers, upstream/downstream/subnetwork traces with arcpy un Trace, containment and attachment associations, dirty areas and a decoded error bitmask in a Monday health report.

  3. From drawing to network. Read a CAD splice drawing (DXF) and a PDF splice schedule into the same record, validate it against the network (duplicate fibres, missing fibres, spare capacity), and write it into the geodatabase in one all-or-nothing edit.

  4. Building ArcPy tools with AI agents. Docs-first habits, grounding an agent with an AGENTS md (versions, doc sources, data model, testable rules), prompting, catching invented functions and silent bugs, and shipping a reviewed Python toolbox.

How this course is made

The narration uses an AI voice, and AI tools helped produce the slides and course materials. The curriculum, the Riverbend storyline and the tickets come from Hendo's own utility GIS work. ArcGIS Pro screens are shown as animated, illustrative mock-ups (not Esri artwork), so you can follow every step; you then run the same steps in your own copy of ArcGIS Pro.

This is Course 3 of a 3-course path: Python for ArcGIS Pro 3.7: ArcPy for Complete Beginners → Automate ArcGIS Pro 3.7 with Python: Tools, Maps & pandas → Electric Utility Networks with ArcPy: Trees, Traces & AI. If you're comfortable with cursors, script tools and .pyt toolboxes, you can start here.

Who this course is for:

  • GIS analysts and developers at electric, fibre and telecom utilities
  • Network planners and design engineers who check feeders, closures and spare capacity by hand today
  • Utility Network administrators who want to automate traces, validation and reporting with Python
  • GIS developers who want a safe, repeatable way to use AI agents for ArcPy