Hello,
Is there a way we can write the expression to build multiple reliability block using a for loop?
Reliability Block Diagram(
System Item(
"New Diagram 1",
Reliability Block( "Start", Position( 0, 5.72 ) ),
Reliability Block( "End", Position( 5.82, 5.815 ) ),
Reliability Block(
"New Basic 1",
Position( 2.18, 5.335 ),
Configuration( Basic( Weibull( 1, 1 ) ) )
),
Reliability Block(
"New Basic 2",
Position( 3.09, 5.335 ),
Configuration( Basic( Weibull( 1, 1 ) ) )
),
Reliability Block(
"New Basic 3",
Position( 2.2, 6.485 ),
Configuration( Basic( Weibull( 1, 1 ) ) )
),
Reliability Block(
"New Basic 4",
Position( 3.05, 6.485 ),
Configuration( Basic( Weibull( 1, 1 ) ) )
),
Block Connections(
{{"Start", "New Basic 1"}, {"Start", "New Basic 3"}, {"New Basic 1",
"New Basic 2"}, {"New Basic 2", "End"}, {"New Basic 3", "New Basic 4"},
{"New Basic 4", "End"}}
)
),
Open System Item( "New Diagram 1" ),
SendToEmbeddedScriptable(
Dispatch(
{"Distribution"},
{1, Term Value( Time( 0.5, Lock( 0 ), Show( 1 ) ) )}
)
),
SendToReport(
Dispatch( {}, "", TextEditBox, {Set Wrap( 100 )} ),
Dispatch( {}, "", Text Edit Box( 2 ), {Set Wrap( 100 )} ),
Dispatch( {}, "", Text Edit Box( 3 ), {Set Wrap( 100 )} ),
Dispatch( {}, "", Text Edit Box( 4 ), {Set Wrap( 100 )} ),
Dispatch( {}, "Distribution", OutlineBox, {SetHorizontal( 1 )} )
),
SendToEmbeddedScriptable(
Dispatch(
{"Distribution"},
{1, Term Value( Time( 0.5, Lock( 0 ), Show( 1 ) ) )}
)
)
)