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 for Programming
 Forum for Origin C
 Help with scripting

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
shashank.vasudevan Posted - 08/01/2019 : 06:30:04 AM
Hi,

This post is more asking for help from the scratch. If it is inappropriate, I will delete this.

I have tons of data to process using Origin that I was doing manually. It is basically copying a data set from a worksheet and inserting them in a column and plot them. Please see the attached image for example.

However, it takes a lot of time when I have to do it for more than 50 worksheets that have thousands of rows at once and it is something that I feel could be automated using a script.

But, I am very bad at scripting mainly because I dont know any programming language.

So I was wondering if someone could kindly help me create a script to do that? It would be really great given the time constraint I have.

Sincerely,
Shashank


Origin Pro 2018b, b9.5.5.409
Operating System:Windows 10
2   L A T E S T    R E P L I E S    (Newest First)
shashank.vasudevan Posted - 08/02/2019 : 11:04:11 AM
Dear James,

Thank you so much. That was a good start for me and I modified it to suit my application.

Best,
Shashank
YimingChen Posted - 08/01/2019 : 2:28:36 PM
Hi,

Use LT script to append ranges:

	range r1 = col(A)[1:17];
	range r2 = col(C);
	copy -a r1 r2;
	range r1 = col(D);
	copy -a r1 r3;

	
	range r1 = col(A)[18:33];
	range r2 = col(E);
	copy -a r1 r2;
	range r2 = col(F);
	copy -a r1 r2;


James

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