In Mathematica, one can use "%" as a placeholder for the last returned value.

Is there something similar in JMP?
Then one could use the fact that a reference to an object is returned by the function which creates the object.
Could help during debugging:
Run single lines of the original code, add some test code and get a quick reference to a created object via the placeholder.
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Graph Builder(
Size( 437, 413 ),
Graph Spacing( 4 ),
Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) )
);
<BR />// during debugging:
gb = %;<BR />(gb << XPath( "//AxisBox" )) << select;<BR />