Select to view content in your preferred language

How can I create a JunctionJunctionConnectivity association via UtilityNetwork.AddAssociation?

194
0
03-07-2025 06:54 AM
sgn_GSI
Occasional Contributor

The add-in I work on processes a design from an XML file to add/change/delete features and associations within a chained-edit operation. With the move to the 3.X SDK, we then had to pivot using a single edit operation. We then encountered an issue with the EditOps failing with a nondescript error message.

I then stumbled upon the following ESRI bug that explain's the current behavior we're seeing.

https://support.esri.com/en-us/bug/the-editoperationcreate-or-delete-function-returns-the-bug-000161...

I have since found a workaround by using UtilityNetwork.AddAssociation instead of EditOperation.Create(AssociationDescription). However, that came with complications.

I've encountered an issue when trying to create and add JunctionJunctionConnectivity associations to the UtilityNetwork.

The Association class does not provide any way to set terminal configurations. I'm left with the following error: "A terminal must be specified becauset the terminal configuration of..."

sgn_GSI_0-1741358964733.jpeg

Is there any known workaround that allows me to inject a JunctionJunctionConnectivity association into the Utility Network?

0 Kudos
0 Replies