Repository.Model.GetAllModelsInfo

Gets a list of local models associated with a project (does not include global or reference models). Returns a NameIdPair object array that contains all the models in that project. This includes internal models automatically created with any new repository (model ID#s 1 to 20).

Syntax
.Model.GetAllModelsInfo

Example
This example assumes that models exist in the first available project of a repository. VBA|VB.NET MyRepository Repository ListofModels NameIDPair MyRepository.Project.SetCurrentProject (1) ListofModels = MyRepository.Model.GetAllModelsInfo NumberofElements Integer NumberofElements = UBound(ListofModels) - LBound(ListofModels) + 1 MsgBox (NumberofElements)