Chapter 7 Scripting PowerDesigner
To freeze and unfreeze a document version:
Use the following | Description |
---|---|
Freeze(ByVal Comment As String = "") As Boolean | Method on RepositoryDocumentBase that allows you to create an archived version of a document |
Unfreeze() As Boolean | Method on RepositoryDocumentBase that allows you to modify the current version in the repository to reflect changes performed on your local machine |
To lock and unlock a document version:
Use the following | Description |
---|---|
Lock(ByVal Comment As String = "") As Boolean | Method on RepositoryDocumentBase that allows you to prevent other users from updating the consolidated version |
Unlock() As Boolean | Method on RepositoryDocumentBase that allows other users to update the consolidated version |
To delete a document version:
Use the following | Description |
---|---|
DeleteVersion() As Boolean | Method on RepositoryDocumentBase that allows you to delete a document version |
You can manage the document versions using scripting as follows:
You can freeze and unfreeze a document version using the following methods: Freeze(ByVal Comment As String = "") As Boolean and Unfreeze() As Boolean.
MyDocument.Freeze "Update required"
MyDocument.Unfreeze
You can lock and unlock a document version using the following methods: Lock(ByVal Comment As String = "") As Boolean and Unlock() As Boolean.
MyDocument.Lock "Protection required"
MyDocument.Unlock
You can delete a document version using the following method: DeleteVersion() As Boolean.
MyDocument.Delete
Copyright (C) 2008. Sybase Inc. All rights reserved. |
![]() |