Talk:Repository.BlockSim.GetAllRBDBlocksData/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 an array containing the data of all blocks in a BlockSim RBD or fault tree…') |
Kate Racaza (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
<onlyinclude>Gets an array containing the data of all blocks in a BlockSim RBD or fault tree. Returns an [[RBDBlockData Class|RBDBlockData]] object that represents the | <onlyinclude>Gets an array containing the data of all blocks in a BlockSim reliability block diagram (RBD) or fault tree. Returns an '''[[RBDBlockData Class|RBDBlockData]]''' object that represents the properties of each block.</onlyinclude> | ||
==Syntax== | ==Syntax== | ||
'''BlockSim.GetAllRBDBlocksData'''(''DiagramID'') | '''.BlockSim.GetAllRBDBlocksData'''(''DiagramID'') | ||
===Properties=== | ===Properties=== |
Revision as of 16:13, 4 May 2016
DRAFT
Member of: SynthesisAPI.Repository
Gets an array containing the data of all blocks in a BlockSim reliability block diagram (RBD) or fault tree. Returns an RBDBlockData object that represents the properties of each block.
Syntax
.BlockSim.GetAllRBDBlocksData(DiagramID)
Properties
DiagramID
- Required. Integer. The numeric ID of the RBD.
Example
VBA|VB.NET 'Connect to a Synthesis repository. Dim MyRepository As New Repository MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr10") 'Connect to a project that contains a BlockSim diagram. MyRepository.Project.SetCurrentProject(1) 'Get all block data in diagram #21. Dim ABlock() As RBDBlockData ABlock = MyRepository.BlockSim.GetAllRBDBlocksData(21) 'Display the name and ID of the first block in the array. Dim Name As String Dim ID As Integer Name= ABlock(0).DisplayName ID= ABlock(0).BlockID MsgBox (Name & ", " & ID)