Select to view content in your preferred language

How do I edit the new version I just created?

356
2
11-13-2024 06:17 AM
SanchezNuñez
Frequent Contributor

Good morning,

I created a new version using: arcpy.management.CreateVersion

Now I want to edit this specific version.  How do populate the workspace with this new version in order to edit it?

 

arcpy.management.CreateVersion

'''''
workspace = ???????
edit = arcpy.da.Editor(workspace) edit.startEditing(False, True) edit.startOperation() ##CODE edit.stopOperation() edit.stopEditing(True)

 

0 Kudos
2 Replies
SanchezNuñez
Frequent Contributor
0 Kudos
TonyContreras_Frisco_TX
Frequent Contributor

According to this post, you will have to create a new connection which specifies the new version you created. Then use that connection as your workspace when you instantiate the edit class

0 Kudos