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

where object is a variable that represents a Repository object.

Example
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)