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 |
|
|