Talk:Repository.BlockSim.GetAllRBDs/Notes: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) (Created page with '=DRAFT= {{Template:API}}{{Template:APIBreadcrumb|.Repository}} <onlyinclude>Gets a list of all BlockSim reliability block diagrams (RBDs) associated with a…') |
Kate Racaza (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
MyRepository.Project.SetCurrentProject (1) | MyRepository.Project.SetCurrentProject (1) | ||
{{APIComment|'Get a list of all | {{APIComment|'Get a list of all RBDs in project #1.}} | ||
{{APIPrefix|Dim}} ListofRBDs() {{APIPrefix|As}} NameIdPair | {{APIPrefix|Dim}} ListofRBDs() {{APIPrefix|As}} NameIdPair | ||
ListofRBDs = MyRepository.BlockSim.GetAllRBDs() | ListofRBDs = MyRepository.BlockSim.GetAllRBDs() |
Revision as of 22:07, 3 May 2016
DRAFT
Member of: SynthesisAPI.Repository
Gets a list of all BlockSim reliability block diagrams (RBDs) associated with a project. Returns a NameIdPair object that represents the name and ID pairs of the RBDs.
Syntax
.BlockSim.GetAllRBDs()
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 RBDs in project #1. Dim ListofRBDs() As NameIdPair ListofRBDs = MyRepository.BlockSim.GetAllRBDs() 'Output sample: Display the number of RBDs in the project. Dim NumberofElements As Integer NumberofElements = UBound(ListofRBDs) - LBound(ListofRBDs) + 1 MsgBox (NumberofElements)