addAssociation method

Future<void> addAssociation(
  1. UtilityAssociation association
)

Adds an association between two utility elements in this utility network.

Adding an association may also update the features that participate in the association.

Use UtilityNetwork.canAddAssociation to determine if you can successfully add this association.

This method requires that:

Parameters:

  • association — The association to add.

Return Value: No value.

One of the following error codes may be set: