You should be able to read the General Linear Constraints into a string variable as follows:
%A=nlsf.constr$;
Since you wrote a script to read the constraints, why not then reverse the process and write to the FDF file after setting the constraints. That way you effectively update both the interface and FDF at the same time.
New ini object methods in Origin 7 should allow you to do this very easily. For instance, the ini.setstr() method now accepts the following arguments:
ini.setstr(keyValue,keyName,sectionName,fileName);
Translate this into setting the constraints and you get something like:
ini.setstr(b2;a2!=b2;,a1!,Constraints,%Yfitfunc\user1.fdf);
Of course, the constraints I have entered aren't really valid. They are just for illustrative purposes.
- rtoomey
Note: In earlier versions of Origin you would need to execute something like:
ini.get.fileName$=%Yfitfunc\user1.fdf;
ini.section$=Constraints;
ini.setstr(b2;a2!=b2;,a1!);