Select to view content in your preferred language

Issue with the Line - Snap to Manhole Attribute Rules - Sewer Utility Network Foundation

433
0
11-30-2023 10:19 AM
MikeMillerGIS
Esri Frequent Contributor

All,

  We identified an issue with the Line - Snap to Manhole and Line - Snap to Manhole Batch attribute rule in the Sewer Line class of the Sewer Utility Network Foundation model.  It no longer works with 3.2 due to a fix in the FeatureSetByName function.  The includeGeometry parameter is incorrectly set to False in the attribute rule.  This still returned the geometry on previous versions of ArcGIS, but that bug has been resolved.  This needs to be changed to True for these rules to work as they require the geometry of the snapped points.  

To resolve this issue in your environment, make the following change to the attribute rules.

Line 76 in the Line - Snap to Manhole, look for the get_snapped_point_info function.

function get_snapped_point_info(point_geo) {
    // Get point that intersects point_geo. Must match an AG and AT group specified in pipe_snap_types.
    var device_fs = get_features_switch_yard($datastore, device_class, ["globalid", "assetgroup", 'assettype'], false);
    var snapped_feats = Intersects(device_fs, Point(point_geo));
    return First(Filter(snapped_feats, pipe_snap_types));

The last parameter, of get_features_switch_yard - change to true, like below 

function get_snapped_point_info(point_geo) {
    // Get point that intersects point_geo. Must match an AG and AT group specified in pipe_snap_types.
    var device_fs = get_features_switch_yard($datastore, device_class, ["globalid", "assetgroup", 'assettype'], true);
    var snapped_feats = Intersects(device_fs, Point(point_geo));
    return First(Filter(snapped_feats, pipe_snap_types));

 

That will resolve your issue with this rule

0 Replies