<?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 Pipe Invert Script in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/pipe-invert-script/m-p/237645#M1737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is my first attemt at writing a script for ArcPad to get Pipe Inverts.&amp;nbsp; The calculation I'm attempting is Pipe Invert = Manhole Rim Elev - Measuredown.&amp;nbsp; I will have fields to cover Pipes going North, South, East, and West. The calc will run fine for the North Invert but will not calc through if I have to skip a pipe direction.&amp;nbsp; The script's calculations run N first then,S,E,W.&amp;nbsp; For example the West calculation will work, but only if it has entries/validates thru N,S,and E first.&amp;nbsp; I've tried some IF,THEN, and Null statements but really don't know what I'm doing.&amp;nbsp; Hope I was clear enough for everyone to understand. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="font-size: 2;"&gt;sub PipeInvert()&lt;BR /&gt;&lt;BR /&gt;'Pipe Invert Elevations&lt;BR /&gt;dim RIMELEV, MEASUREDOWN_N, MEASUREDOWN_S, MEASUREDOWN_E, MEASUREDOWN_W, INVERTN, INVERTS, INVERTE, INVERTW&lt;BR /&gt;&lt;BR /&gt;'Form Values&lt;BR /&gt;RIMELEV = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtRIMELEV").Value&lt;BR /&gt;MEASUREDOWN_N = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_N").Value&lt;BR /&gt;MEASUREDOWN_S = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_S").Value&lt;BR /&gt;MEASUREDOWN_E = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_E").Value&lt;BR /&gt;MEASUREDOWN_W = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_W").Value&lt;BR /&gt;&lt;BR /&gt;'Pipe Invert = Rim Elevation - Measuredown&lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTN").Value = (RIMELEV) - (MEASUREDOWN_N)&lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTS").Value = (RIMELEV) - (MEASUREDOWN_S) &lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTE").Value = (RIMELEV) - (MEASUREDOWN_E) &lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTW").Value = (RIMELEV) -(MEASUREDOWN_W) &lt;BR /&gt;&lt;BR /&gt;end sub&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reading &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Todd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 13:19:34 GMT</pubDate>
    <dc:creator>ToddNordyke1</dc:creator>
    <dc:date>2014-01-10T13:19:34Z</dc:date>
    <item>
      <title>Pipe Invert Script</title>
      <link>https://community.esri.com/t5/arcpad-questions/pipe-invert-script/m-p/237645#M1737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is my first attemt at writing a script for ArcPad to get Pipe Inverts.&amp;nbsp; The calculation I'm attempting is Pipe Invert = Manhole Rim Elev - Measuredown.&amp;nbsp; I will have fields to cover Pipes going North, South, East, and West. The calc will run fine for the North Invert but will not calc through if I have to skip a pipe direction.&amp;nbsp; The script's calculations run N first then,S,E,W.&amp;nbsp; For example the West calculation will work, but only if it has entries/validates thru N,S,and E first.&amp;nbsp; I've tried some IF,THEN, and Null statements but really don't know what I'm doing.&amp;nbsp; Hope I was clear enough for everyone to understand. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="font-size: 2;"&gt;sub PipeInvert()&lt;BR /&gt;&lt;BR /&gt;'Pipe Invert Elevations&lt;BR /&gt;dim RIMELEV, MEASUREDOWN_N, MEASUREDOWN_S, MEASUREDOWN_E, MEASUREDOWN_W, INVERTN, INVERTS, INVERTE, INVERTW&lt;BR /&gt;&lt;BR /&gt;'Form Values&lt;BR /&gt;RIMELEV = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtRIMELEV").Value&lt;BR /&gt;MEASUREDOWN_N = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_N").Value&lt;BR /&gt;MEASUREDOWN_S = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_S").Value&lt;BR /&gt;MEASUREDOWN_E = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_E").Value&lt;BR /&gt;MEASUREDOWN_W = Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtMEASUREDOWN_W").Value&lt;BR /&gt;&lt;BR /&gt;'Pipe Invert = Rim Elevation - Measuredown&lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTN").Value = (RIMELEV) - (MEASUREDOWN_N)&lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTS").Value = (RIMELEV) - (MEASUREDOWN_S) &lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTE").Value = (RIMELEV) - (MEASUREDOWN_E) &lt;BR /&gt;Application.Map.Layers("MH").Forms("EDITFORM").Pages("PAGE1").Controls("txtINVERTW").Value = (RIMELEV) -(MEASUREDOWN_W) &lt;BR /&gt;&lt;BR /&gt;end sub&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reading &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Todd&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 13:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/pipe-invert-script/m-p/237645#M1737</guid>
      <dc:creator>ToddNordyke1</dc:creator>
      <dc:date>2014-01-10T13:19:34Z</dc:date>
    </item>
  </channel>
</rss>

