Repository.Model.GetAllModels

Gets a list of all existing local models in the current project (does not include global or reference models). Returns a cModel object array that contains the model names, ID numbers and other information.

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 ModelName String ModelID Integer ModelName = ListofModels(0).Name ModelID = ListofModels(0).ID MsgBox ( & ModelName &  & ModelID)