Author Topic: Checkout from plugin problem  (Read 2696 times)

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Checkout from plugin problem
« 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


RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Checkout from plugin problem
« Reply #1 on: May 14, 2008, 09:48:42 am »
Thanks for posting the document error. I have corrected it and the changes should be apparent in the next release of EA.
Best Regards, Roy