Repository.Model.GetAllModels

From ReliaWiki
Revision as of 22:07, 13 July 2015 by Kate Racaza (talk | contribs)
Jump to navigation Jump to search

Member of: SynthesisAPI10Repository

APIWiki.png


Gets a list of all existing local models in the current project (does not include global 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

VBA|VB.NET
Dim MyRepository As New Repository ...'Add code to connect to a Synthesis repository. ...'Then set one of the projects in the repository as the current (active) project.
Dim ListofModels() As cModel ListofModels = MyRepository.Model.GetAllModels()