Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Amaurilo on June 04, 2016, 07:33:28 am
-
[my primary language is portuguese]
Hi,
I need to perform some mantainance to a package.
My problem is that the package is 2 levels bellow the controlled package.
At my current level of expertise I can only checkout a selected package.
Any help?
Tks
Amaurilo
-
You have to use the operations on the EA.Package such as EA.Package.VersionControlCheckout
See http://sparxsystems.com/enterprise_architect_user_guide/13.0/automation_and_scripting/package_2.html (http://sparxsystems.com/enterprise_architect_user_guide/13.0/automation_and_scripting/package_2.html) for more information
Geert
-
Hi Amaurilo,
if your package is below (nested) to a controlled package don't worry. Just check out the controlled package, do your work and check it in. Your nested package is inside it and all the work is stored in Version Control. You can check it by simply reading the *.xml and searching for a few class names or so.
You may think about what packages are to put under version control. In my opinion a fine granulare structure (almost every package under Version Control) is beneficial:
- Fewer lock conflicts
- Version Control reflects your package / working structure
- Faster
- My feeling
Regards,
Helmut
-
thank you all for your comments.
I have just discovered that using the feature "Repository.GetPackageByID()" I can get control of any package in the model. that's what I needed to checkin/checkout.
I Agree with Helmut about granularity but , unfortunately, I can not make adjustments right now.
Best regards
Amaurilo