Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MichaelG on April 09, 2013, 08:57:22 pm

Title: How to delete a package
Post by: MichaelG on April 09, 2013, 08:57:22 pm
Hello,

I like to know how it is possibile to delete a package in an Enterprise Architect model via the C# API.

I already used the search function of the forum and I read the api documentation but I don't find any solution to delete a package.

Is there any way without deleting everything manually by sql statements?

Regards,
Michael
Title: Re: How to delete a package
Post by: Geert Bellekens on April 09, 2013, 09:00:43 pm
Sure, you just need to select its parentPackage and then do:
Code: [Select]
parentPackage.Packages.DeleteAt(i);
Geert