In Mathematica, one can use "%" as a placeholder for the last returned value.
![hogi_0-1668342422218.png hogi_0-1668342422218.png](https://community.jmp.com/t5/image/serverpage/image-id/47282iB1340CFD61E53CC9/image-size/medium?v=v2&px=400)
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 ) ) )
);
// during debugging:
gb = %;(gb << XPath( "//AxisBox" )) << select;
// or even better:
gb << get XML();
New Window("xml", %)