Talk:Repository.BlockSim.GetAllFaultTrees/Notes

From ReliaWiki
Revision as of 22:09, 3 May 2016 by Kate Racaza (talk | contribs) (Created page with '=DRAFT= {{Template:API}}{{Template:APIBreadcrumb|.Repository}} <onlyinclude>Gets a list of all BlockSim fault trees associated with a project. Returns a ''…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DRAFT

APIWiki.png


Member of: SynthesisAPI.Repository


Gets a list of all BlockSim fault trees associated with a project. Returns a NameIdPair object that represents the name and ID pairs of the fault trees.

Syntax

.BlockSim.GetAllFaultTrees()


Example

VBA|VB.NET
 
 'Connect to a Synthesis repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10")

 'Connect to project#1 in the repository. 
  MyRepository.Project.SetCurrentProject (1)
   
 'Get a list of all fault trees in project #1. 
  Dim ListofFTs() As NameIdPair
  ListofFTs = MyRepository.BlockSim.GetAllFaultTrees()

 'Output sample: Display the number of fault trees in the project. 
  Dim NumberofElements As Integer
  NumberofElements = UBound(ListofFTs) - LBound(ListofFTs) + 1
  MsgBox (NumberofElements)