Repository.BlockSim.GetRBDBlockData

Returns an RBDBlockData object that represents the properties of a BlockSim block.

Syntax
.BlockSim.GetRBDBlockData(DiagramID, BlockID)

Parameters
DiagramID
 * Required. Integer. The numeric ID of the reliability block diagram (RBD) or fault tree.

BlockID
 * Required. Integer. The numeric ID of the block.

Example
VBA MyRepository Repository MyRepository.ConnectToAccessRepository MyRepository.Project.SetCurrentProject(1) ABlock RBDBlockData ABlock = MyRepository.BlockSim.GetRBDBlockData(21, 1) BlockID Integer BlockType BlockDataType DiagramID Integer DisplayName String URDID Integer BlockID = ABlock.BlockID BlockType = ABlock.BlockType DiagramID = ABlock.DiagramID DisplayName = ABlock.DisplayName URDID = ABlock.URDID MsgBox( & BlockID & vbNewLine & _          & BlockType & vbNewLine & _           & DiagramID & vbNewLine & _           & DisplayName & vbNewLine & _           & URDID)

VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository MyRepository.Project.SetCurrentProject(1) ABlock RBDBlockData ABlock = MyRepository.BlockSim.GetRBDBlockData(21, 1) MsgBox( & ABlock.BlockID & vbNewLine &          & ABlock.BlockType & vbNewLine &           & ABlock.DiagramID & vbNewLine &           & ABlock.DisplayName & vbNewLine &           & ABlock.URDID)