The nlbegin xfunction supports loading a theme of the fitting settings. So here are the steps to set the Iteration Algorithm in your script:
1. Open the Nonlinear Curve Fitting dialog.
2. Specify a fitting function, set the Iteration Algorithm to Orthogonal Distance Regression.
3. Click the triangle button to the far right of Dialog Theme at the top and choose Save As.... You can save the settings to a theme with name ODR.
4. Then you can specify the theme in your script like below:
nlbegin iy:=([Table]Data! 1, [Table]Data! 2) func:=ExpDecay2 nltree:=tr theme:=ODR;
Thanks
James