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
object.Model.GetAllModels

where object is a variable that represents a Repository object.

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)