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
 Curves from 2 Projects in 1 Graph

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
klunz Posted - 12/05/2007 : 08:47:07 AM
Origin Version (Select Help-->About Origin): 7.5 R6
Operating System: Win XP

Hi everyone,

I have the following Problem:
We have a Database with lots of different Origin-Projects, each Project contains the Analysis of one Meassurement.

What I am trying to accomplish is, that you can select two Projects within the Database and display the Curves of the same type (in each Projekt, the Graphs, Curves and Worksheets have the same names) in one Graph.
P.e.: I select the Projects "19.Nov.07" and "20.Nov.07" and Origin Displays the Curves named "Fourier" from both Projects in one Graph.

I have somewhat skipped the Task of calling Origin from an extern application, I`ll read into that later, right now Im trying to get the two Curves together.

The "brute force" attempt to this would be to write something in OriginC that opens the first Project, exports the curve into a temporary ASCII-File, does the same with the second curve and then imports both files into the Origin-Instance where the code was executed.
I was wondering if there wasnt a more "elegant" way to do this, like extracting the Data out of a Project without opening it or something like that, but I havent found anything in the help-Files or the Forum.

Thanks in advance

Tobias
2   L A T E S T    R E P L I E S    (Newest First)
klunz Posted - 12/19/2007 : 07:30:45 AM
Hi Mike,

thanks a lot, this works perfectly.

Happy Holidays
Tobi

Edited by - klunz on 12/19/2007 07:31:18 AM
Mike Buess Posted - 12/05/2007 : 9:20:23 PM
Hi Tobias,

Origin handles only open projects but there's no need to be so "brutish" as to export and reimport the data. ;) Just append (File> Append) each project to separate subfolders of the current project. You can move the relevant data to the root folder and then delete both subfolders.

If you intend to program this you should know there is no Origin C method for appending a project. However, you can use LabTalk's document -a filename command...

string strOPJ = GetOpenBox("*.opj");
LT_execute("doc -a " + strOPJ);

Furthermore, duplicate windows in the appended projects are renamed ...Data1-->Data1A, Graph1-->Graph1A, etc... but it's straightforward to predict the new names.

Mike Buess
Origin WebRing Member

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