
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?
Walk up to the parent, feeder and substation, and down to every descendant, to find which feeder and closures feed service point SP-0090.
Use a pre-order traversal for a top-down F4 feeder schedule and post-order roll-ups for customers, load and spare trays.
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.
Map our tree onto Esri's Utility Network: domain and structure networks, tiers, subnetworks, controllers, terminals and network attributes.
Run upstream, downstream and subnetwork traces for closure SC-010 with arcpy.un.Trace and match the results to your own tree code.
Read containment and attachment associations to see what is inside a manhole or a closure, from splice trays to aerial closures.
Build the Monday network health report: dirty areas, a decoded error bitmask, closure capacity and feeder load.
Read SC-031's CAD splice drawing (DXF) with ezdxf and turn its blocks and text into a clean splice record.
Extract the same splice record from a PDF splice schedule with pdfplumber and PyMuPDF.
Validate the drawing against the network (duplicate fibres, missing fibres, spare capacity) with tested rules, clear refusal reasons and a speed check.
Write the validated drawing into the geodatabase in one all-or-nothing edit in ArcGIS Pro: import SC-031 and refuse SC-032.
Build the 'closures with fewer than 2 spare trays' report by hand, docs first, so you know what good ArcPy looks like before an agent writes any.
Ground an AI coding agent with an AGENTS.md and docs snapshots: versions, doc sources, the data model and testable rules.
Prompt an agent to connect a closure, then review the AI-written arcpy and catch five bugs, including invented functions and silent errors.
Ship the agent-built Closure Capacity Planner Python toolbox, reviewed and tested, and run it in ArcGIS Pro for a yes/no answer plus a reserve.
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
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.
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.
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.
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.