I have lots of data files I want to import into my Origin project, all imports show the same procedure: Import with certain filter (which I already created), add 4 colums to the workbook and fill those columns with data calculated from the original data. How can this calculation be implemented into my import process?
Thanks alot! That actually helped! Great feature. I implemented something which works nearly perfect. But there seemed to be some small error in the labtalk code. So my question is: Where can edit this specific filter again to get rid of this error?
Edit: I edited it directly in the filter file by using Windows notebook. But the following code still doesnt work:
//creating some new colums and fill them with stuff depending on the old ones (works properly) ...
//changing the type of one of the colums to 4 (=X axis)... doesnt work for some reason:
The statement wks.col11.type = 4; should work fine provided you have a 11th column in your workbook. Perhaps something went wrong when you edited the file in notepad? Try open a file in Import Wizard and pick your filter and walk thru the pages to the last page to check if the script shows properly. Contact tech support if you still have problems.
Easwar OriginLab
P.S. To edit the filter to quickly change the script (instead of having to walk thru the wizard again), you can use the menu item: Tools->Import Filter Manager. In that dialog, pick your filter, then click Edit button.