Select to view content in your preferred language

Script to Export and Replace Feature Class

536
1
11-09-2012 02:18 AM
MichaelDougherty
New Contributor
Hey all,

I am trying to have someone select features from one feature class then export them and import them into another feature class.

The step that is slipping us up is that we would prefer to not create multiple exported feature classes in the same location but rather replace the previously saved one with the new one.

Looking to create a script in Arc 9.1 to delete a previously exported feature class and then replace it with a newly exported one.

Any ideas?
Tags (2)
0 Kudos
1 Reply
RonnieRichards
Regular Contributor
I do not recall when overWriteouput was introduced but you might be able to simply place this at the top of your script. This environment setting allows overwriting existing outputs.

http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=OverwriteOutput%20method

If that does not exist in 9.1, you might be able to use the Delete command and then when you recreate the feature class has already been deleted?

Hope this helps
Ron
0 Kudos