Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: brannstrom on May 13, 2008, 06:07:48 pm
-
Hi!
When I checkout a version controlled package with the VersionControlCheckout function and then try to access diagrams in the package I get some strange problems. If I look at the package.Diagrams.Count I get 10 diagrams, which is right. But when I try to access a diagram an error is thrown. If I do a package.Diagrams.Refresh() then the Count say that there are zero diagrams. What should I do to be able to work with the package after a checkout.
I also think I found a documentation error. The notes on the functions have been mixed up.
VersionControlCheckout (String Comment)
Void
Removes version control from the package. Throws an exception if the operation fails. Use GetLastError( ) to retrieve error information.
VersionControlRemove ( )
Void
Perform checkout of the version controlled package. Throws an exception if the operation fails. Use GetLastError( ) to retrieve error information.
Parameters:
Comment: String - Log message that is added to the version controlled file's history (where applicable).
/N
-
Thanks for posting the document error. I have corrected it and the changes should be apparent in the next release of EA.