Repository.Model.GetAllModels: Difference between revisions
Jump to navigation
Jump to search
Alex Ulanov (talk | contribs) |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template: | {{Template:APIBreadcrumb|10|Repository}} | ||
{{Template: | {{Template:API}} | ||
Gets a list of all existing local models in the current project (does not include global models). Returns a '''[[CModel Class|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'''<br> | ||
{{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | |||
{{APIComment|...'Add code to connect to a Synthesis repository.}} | |||
{{APIComment|...'Then set one of the projects in the repository as the current (active) project.}}<br> | |||
{{APIComment|' | {{APIPrefix|Dim}} ListofModels() {{APIPrefix|As}} cModel | ||
ListofModels = MyRepository.Model.GetAllModels() | |||
{{APIComment| | |||
Dim | |||
Revision as of 22:07, 13 July 2015
Member of: SynthesisAPI10Repository
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()