<?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: Tree Control in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/tree-control/m-p/1016810#M1878</link>
    <description>&lt;P&gt;Can you write some pseudo code for what logic you want applied?&lt;/P&gt;&lt;P&gt;I'm not entirely sure what you mean about the external DB and not having a table beforehand, but a relate might be what you're envisaging.&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/essentials-of-relating-tables.htm" target="_blank"&gt;Essentials of relating tables—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 11:49:51 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-01-14T11:49:51Z</dc:date>
    <item>
      <title>Tree Control</title>
      <link>https://community.esri.com/t5/arcmap-questions/tree-control/m-p/1016794#M1877</link>
      <description>&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Hello, I would like to symbolically represent the control status of a tree control.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I have included a table from a database that contains the date of the next inspection.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;The column is called "next_inspection" in date format.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I have created a column called "control_status".&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;This field has to be calculated so that I can represent the symbols accordingly.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;With the following code I can calculate the difference to today:&lt;BR /&gt;(datetime.datetime.now () - arcpy.time.ParseDateTimeString (! Next_inspection!)).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Days&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;In addition, an "if then else" statement has to be added, for example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;&amp;gt; 0 days overdue&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;0-100 inspection due&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;&amp;lt;100 days checked&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="VIiyi"&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Can someone explain that to me?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Is it possible to read the date directly from an external database without having to include the table beforehand?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 09:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/tree-control/m-p/1016794#M1877</guid>
      <dc:creator>UdoBredemeier</dc:creator>
      <dc:date>2021-01-14T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tree Control</title>
      <link>https://community.esri.com/t5/arcmap-questions/tree-control/m-p/1016810#M1878</link>
      <description>&lt;P&gt;Can you write some pseudo code for what logic you want applied?&lt;/P&gt;&lt;P&gt;I'm not entirely sure what you mean about the external DB and not having a table beforehand, but a relate might be what you're envisaging.&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/essentials-of-relating-tables.htm" target="_blank"&gt;Essentials of relating tables—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 11:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/tree-control/m-p/1016810#M1878</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-01-14T11:49:51Z</dc:date>
    </item>
  </channel>
</rss>

