Chapter 7 Scripting PowerDesigner
To create a folder:
Use the following | Description |
---|---|
CreateFolder(ByVal FolderName As String) As BaseObject | Method on RepositoryFolder that allows you to create a new folder in the repository browser |
To delete an empty folder:
Use the following | Description |
---|---|
DeleteEmptyFolder() As Boolean | Method on RepositoryFolder that allows you to delete an empty folder in the repository browser |
For more information on documents, see Accessing a Repository Document.
You can manage the repository browser using scripting as follows:
You can create a folder using the following method: CreateFolder(ByVal FolderName As String) As BaseObject
RepositoryConnection.CreateFolder("VBTest")
You can delete an empty folder using the following method: DeleteEmptyFolder() As Boolean
Dim C Set C = RepositoryConnection C.Open "MyRepDef" ' Retrieve the deepest folder under the connection Dim D, P set P = Nothing for each D in C.ChildObjects if D.IsKindOf (cls_RepositoryFolder) then D.DeleteEmptyFolder c.refresh end if next
Copyright (C) 2008. Sybase Inc. All rights reserved. |
![]() |