Repository.Model.GetAllModels

Gets a list of local models associated with a project (does not include global or reference models). Returns a cModel object array that contains all the models in that project.

Syntax
.Model.GetAllModels

Example
This example assumes that models exist in the first available project of a repository.

VBA|VB.NET MyRepository Repository ListofModels cModel MyRepository.Project.SetCurrentProject (1) ListofModels = MyRepository.Model.GetAllModels NumberofElements Integer NumberofElements = UBound(ListofModels) - LBound(ListofModels) + 1 MsgBox (NumberofElements)