Yes, re-sizing the chart and saving the script should generate the code you need for setting the size of the frame box. Just copy and paste the extra snippets of code to your existing script. For example I took the sample data table "Braces" that alrady has script embeded to produce a U-chart. I ran the script and then re-sized the chart and save the modified report as a new script. Below I've include a copy of both scritps for comparison. What I colored in red is the new code generated from re-sizing the chart, green was original.
Original Script copied to the sample data table:
Control Chart(
Sample Label( :Date ),
Unit Size( :Unit size ),
K Sigma( 3 ),
Chart Col( Name( "# defects" ), U )
)
New script that I saved to the data table after modifying the chart dimentions:
Control Chart(
Sample Label( :Date ),
Unit Size( :Unit size ),
KSigma( 3 ),
Chart Col( :Name( "# defects" ), U ),
SendToReport(
Dispatch(
{"U of # defects"},
"Attributes Chart",
FrameBox,
{Frame Size( 354, 193 )}
),
Dispatch(
{"U of # defects"},
"Attributes Chart",
FrameBox( 2 ),
{Frame Size( 55, 193 )}
)
)
)