Skip to Content

How do read an embedded file object in PowerDesigner via VBScript?

I have created a PowerDesigner extension which contains an ExtendedSubObject in which I am embedding various text files, such as logs and JSON schemas.

I am able to see the contents of the files by invoking the "obj.Edit()" method on the embedded file. This opens it in the local default editor. However, I want to access the contents of the text files programmatically in order to do things with them.

Is there a way to get the contents of the files? I tried using the "obj.Content" property, but it returns Hex code only. I could translate the Hex into ASCII (and indeed, I've done so), but I was wondering if there is a better way to do this.

Any help will be appreciated.

- j.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers