Open the Repository

An example of the VB.Net code to open an Enterprise Architect repository.


Public Class AutomationExample


 ''class level variable for Repository

 Public m_Repository As Object


 Public Sub Run()


     ''create the repository object

     m_Repository = CreateObject("EA.Repository")


     ''open an EAP file


     ''use the Repository in any way required



     ''close the repository and tidy up


     m_Repository = Nothing


....catch e as exception


   End try

 End Sub

end Class