<?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: Creating a table with COGO in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1384262#M4793</link>
    <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;Thank you very much for replying.&lt;/P&gt;&lt;P&gt;Although I really appreciate your efforts, i have no idea how i would carry this out, I'm onl;y a university student i've never worked with code, i know where the python window is and thats about it. I will try to work this out anyway (i will probably be unsuccessful). Again, thank you for your efforts.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2024 10:52:28 GMT</pubDate>
    <dc:creator>jw2109</dc:creator>
    <dc:date>2024-02-20T10:52:28Z</dc:date>
    <item>
      <title>Creating a table with COGO</title>
      <link>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1383991#M4791</link>
      <description>&lt;P&gt;Hello everyone, i wanted to know if it is possible to create a table of line directions automatically witht the COGO function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to put angles in the attribute table after adding a field, with this methodology, however, i would have to manually input all the angles; my question is is there a way to do it automatically, in bulk, rather than each line at a time.&lt;/P&gt;&lt;P&gt;Thank you for any help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 11:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1383991#M4791</guid>
      <dc:creator>jw2109</dc:creator>
      <dc:date>2024-02-19T11:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with COGO</title>
      <link>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1384216#M4792</link>
      <description>&lt;P&gt;Hello jw2109,&lt;/P&gt;&lt;P&gt;Looks like there are several examples to get you going.&amp;nbsp; A good source with Python code,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/enable-cogo.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/enable-cogo.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EnableCOGO example 1 (Python window)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;The following Python window script demonstrates how to use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;EnableCOGO&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function in immediate mode.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; arcpy arcpy.env.workspace = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"E:\ArcGISXI\Mont\Montgomery.gdb"&lt;/SPAN&gt;&lt;SPAN&gt; arcpy.EnableCOGO_management(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"\Landbase\Road_cl"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EnableCOGO example 2 (stand-alone script)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;The following stand-alone script demonstrates how to check for and enable COGO on a line feature class.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; arcpy &lt;/SPAN&gt;&lt;SPAN class=""&gt;# Variable to contain the path of the feature class that is to be COGO enabled&lt;/SPAN&gt;&lt;SPAN&gt; lineFeatureClass = &lt;/SPAN&gt;&lt;SPAN class=""&gt;r"d:\test.gdb\myLineFC"&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Check to see if the feature class is already enabled by using .isCOGOEnabled on a Describe&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; arcpy.Describe(lineFeatureClass).isCOGOEnabled == &lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;# If it returns False, run EnableCOGO_management and pass the feature class&lt;/SPAN&gt;&lt;SPAN&gt; arcpy.EnableCOGO_management(lineFeatureClass) &lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN&gt;: print(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"{} is already COGO Enabled"&lt;/SPAN&gt;&lt;SPAN&gt;.format(lineFeatureClass))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Let us know how it goes or if additional detail is needed/helpful &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;~Jeff&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Feb 2024 06:24:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1384216#M4792</guid>
      <dc:creator>JeffHouser</dc:creator>
      <dc:date>2024-02-20T06:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with COGO</title>
      <link>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1384262#M4793</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;Thank you very much for replying.&lt;/P&gt;&lt;P&gt;Although I really appreciate your efforts, i have no idea how i would carry this out, I'm onl;y a university student i've never worked with code, i know where the python window is and thats about it. I will try to work this out anyway (i will probably be unsuccessful). Again, thank you for your efforts.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 10:52:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1384262#M4793</guid>
      <dc:creator>jw2109</dc:creator>
      <dc:date>2024-02-20T10:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with COGO</title>
      <link>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1391883#M4817</link>
      <description>&lt;P&gt;Hello Jeff,&lt;/P&gt;&lt;P&gt;I've been getting python help from a lecturer at my university and he keeps getting a syntax error and he also cannot work out what the problem is this is the issue:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if arcpy.Describe(lineFeatureClass).isCOGOEnabled == False:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.EnableCOGO_management(lineFeatureClass)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Already done")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SyntaxError&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Traceback (most recent call last)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\ast.py&lt;/SPAN&gt;&lt;SPAN&gt;, in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;parse&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Line&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;50&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;compile&lt;/SPAN&gt;&lt;SPAN&gt;(source, filename, mode, flags,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SyntaxError&lt;/SPAN&gt;&lt;SPAN&gt;: invalid syntax (&amp;lt;string&amp;gt;, line 3)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 15:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1391883#M4817</guid>
      <dc:creator>jw2109</dc:creator>
      <dc:date>2024-03-06T15:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table with COGO</title>
      <link>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1391990#M4818</link>
      <description>&lt;P&gt;Hello JW,&lt;/P&gt;&lt;P&gt;Not sure if there's enough info in your post regarding the error?&amp;nbsp; I am not familiar with ast.py.&amp;nbsp; Upfront in your code, did you "import ast"?&amp;nbsp; I'm assuming you are. Not sure if you have at this point, but refer to the following for more info on compile(source, filename, mode, flags).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://python-reference.readthedocs.io/en/latest/docs/functions/compile.html" target="_blank"&gt;https://python-reference.readthedocs.io/en/latest/docs/functions/compile.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;~Jeff&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 17:25:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/creating-a-table-with-cogo/m-p/1391990#M4818</guid>
      <dc:creator>JeffHouser</dc:creator>
      <dc:date>2024-03-06T17:25:22Z</dc:date>
    </item>
  </channel>
</rss>

