Select to view content in your preferred language

Set data source on feature class using arcpy

1044
3
05-18-2011 07:41 AM
KevinWhitney
Deactivated User
I would like to be able to change the source of one feature class to another in the same database without having to create a layer file, remove, add feature, reorder. I should be able to have the same functionality as if i went into the layer properties --> Source --> Set Data Source. Any ideas?
Tags (2)
0 Kudos
3 Replies
LoganPugh
Frequent Contributor
If you're using ArcGIS 10, take a look at Updating and fixing data sources with arcpy.mapping
0 Kudos
KevinWhitney
Deactivated User
I have previously scoured this help document and nothing fits what I am looking to accomplish. Most of these examples change workspaces. I need to keep the same workspace and just change the Feature Class it points to. Maybe I am missing something obvious, but it doesn't seem as though this is possible.
0 Kudos
JasonScheirer
Esri Alum
Use the replaceDataSource methods
0 Kudos