<?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 Calculate Closure residual error programmatically in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/calculate-closure-residual-error-programmatically/m-p/617318#M16544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcObject SDK for .NET. How can I calculate the Closure error like is displayed at Parcel Details Window:&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/479695_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Or there is a way to retrieve this information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the method&amp;nbsp;CalculateAdjustment and CalculateClosure, from&amp;nbsp;ITraverseAdjustment, but the misclosure returned is 0. when a build a polyline from the parcel lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some code:&lt;/P&gt;&lt;P&gt;//Test for Closure Calculation&lt;BR /&gt; ESRI.ArcGIS.Editor.ITraverseAdjustment traverseAdjustment = new ESRI.ArcGIS.Editor.TraverseAdjustment();&lt;BR /&gt; &lt;BR /&gt; ESRI.ArcGIS.Geometry.IPolyline polyline = new ESRI.ArcGIS.Geometry.Polyline() as ESRI.ArcGIS.Geometry.IPolyline;&lt;BR /&gt; var fromPoint = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; fromPoint.X = 548250;&lt;BR /&gt; fromPoint.Y = 711700;&lt;/P&gt;&lt;P&gt;var point1 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point1.X = 548350; //+100&lt;BR /&gt; point1.Y = 711700;&lt;BR /&gt; &lt;BR /&gt; var point2 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point2.X = 548350; &lt;BR /&gt; point2.Y = 711600; //+100&lt;/P&gt;&lt;P&gt;var point3 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point3.X = 548251;&lt;BR /&gt; point3.Y = 711600; //-100&lt;/P&gt;&lt;P&gt;var point4 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point4.X = 548250;&lt;BR /&gt; point4.Y = 711700;&lt;/P&gt;&lt;P&gt;((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(fromPoint);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point1);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point2);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point3);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var resultPolyline = traverseAdjustment.CalculateAdjustment(polyline, point4, ESRI.ArcGIS.Editor.esriAdjustmentType.esriAdjustmentTypeCompass);&lt;/P&gt;&lt;P&gt;var segmentCollection = ((ESRI.ArcGIS.Geometry.ISegmentCollection)resultPolyline);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: 87px; top: 440.641px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2020 20:04:12 GMT</pubDate>
    <dc:creator>IsraelUrquieta</dc:creator>
    <dc:date>2020-01-28T20:04:12Z</dc:date>
    <item>
      <title>Calculate Closure residual error programmatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/calculate-closure-residual-error-programmatically/m-p/617318#M16544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcObject SDK for .NET. How can I calculate the Closure error like is displayed at Parcel Details Window:&lt;BR /&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/479695_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Or there is a way to retrieve this information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the method&amp;nbsp;CalculateAdjustment and CalculateClosure, from&amp;nbsp;ITraverseAdjustment, but the misclosure returned is 0. when a build a polyline from the parcel lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some code:&lt;/P&gt;&lt;P&gt;//Test for Closure Calculation&lt;BR /&gt; ESRI.ArcGIS.Editor.ITraverseAdjustment traverseAdjustment = new ESRI.ArcGIS.Editor.TraverseAdjustment();&lt;BR /&gt; &lt;BR /&gt; ESRI.ArcGIS.Geometry.IPolyline polyline = new ESRI.ArcGIS.Geometry.Polyline() as ESRI.ArcGIS.Geometry.IPolyline;&lt;BR /&gt; var fromPoint = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; fromPoint.X = 548250;&lt;BR /&gt; fromPoint.Y = 711700;&lt;/P&gt;&lt;P&gt;var point1 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point1.X = 548350; //+100&lt;BR /&gt; point1.Y = 711700;&lt;BR /&gt; &lt;BR /&gt; var point2 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point2.X = 548350; &lt;BR /&gt; point2.Y = 711600; //+100&lt;/P&gt;&lt;P&gt;var point3 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point3.X = 548251;&lt;BR /&gt; point3.Y = 711600; //-100&lt;/P&gt;&lt;P&gt;var point4 = new ESRI.ArcGIS.Geometry.Point();&lt;BR /&gt; point4.X = 548250;&lt;BR /&gt; point4.Y = 711700;&lt;/P&gt;&lt;P&gt;((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(fromPoint);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point1);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point2);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point3);&lt;BR /&gt; ((ESRI.ArcGIS.Geometry.IPointCollection)polyline).AddPoint(point4);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var resultPolyline = traverseAdjustment.CalculateAdjustment(polyline, point4, ESRI.ArcGIS.Editor.esriAdjustmentType.esriAdjustmentTypeCompass);&lt;/P&gt;&lt;P&gt;var segmentCollection = ((ESRI.ArcGIS.Geometry.ISegmentCollection)resultPolyline);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: 87px; top: 440.641px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 20:04:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/calculate-closure-residual-error-programmatically/m-p/617318#M16544</guid>
      <dc:creator>IsraelUrquieta</dc:creator>
      <dc:date>2020-01-28T20:04:12Z</dc:date>
    </item>
  </channel>
</rss>

