I have spec information in a spec limits table the same as what the Process Capability function would generate from the menu pull down mode.
I have added all the spec limits to the column properties of the data table.
I have created a list of the parameters:
par_list = ":BOW, :TIR, :SFPD, :TTV, :WARP";
Coping script from Process Capability analysis done manually from data set I have:
ADE << Process Capability(Process Variables( :TTV, :TIR, :SFPD, :BOW, :WARP ),
Spec Limits(
TTV( LSL( . ), Target( . ), USL( 5 ) ),
TIR( LSL( . ), Target( . ), USL( 3.5 ) ),
SFPD( LSL( . ), Target( . ), USL( 0.25 ) ),
BOW( LSL( -55 ), Target( 0 ), USL( 55 ) ),
WARP( LSL( . ), Target( . ), USL( 55 ) )
),
Color Out of Spec Values( 1 ),
Goal Plot( 1, Shade Levels( 1 ), Label Overall Sigma Points( 1 ) )
);
Modification to make it run failed on first line:
ADE << Process Capability(Process Variables( " || par_list || " ),
Not sure how to handle the Spec Limits section input.