User:Kate Racaza/APIdraftspage: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(67 intermediate revisions by the same user not shown)
Line 1: Line 1:
=TOC=
__NOTOC__
<div style="border:1px solid #AAA; background:#f9f9f9; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em;">
==Leader Pages==
'''New Classes'''
*[[Talk:API_Changelog/Notes]]
**[[Talk:New_Classes_and_Enumerations/Notes]]
**[[Talk:New_Members_and_Constants/Notes]]
**[[Talk:Deprecated_and_Removed_Members/Notes]]
*[[Talk:API_Reference_Documentation/Notes]]
*[[Talk:Synthesis_API_Reference/Notes]]
*[[Talk:API_Tutorials/Notes]]


'''New Enums'''
*[[ResourceFilterEnum_Enumeration]]


'''Methods'''
==Drafts for 11==
*[[Repository.Model.GetAllModels]]- SYN-I-4788
xxx


</div>






=[[Repository.Model.GetAllModels]]=
==Pending==
{{Template:API}}{{Template:APIBreadcrumb|10|.[[Repository Class|Repository]]}}
*[[ALTAEvents.Question]] - scrapped from V10, wasn't working. If fixed, include in V11.
 
*[[Upload XML File to XFRACAS]] - removed from V11.1.1. Focus is now on web service. A copy of the old content exists in the Notes talk page.
 
<onlyinclude>Gets a list of models associated with a project. Returns a '''[[CModel Class|cModel]]''' object array that contains the models in that project.</onlyinclude>
 
== Syntax ==
'''.Model.GetAllModels'''(''Filter'')
 
===Parameter===
''Filter''
:Optional. A filter that returns a particular type of model resource (e.g., global models only, local and global models only, etc.). Can be any [[ResourceFilterEnum_Enumeration|ResourceFilterEnum]] constant. Default value = 0, which returns local models only.
 
 
== Example ==
This example assumes that models exist in the first available project of a repository.
 
  '''VBA|VB.NET'''
{{APIComment|'Add code to connect to a Synthesis repository.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  {{APIComment|...}}
 
{{APIComment|'Get a list of all local models in project #1.}}
  {{APIPrefix|Dim}} ListofModels() {{APIPrefix|As}} cModel
  MyRepository.Project.SetCurrentProject (1) 
  ListofModels = MyRepository.Model.GetAllModels()
{{APIComment|'Output sample: Display the number of elements in the array.}}
  {{APIPrefix|Dim}} NumberofElements {{APIPrefix|As}} Integer
  NumberofElements = UBound(ListofModels) - LBound(ListofModels) + 1
  MsgBox (NumberofElements)

Latest revision as of 22:13, 12 April 2017

Leader Pages


Drafts for 11

xxx



Pending