Repository.Model.GetAllModelsInfo

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

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