The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Export script for many files

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
neutrondude Posted - 08/25/2009 : 10:19:06 AM
Origin Ver. 7.5 and Service Release (Select Help-->About Origin):
Operating System: XP prof.

I have been wondering for a long time whether it is possible to export (not import) many files- let say all the worksheets in a project in one go. I have many- hundreds and would like to export them after having manipulated them in Origin. Are there any script that can do that?

thanks a lot in advance
2   L A T E S T    R E P L I E S    (Newest First)
neutrondude Posted - 04/07/2010 : 11:18:50 AM
Dear Origin,

I am trying to export a lot of data simulatenously (all worksheets to ascii files)
I have tried the above mentioned script but it does not work. What I do is to execute the following commands in the script window:

// Setup the WKS.EXPORT object
wks.export.c1 = 1;
wks.export.c2 = 0; // All columns
wks.export.r1 = 1;
wks.export.r2 = 0; // All rows
wks.export.separator$ = "\t"; // Use TAB separator
wks.export.cntrl = 7; // Export Column Names + Data + Column Labels
// Loop over al worksheets in the project
doc -e W {
save -wh %H D:\TEMP\%H.DAT; // -wh uses WKS.EXPORT object
}

How do I implement it in Origin 7/7.5?
Could I export certain coumns lets call them Q, Icorr and dIcorr ?

Thanks a lot in advance!

greg Posted - 08/31/2009 : 1:15:30 PM
Here is a script for 7.5 and earlier:

// Setup the WKS.EXPORT object
wks.export.c1 = 1;
wks.export.c2 = 0; // All columns
wks.export.r1 = 1;
wks.export.r2 = 0; // All rows
wks.export.separator$ = "\t"; // Use TAB separator
wks.export.cntrl = 7; // Export Column Names + Data + Column Labels
// Loop over al worksheets in the project
doc -e W {
save -wh %H D:\TEMP\%H.DAT; // -wh uses WKS.EXPORT object
}

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000