Talk:Repository.BlockSim.GetAllRBDs/Notes: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
(published changes for 10.1.4)
 
Line 1: Line 1:
=DRAFT=
=DRAFT=
{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}
<onlyinclude>Gets a list of all BlockSim reliability block diagrams (RBDs) associated with a project. Returns a '''[[NameIdPair Class|NameIdPair]]''' object that represents the name and ID pairs of the RBDs.</onlyinclude>
== Syntax ==
'''.BlockSim.GetAllRBDs()'''
==Example==
'''VBA|VB.NET'''
 
{{APIComment|'Connect to a Synthesis repository.}}
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  MyRepository.ConnectToAccessRepository({{APIString|"C:\RSRepository1.rsr10"}})
{{APIComment|'Connect to project#1 in the repository.}}
  MyRepository.Project.SetCurrentProject (1)
   
{{APIComment|'Get a list of all RBDs in project #1.}}
  {{APIPrefix|Dim}} ListofRBDs() {{APIPrefix|As}} NameIdPair
  ListofRBDs = MyRepository.BlockSim.GetAllRBDs()
{{APIComment|'Output sample: Display the number of RBDs in the project.}}
  {{APIPrefix|Dim}} NumberofElements {{APIPrefix|As}} Integer
  NumberofElements = UBound(ListofRBDs) - LBound(ListofRBDs) + 1
  MsgBox (NumberofElements)

Latest revision as of 23:28, 6 September 2016

DRAFT