Repository.Model.AddModel

Syntax

 * AddModel( m cModel )

Parameters
 * m: The cModel to add.

Usage Example
In this example, a new model is created and added to a repository. Dim MyRepository As New Repository Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") Dim newModel As New cModel(ModelTypeEnum.Weibull2, ModelCategoryEnum.Reliability, "NewModel1", 1, 100) Dim SuccessAddModel As Boolean = False SuccessAddModel = MyRepository.Model.AddModel(newModel) MyRepository.DisconnectFromRepository