<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Issue with the Line - Snap to Manhole Attribute Rules - Sewer Utility Network Foundation in ArcGIS Utility Network Questions</title>
    <link>https://community.esri.com/t5/arcgis-utility-network-questions/issue-with-the-line-snap-to-manhole-attribute/m-p/1355295#M3144</link>
    <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 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.&amp;nbsp; It no longer works with 3.2 due to a fix in the FeatureSetByName function.&amp;nbsp; The &lt;STRONG&gt;includeGeometry&amp;nbsp;&lt;/STRONG&gt;parameter is incorrectly set to False in the attribute rule.&amp;nbsp; This still returned the geometry on previous versions of ArcGIS, but that bug has been resolved.&amp;nbsp; This needs to be changed to True for these rules to work as they require the geometry of the snapped points.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve this issue in your environment, make the following change to the attribute rules.&lt;/P&gt;&lt;P&gt;Line 76 in the Line - Snap to Manhole, look for the get_snapped_point_info function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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));&lt;/LI-CODE&gt;&lt;P&gt;The last parameter, of get_features_switch_yard - change to true, like below&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That will resolve your issue with this rule&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2023 18:19:39 GMT</pubDate>
    <dc:creator>MikeMillerGIS</dc:creator>
    <dc:date>2023-11-30T18:19:39Z</dc:date>
    <item>
      <title>Issue with the Line - Snap to Manhole Attribute Rules - Sewer Utility Network Foundation</title>
      <link>https://community.esri.com/t5/arcgis-utility-network-questions/issue-with-the-line-snap-to-manhole-attribute/m-p/1355295#M3144</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 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.&amp;nbsp; It no longer works with 3.2 due to a fix in the FeatureSetByName function.&amp;nbsp; The &lt;STRONG&gt;includeGeometry&amp;nbsp;&lt;/STRONG&gt;parameter is incorrectly set to False in the attribute rule.&amp;nbsp; This still returned the geometry on previous versions of ArcGIS, but that bug has been resolved.&amp;nbsp; This needs to be changed to True for these rules to work as they require the geometry of the snapped points.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve this issue in your environment, make the following change to the attribute rules.&lt;/P&gt;&lt;P&gt;Line 76 in the Line - Snap to Manhole, look for the get_snapped_point_info function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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));&lt;/LI-CODE&gt;&lt;P&gt;The last parameter, of get_features_switch_yard - change to true, like below&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;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));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That will resolve your issue with this rule&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 18:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-utility-network-questions/issue-with-the-line-snap-to-manhole-attribute/m-p/1355295#M3144</guid>
      <dc:creator>MikeMillerGIS</dc:creator>
      <dc:date>2023-11-30T18:19:39Z</dc:date>
    </item>
  </channel>
</rss>

