<?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 Re: How to find hypotenuse using python code in 3D Mapping Questions</title>
    <link>https://community.esri.com/t5/3d-mapping-questions/how-to-find-hypotenuse-using-python-code/m-p/828523#M502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone with the same question; after a few trials, my colleague and I came up with this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11pt;"&gt;math.sqrt((!Shape_len! * !Shape_len!) + ((!UpstreamIn! -&amp;nbsp; !Downstream!) * ( !UpstreamIn! - !Downstream!)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11pt;"&gt;There's likely an easier way to produce the same results but isn't that the same with most geoprocessing?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2017 17:14:55 GMT</pubDate>
    <dc:creator>MonicaBeaton</dc:creator>
    <dc:date>2017-12-13T17:14:55Z</dc:date>
    <item>
      <title>How to find hypotenuse using python code</title>
      <link>https://community.esri.com/t5/3d-mapping-questions/how-to-find-hypotenuse-using-python-code/m-p/828522#M501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a polyline feature class (sewer pipes) with upstream and downstream values but because the z values are not enabled on the dataset, I need a quick way to produce a "true length" or 3D value. How can I plug into the field calculator:&lt;/P&gt;&lt;P&gt;(upstream - downstream) squared + shape.length squared = hypotenuse? using python (or VB?)&lt;/P&gt;&lt;P&gt;Thanks to anyone, I am not a coder just a novice with python still.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should add that I have created a new field called True_Len to calculate the result on, not trying to change an existing field value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 15:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-mapping-questions/how-to-find-hypotenuse-using-python-code/m-p/828522#M501</guid>
      <dc:creator>MonicaBeaton</dc:creator>
      <dc:date>2017-12-13T15:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to find hypotenuse using python code</title>
      <link>https://community.esri.com/t5/3d-mapping-questions/how-to-find-hypotenuse-using-python-code/m-p/828523#M502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone with the same question; after a few trials, my colleague and I came up with this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11pt;"&gt;math.sqrt((!Shape_len! * !Shape_len!) + ((!UpstreamIn! -&amp;nbsp; !Downstream!) * ( !UpstreamIn! - !Downstream!)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-size: 11pt;"&gt;There's likely an easier way to produce the same results but isn't that the same with most geoprocessing?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/3d-mapping-questions/how-to-find-hypotenuse-using-python-code/m-p/828523#M502</guid>
      <dc:creator>MonicaBeaton</dc:creator>
      <dc:date>2017-12-13T17:14:55Z</dc:date>
    </item>
  </channel>
</rss>

