<?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: polyline_GetAzimuth 999999 : Error executing function in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539978#M17968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you see from your Results window the line where it states something like 'Executing: ' and then there's some VB code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably there is a minor error in the code because it may be out-of-date -- you should paste that code you loaded into your field calculator (or attach the cal file it comes from).&amp;nbsp; It's otherwise difficult to read in your screen shot...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't remember if you need other components installed...for example, if you load code into VBA, you need a separate license and the ArcObjects library I think...the code you're entering may only need to be compliant with VBScript, but don't quote me on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Post the code if you can - that will be at least be the next lead to follow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2013 23:26:26 GMT</pubDate>
    <dc:creator>T__WayneWhitley</dc:creator>
    <dc:date>2013-01-29T23:26:26Z</dc:date>
    <item>
      <title>polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539977#M17967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am graduate ESCI student, and my project involves a lot of ArcGIS use. My project is related to assessing coastal erosion rates and causes near the Arctic coastlines of Barrow, I am currently trying to figure out the azimuth of a plolyline. I think I know how, but when I run it in the field calculator, I get an error, called 999999 : Error executing function. I tried several other calculations from Easy calculate just to see if they will work, but it give me the same error. I am using ArcMap 10, and I downloaded the EC50 (easy calculate). Can anyone help me out with this, and direct me on how to solve this error ? thanks[ATTACH=CONFIG]21187[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 23:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539977#M17967</guid>
      <dc:creator>AbdielLopez</dc:creator>
      <dc:date>2013-01-29T23:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539978#M17968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you see from your Results window the line where it states something like 'Executing: ' and then there's some VB code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably there is a minor error in the code because it may be out-of-date -- you should paste that code you loaded into your field calculator (or attach the cal file it comes from).&amp;nbsp; It's otherwise difficult to read in your screen shot...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't remember if you need other components installed...for example, if you load code into VBA, you need a separate license and the ArcObjects library I think...the code you're entering may only need to be compliant with VBScript, but don't quote me on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Post the code if you can - that will be at least be the next lead to follow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 23:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539978#M17968</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-29T23:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539979#M17969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right, that version Easy Calculate 5.0 is not compatible with ArcGIS 10.0 - see this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"EasyCalculate 5.0 was for a long time a very popular set of expressions for the Field Calculator. The expressions however were written in Visual Basic for Applications (VBA) which is not supported in ArcGIS 10."&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.ian-ko.com/free/EC10/EC10_intro.htm"&gt;http://www.ian-ko.com/free/EC10/EC10_intro.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this upgrade, although your function may not be in there:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EasyCalculate 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.ian-ko.com/free/EC10/EC10_main.htm"&gt;http://www.ian-ko.com/free/EC10/EC10_main.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice the minimum requirements at the bottom of the page:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft Visual Studio 2008 Express edition,&amp;nbsp; Microsoft Visual Studio full 2008 or 2010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS SDK for the Microsoft .NET Framework&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; By the way, you already have ArcGIS 10 and can install the free ArcGIS .NET SDK, and if you didn't know, you can get the Express version of Visual Studio free as well:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Microsoft Visual Studio 2008 Express Edition&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.microsoft.com/en-us/download/details.aspx?id=6506"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=6506&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2013 23:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539979#M17969</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-29T23:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539980#M17970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very, let me try that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Right, that version Easy Calculate 5.0 is not compatible with ArcGIS 10.0 - see this:&lt;BR /&gt;&lt;BR /&gt;"EasyCalculate 5.0 was for a long time a very popular set of expressions for the Field Calculator. The expressions however were written in Visual Basic for Applications (VBA) which is not supported in ArcGIS 10."&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.ian-ko.com/free/EC10/EC10_intro.htm" rel="nofollow" target="_blank"&gt;http://www.ian-ko.com/free/EC10/EC10_intro.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Try this upgrade, although your function may not be in there:&lt;BR /&gt;&lt;BR /&gt;EasyCalculate 10&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.ian-ko.com/free/EC10/EC10_main.htm" rel="nofollow" target="_blank"&gt;http://www.ian-ko.com/free/EC10/EC10_main.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Notice the minimum requirements at the bottom of the page:&lt;BR /&gt;ArcGIS 10.0&lt;BR /&gt;Microsoft Visual Studio 2008 Express edition,&amp;nbsp; Microsoft Visual Studio full 2008 or 2010&lt;BR /&gt;ArcGIS SDK for the Microsoft .NET Framework&lt;BR /&gt;&lt;BR /&gt;EDIT:&amp;nbsp; By the way, you already have ArcGIS 10 and can install the free ArcGIS .NET SDK, and if you didn't know, you can get the Express version of Visual Studio free as well:&lt;BR /&gt;&lt;BR /&gt;Microsoft Visual Studio 2008 Express Edition&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.microsoft.com/en-us/download/details.aspx?id=6506" rel="nofollow" target="_blank"&gt;http://www.microsoft.com/en-us/download/details.aspx?id=6506&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 16:51:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539980#M17970</guid>
      <dc:creator>AbdielLopez</dc:creator>
      <dc:date>2013-01-30T16:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539981#M17971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked, I was able to calculate azimuth with EC 10. Thank you for your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2013 19:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539981#M17971</guid>
      <dc:creator>AbdielLopez</dc:creator>
      <dc:date>2013-01-30T19:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539982#M17972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Beautiful, Abdiel, glad that worked - I know there are excellent functions in there I have used before.&amp;nbsp; Actually have not used Ianko's tools in quite some time, so that's good news there's a version compatible with ArcGIS 10.0 and I suppose 10.1 as well.&amp;nbsp; Interesting, were you able to install Studio 2008 Express and if so, how do you like it, the 'feel' of that software?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you will, please mark my post #2 as the answer!&amp;nbsp; (think you marked the wrong one)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and enjoy!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2013 14:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539982#M17972</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-31T14:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539983#M17973</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;BR /&gt;&lt;SPAN&gt;I'm well aware of this Easy calculate tool to get azimuth for polylines. It works brilliant. However, I would like to challenge someone to make this in to a python script or something similar, so it could be used as a tool that could be built in to models. I currently have a very long model that I have had to split in to two parts, because I need to calculate azimuth in the middle of the process. Having this built in to the model would save quite a bit of effort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any ideas.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 05:59:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539983#M17973</guid>
      <dc:creator>MiikaMäkelä1</dc:creator>
      <dc:date>2013-02-18T05:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: polyline_GetAzimuth 999999 : Error executing function</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539984#M17974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if anything is already written on this, but if you're familiar with geometry methods, you could get at the 'line parts' which would be a point array (for lines that are not true curves) and use that to mimic the azimuth calculation by using a trigonometry calculation on the 1st 2 point coordinates in the array.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should work fine for straight lines, and this is what this applies to, correct?&amp;nbsp; I am asking because for lines with multiple vertices not falling along a straight line, this would make no sense.&amp;nbsp; I'm not sure, but I have also worked with MBG (minimum bounding geometry) standard tools in the Toolbox, but think there is an added field calculated for you that could be used?&amp;nbsp; You may have to perform some additional calculations, but that would save you from the details of accessing the geometry yourself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; Can use the 'envelope' option, adding the MBG_Width and MBG_Length fields, from which you may derive inverse tangent to get the angle...only thing is you will have to track quadrant (+x,+y; -x,+y; -x,-y; +x,-y), i.e. direction by virtue of 'where' end coords plot relative to begin coords.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enjoy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wayne&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 12:12:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polyline-getazimuth-999999-error-executing/m-p/539984#M17974</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-02-18T12:12:56Z</dc:date>
    </item>
  </channel>
</rss>

