Skip to Content
0

How to export a list of entities list from a Powerdesigner repository?

Dec 01, 2016 at 05:59 PM

75

avatar image

I'm trying to export a list with all entities of my powerdesigner repository using a VB script. Somebody know how to do this?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

George McGeachie Dec 02, 2016 at 04:23 PM
0

You can access the Repository via the RepositoryConnection global property, then iterate through the Folders and Documents it contains. I haven't tried it myself.

Share
10 |10000 characters needed characters left characters exceeded
Rafal Kallus Dec 06, 2016 at 04:28 PM
0

set fldr = RepositoryConnection.FindChildByPath("FDW_MODEL", Cls_RepositoryFolder)

for each fold in fldr.ChildObjects 'Level1 - Folders
for each br in fold.ChildObjects 'Level2 - Projects
for each pr in br.ChildObjects 'Level3 - Models
if pr.classname = "Logical Data Model" then
for each ent in pr.ChildObjects 'Level3 - Entities
if ent.classname = "Entity" then
output ent.name
end if
next
end if
next
next
next

Share
10 |10000 characters needed characters left characters exceeded
Marco Paiva Dec 06, 2016 at 06:07 PM
0

Thank you Rafal,

I was trying to do what George said and now, with your tip, i'm having success!

Best regards!

Marco

Share
10 |10000 characters needed characters left characters exceeded
Rafal Kallus Dec 07, 2016 at 12:57 PM
0

No problem! Please mark the post as answered

Share
10 |10000 characters needed characters left characters exceeded