User:Kate Racaza/APIdraftspage: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '<div style="border:1px solid #AAA; background:#f9f9f9; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em;"> '''New Classes''' '''New Enums''' '''Methods''' *[[Rep…')
 
No edit summary
 
(69 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="border:1px solid #AAA; background:#f9f9f9; border-radius:10px; width:auto; margin:0 0 1em 1em; padding:1em;">
__NOTOC__
'''New Classes'''
==Leader Pages==
*[[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'''


'''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 local models associated with a project. Returns a '''[[CModel Class|cModel]]''' object array that contains all 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 = LocalOnly.
 
 
== 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 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