[GIS] How to create a feature class in memory

arcgis-desktoparcpyfeature-classmemorypython

I am trying to create a feature class in memory but I am not sure how to use the syntax.

My code looks like this:

FC = arcpy.CreateFeatureclass_management("", "in_memory/FC", "POLYGON", "", "DISABLED",
                                         "DISABLED", Coordinate_System, "", "0", "0", "0")

Basically I seem to have problem defining the "out_path".

Best Answer

I realized what was wrong. See the correct code here:

FC = arcpy.CreateFeatureclass_management("in_memory", "FC", "POLYGON", "", "DISABLED", "DISABLED", Coordinate_System, "", "0", "0", "0")
Related Question