CAFTA Scripts
-
Cutset Order is the number of basic events in a cutset. In a long list of cutsets, how do you find the cutset that has the maximum number of basic events?
One way is a manual two-step process in CAFTA:
- Sort the cutsets on Order
- Scroll to the last cutset and count the inputs
The CAFTA script looks like this. Copy this text, paste it into CAFTA's script editor, and run it:
'Determine maximum MCS order.
CS.Sort(CutsetModule.enumSortMethod.ByOrder)
messagebox.show("Max. cutset order = " & _
CS.CutsetRows(CS.CutsetRows.count-1).inputs.count)
This video link shows how to run the script in CAFTA.