<?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: How to create a feature in a feature class with ArcPy in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759671#M5166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this help?&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/create-feature-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/create-feature-class.htm"&gt;Create Feature Class—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2018 16:57:27 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2018-04-23T16:57:27Z</dc:date>
    <item>
      <title>How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759670#M5165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create a point feature in a feature class with ArcPy the same way I do it with vb.net&lt;/P&gt;&lt;P&gt;I need to convert this vb.net code into Python code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; workspaceEdit &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;IWorkspaceEdit&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;CType&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;(myTargetIWorkspace, &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas; font-size: small;"&gt;IWorkspaceEdit&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;'' Start an edit session. An undo/redo stack isn't necessary in this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; workspaceEdit.StartEditing(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;''/ Start an edit operation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;workspaceEdit.StartEditOperation()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; feature &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;IFeature&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; = pFeatureClass.CreateFeature()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;feature.Shape = pPoint&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; feature.Value(feature.Fields.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)) = IncidentID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;feature.Value(feature.Fields.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"ADDRESS"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)) = Address&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;feature.Value(feature.Fields.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"XCOORD"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)) = pPoint.X&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; feature.Value(feature.Fields.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"YCOORD"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)) = pPoint.Y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;feature.Value(feature.Fields.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"PROBDESC"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)) = ProblemDescription&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;feature.Value(feature.Fields.FindField(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"REQSTDATE"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)) = &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;DateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;.Parse(RequestedDate.ToString)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;feature.Store()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;''// Save the edit operation. To cancel an edit operation, the AbortEditOperation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;''// method can be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;workspaceEdit.StopEditOperation()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;''// Stop the edit session. The saveEdits parameter indicates the edit session&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;''// will be committed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; workspaceEdit.StopEditing(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759670#M5165</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-04-23T16:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759671#M5166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this help?&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/create-feature-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/tools/data-management-toolbox/create-feature-class.htm"&gt;Create Feature Class—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759671#M5166</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-04-23T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759672#M5167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a sample code&amp;nbsp;to create a record in the feature class, not a feature class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759672#M5167</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-04-23T17:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759673#M5168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops.&amp;nbsp; My bad.&amp;nbsp; Sorry about that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how about this:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://www.e-education.psu.edu/geog485/node/142" title="https://www.e-education.psu.edu/geog485/node/142"&gt;https://www.e-education.psu.edu/geog485/node/142&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;insert cursors:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.5/analyze/arcpy-data-access/insertcursor-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.5/analyze/arcpy-data-access/insertcursor-class.htm"&gt;InsertCursor—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759673#M5168</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-04-23T17:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759674#M5169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you want an UpdateCursor or an InsertCursor and you can follow some of the code samples in the arcpy section of the help files... for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/get-started/writing-geometries.htm"&gt;&lt;STRONG&gt;Writing Geometries&lt;/STRONG&gt;&lt;/A&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are loads of other examples, and even on geonet, code samples abound and I am sure that the exact snippet has been written to suit your case, but the arcpy help is a good reference location&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 17:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759674#M5169</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-23T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759675#M5170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 10.5pt;"&gt;An exact snippet!!!&amp;nbsp;&amp;nbsp; this is what I am looking for&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2018 18:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759675#M5170</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2018-04-23T18:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759676#M5171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought the links above provided samples.&amp;nbsp; Here is some code I use to create a rectangular polygon based on screen map extent.&amp;nbsp; Note that it's only an 'in memory' feature class that I use and toss....&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;mxd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
frameExtent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
XMAX &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; frameExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMax
XMIN &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; frameExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMin
YMAX &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; frameExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMax
YMIN &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; frameExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMin
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
pnt1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;XMIN&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; YMIN&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
pnt2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;XMIN&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; YMAX&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
pnt3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;XMAX&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; YMAX&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
pnt4 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;XMAX&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; YMIN&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
array &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt4&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnt1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#&lt;/SPAN&gt;
Mypolygon &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polygon&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;array&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyFeatures_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Mypolygon&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"in_memory\\ExtentPoly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
in_poly_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"ExtentPoly"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
poly_symbology_layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;"C:\LayerFiles\EmptyRedPolygon.lyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ApplySymbologyFromLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;in_poly_layer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;poly_symbology_layer&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:16:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759676#M5171</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T08:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a feature in a feature class with ArcPy</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759677#M5172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps the link isn't exactly what you need... just replace what isn't needed with stuff in the example.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"c:/data/gdb.gdb/roads"&lt;/SPAN&gt;
cursor &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;InsertCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHAPE@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
array &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5997611.48964&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2069897.7022&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&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; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Point&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5997577.46097&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2069905.81145&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
spatial_reference &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SpatialReference&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4326&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
polyline &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Polyline&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;array&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; spatial_reference&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

cursor&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;insertRow&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;polyline&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are other examples in the link I sent, just like the one above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-create-a-feature-in-a-feature-class-with/m-p/759677#M5172</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T08:16:14Z</dc:date>
    </item>
  </channel>
</rss>

