Hello,
I'm using SparxSystems EA 6.1.789 and have the following situation:
I've a shared eap file consisting of several packages, some of them are controlled by CVS. Now I want to checkout the latest version of all controlled packages, i.e. though there might be changes not checked in I want to restore the state recorded within the XMI files in CVS.
I want to do so via COM scripting.
My script basically works as follows:
I call "OpenFile2()".
Then I iterate through the Repository tree, and if some node turns out to be a package, I check whether it is controlled via access to its "IsVersionControlled" property. If it is, then on the project interface I call "LoadControlledPackage()" with the id of the current node in the tree, which is the result of accessing its property "PackageGUID".
After all controlled packages were loaded, I call "CloseFile()" and "Exit()".
When I inspect the resulting file, I don't find any differences, however. What is wrong with the above approach? The calls seem to succeed. I notice on calling "LoadControlledPackage()" that a small window pops up, but it gets closed again immediately after that, so I can't read any output there.
Any suggestions are appreciated.
Cheers,
Philipp.