Feature to Polygon in existing layer

Discussion created by recurvata on Mar 20, 2012
Latest reply on Mar 21, 2012 by recurvata
Now that my generic python question has been answered (thanks again!), I have a specific arcpy question, which may have a generic quality as well.

I frequently use the Construct Polygons tool to create parcel polygons out of line features I've created. The polygons are created in an existing feature class. That works great. But I can't figure out how to duplicate this behavior (polygons added to an existing file) in a script. The closest I can come is using Feature to Polygon, which does create the polygons, but in a new feature class. I suppose I could then copy the new polygons to the existing table and delete the created one, but this seems like an extra step compared to the Topology toolbar tool. I know some other tools on the toolbar work this way compared to their toolbox equivalents also. Is there a function I'm missing, or is this just the way it is? Thanks.

import arcpy

lineFeature = arcpy.GetParameterAsText(0)
polygonFeature = arcpy.GetParameterAsText(1)

arcpy.FeatureToPolygon_management(lineFeature, polygonFeature, "", "NO_ATTRIBUTES", "")