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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Curves from 2 Projects in 1 Graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

klunz

Germany
Posts

Posted - 12/05/2007 :  08:47:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 12/05/2007 :  9:20:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

klunz

Germany
Posts

Posted - 12/19/2007 :  07:30:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Mike,

thanks a lot, this works perfectly.

Happy Holidays
Tobi

Edited by - klunz on 12/19/2007 07:31:18 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000