PowerDesigner lets you access the Repository feature via scripting using the RepositoryConnection as BaseObject global property.
It allows you to retrieve the current repository connection, which is the object that manages the connection to the repository server and provides access to documents and objects stored under the repository.
The RepositoryConnection is equivalent to the root node in the Repository browser.
You can access the repository documents, but you cannot access the repository administration objects, like users, groups, configurations, branches, and list of locks.
In addition, only the last version of a repository document is accessible using scripting.