Talk:Repository.BlockSim.GetAllRBDBlocksData/Notes

=DRAFT=

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 or fault tree.

Example
VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyRepository.Project.SetCurrentProject(1) ABlock RBDBlockData ABlock = MyRepository.BlockSim.GetAllRBDBlocksData(21) Name String ID Integer Name= ABlock(0).DisplayName ID= ABlock(0).BlockID MsgBox (Name & & ID)