Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Anderl on March 14, 2011, 09:48:03 pm

Title: Disconnect from version control
Post by: Anderl on March 14, 2011, 09:48:03 pm
Can someone please give me a hint how to accomplish the equivalent of "Disconnect from version control" (i.e. clearing the "Control Package" checkbox in the GUI) via an (e.g.) VB script? I have a nested hierarchy of packages, several of them version controlled and I'd like to export this hierarchy without the version control. Just setting the "IsControlled" attribute to "False" doesn't seem to be enough.
Title: Re: Disconnect from version control
Post by: Geert Bellekens on March 14, 2011, 11:56:26 pm
In v8 I think you'll have to edit it directly into the database.
I believe v9 has a function to remove a package from version control.

Geert
Title: Re: Disconnect from version control
Post by: Anderl on March 15, 2011, 02:19:17 am
I'd been afraid of that.

Thanks.
Andreas
Title: Re: Disconnect from version control
Post by: Luis J. Lobo on March 16, 2011, 09:38:27 am
The method Package.VersionControlRemove() works for me.

Iterate recursively over packages executing it.
Title: Re: Disconnect from version control
Post by: Anderl on March 17, 2011, 06:43:53 pm
Quote
The method Package.VersionControlRemove() works for me.

I tried that. However, we're using clearcase and every then and when (when cc detects that I'm not looking at the latest version) a clearcase confirmation window (asking for checkout!) pops up needing manual intervention.

Andreas