Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a script that does some register as versioned and updating privileges.

How would I call into the c api for ArcSDE to enable archiving with python?

http://help.arcgis.com/en/geodatabase/10.0/sdk/arcsde/api/capi/versioning/archcreate.htm

Any direction would be helpful.

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

I am not sure if this was available earlier than ArcGIS 10.2 for Desktop, but there is now a tool called Enable Archiving (Data Management) which:

Enables archiving on a table, feature layer, or feature dataset.

Its online documentation, which is linked above, provides an ArcPy code sample that:

illustrates how to use the EnableArchiving tool in a stand-alone script.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.