<?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 Map View doesn't update in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076638#M61625</link>
    <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am using the following code to create a new FGDB and a new Feature Class, but none of them are shown in the Catalog pane after creation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Create a dedicated FGDB
gdb = "ReplayedRecs.gdb"
arcpy.CreateFileGDB_management(arcpy.env.workspace, gdb)

# Temp FCs that will be deleted
PointsFC = arcpy.env.workspace + "\\" + gdb + "\\" + "RecordingPoints"
LinesFC = arcpy.env.workspace + "\\" + gdb + "\\" + "RecordingPaths"

# Creates a FC that stores the replayed recordings
ReplayedPaths = arcpy.CreateFeatureclass_management(gdb, "ReplayedPaths", "POLYLINE", spatial_reference=spatial_reference)

# Read each csv file, create point features, and then polylines
for csv in csv_files:
    csv_path = PATH_TO_CSVS + "\\" + csv

    # Convert CSV Rows to Point Features
    arcpy.management.XYTableToPoint(in_table=csv_path,
                                    out_feature_class=PointsFC,
                                    x_field="x",
                                    y_field="y")

    # Execute PointsToLine
    arcpy.PointsToLine_management(Input_Features=PointsFC,
                                  Output_Feature_Class=LinesFC)

    arcpy.Append_management(LinesFC, ReplayedPaths)

# Delete PointsFC and LinesFC
arcpy.Delete_management(PointsFC)
arcpy.Delete_management(LinesFC)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 08:16:05 GMT</pubDate>
    <dc:creator>pkaniouras</dc:creator>
    <dc:date>2021-07-08T08:16:05Z</dc:date>
    <item>
      <title>Map View doesn't update</title>
      <link>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076638#M61625</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am using the following code to create a new FGDB and a new Feature Class, but none of them are shown in the Catalog pane after creation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Create a dedicated FGDB
gdb = "ReplayedRecs.gdb"
arcpy.CreateFileGDB_management(arcpy.env.workspace, gdb)

# Temp FCs that will be deleted
PointsFC = arcpy.env.workspace + "\\" + gdb + "\\" + "RecordingPoints"
LinesFC = arcpy.env.workspace + "\\" + gdb + "\\" + "RecordingPaths"

# Creates a FC that stores the replayed recordings
ReplayedPaths = arcpy.CreateFeatureclass_management(gdb, "ReplayedPaths", "POLYLINE", spatial_reference=spatial_reference)

# Read each csv file, create point features, and then polylines
for csv in csv_files:
    csv_path = PATH_TO_CSVS + "\\" + csv

    # Convert CSV Rows to Point Features
    arcpy.management.XYTableToPoint(in_table=csv_path,
                                    out_feature_class=PointsFC,
                                    x_field="x",
                                    y_field="y")

    # Execute PointsToLine
    arcpy.PointsToLine_management(Input_Features=PointsFC,
                                  Output_Feature_Class=LinesFC)

    arcpy.Append_management(LinesFC, ReplayedPaths)

# Delete PointsFC and LinesFC
arcpy.Delete_management(PointsFC)
arcpy.Delete_management(LinesFC)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 08:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076638#M61625</guid>
      <dc:creator>pkaniouras</dc:creator>
      <dc:date>2021-07-08T08:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Map View doesn't update</title>
      <link>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076646#M61627</link>
      <description>&lt;P&gt;right-click on the gdb and select "refresh"... it should show up&lt;/P&gt;&lt;P&gt;if you want them to show in the map, then you have to make layers out of them and have Pro set to add geoprocessing results to the map (project, options, geoprocessing)&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 09:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076646#M61627</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-07-08T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Map View doesn't update</title>
      <link>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076651#M61629</link>
      <description>&lt;P&gt;Hi and thanks for your answer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Refresh doesn't work. The only way to add the gdb is to right-click on Databases --&amp;gt; Add Database&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 10:47:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1076651#M61629</guid>
      <dc:creator>pkaniouras</dc:creator>
      <dc:date>2021-07-08T10:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map View doesn't update</title>
      <link>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1077088#M61634</link>
      <description>&lt;P&gt;makes sense now.&amp;nbsp; if the gdb isn't part of the project already, then you will have to use makefeaturelayer specifying the full path to the gdb that you created plus the featureclass name (same would apply for tables if you wanted to make a tableview)&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 02:43:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/map-view-doesn-t-update/m-p/1077088#M61634</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-07-09T02:43:16Z</dc:date>
    </item>
  </channel>
</rss>

