How to export content of Aspect / Details / References
Hi, I'm currently working on an upgrade project for a plant - from VB6 to PG2. I am trying to find a way to list the graphic elements (tag + type) used in VB6 Graphic Displays, via the Details / References tab. Because - all information I want, can be found here:
But there is no way to export it! I can't copy and paste, there is no export or print (except print screen). Of course, I can print screen, print, scan and import to excel. But it seems a bit over the top.
For AC400, we made scripts that picked this type of information from the .ds files. For VB6, I haven't found any similar method.
Am I overlooking something obvious? I think I've been through most manuals looking for a way out, without any luck.
Since we're doing this on a live plant (!), we try to avoid BDM. But if this is the answer, then we have to try. So any tips on how to do this in BDM is also welcome.
Voted best answer
How good are your VB6 programming skills ? Theres a couple of ways you can do this ....
The VB6 .prj files for every graphics are stored in the file cache and are named using the internal GUID for the object they belong to. Since the VB6 source code files are just readable text, you can open them and see the individual ActiveX components that are used for each graphic element. You could write a simple parser to run through the source code files and spit out the data you need.
You could also write a VB6 extension to the graphics builder. This extension then has access to all of the ActiveX components (ie the display elements) in the graphic and can read / write properties for those activeX components.
Sorry, its a long time since Ive done this, and my memory isnt good enough to recall the details, but IIRC there might be an example in the Graphics builder manual of how to add custom programming into the VB6 editing environmet. Otherwise, google is your friend.
And obviously, working on a live system is a bad idea. But if you go with the first option of just opening up the source files, then you can simply copy them out of the 800xA graphics cache to an offline machine before you work on them.
and lastly, there is no problem using BDM on a live plant. Just dont "save" anything.
Maybe the attached program can help you. It extracts all source files of VB6 graphics and elements. In the source files you can find the references to all used elements, but it will be hard to extract all informations you need out of this text files.
I used this programm some years on a live plant without trouble, but i would suggest you to copy your 800xA project to an offline testsystem and run the programm there. Never trust stragers ;)