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?

Cutsets

 

One way is a manual two-step process in CAFTA:

  1. Sort the cutsets on Order
  2. 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)

Cutsets

 

This video link shows how to run the script in CAFTA.