@Mark_Bailey suggestion is correct. There is also one additional item you need to be aware of, you can not label 2 reference lines the same.....which may actually be the underlining issue with not being able to graph 2 spec limits automatically. However, below is a simple example of overcoming the issues
Names default to here(1);
dt = open("$SAMPLE_DATA/semiconductor capability.jmp");
gb = Graph Builder(
Variables( X( :SITE ), Y( :PNP1 ), Y( :NPN2, Position( 1 ) ) ),
Elements( Points( X, Y( 1 ), Y( 2 ), Legend( 19 ) ) ),
SendToReport(
Dispatch(
{},
"PNP1",
ScaleBox,
{Min( -275.218658892128 ), Max( 1128.57142857143 ), Inc( 200 ),
Minor Ticks( 1 )}
)
)
);
axisbox = report(gb)[AxisBox(2)];
specs = dt:PNP1 << get property("Spec Limits");
axisbox << Add Ref Line( specs["LSL"], "Solid", blue, "LSL1", 2 );
axisbox << Add Ref Line( specs["USL"], "Solid", green, "USL1", 2 );
specs = dt:PNP2 << get property("Spec Limits");
axisbox << Add Ref Line( specs["LSL"], "Solid", red, "LSL2", 2 );
axisbox << Add Ref Line( specs["USL"], "Solid", yellow, "USL2", 2 );
Jim