Author |
Topic |
|
thadrien
7 Posts |
Posted - 07/03/2012 : 04:29:55 AM
|
Dear all,
I would like to make a complete copy of a folder of my origin project. After a long time to search, I couldn't unfortunately find how to do this. Could someone help me ?
Thanks a lot, Kind regards,
OriginPro 8.6.0G (64-bit) b70 (Home Use) Windows 7 Professional - Service Pack 1 |
Edited by - thadrien on 01/24/2021 08:23:55 AM |
|
Hideo Fujii
USA
1582 Posts |
Posted - 07/03/2012 : 11:27:46 AM
|
Hi Hadrien,
Currently there is no single menu or shortcut to do that, but the following script can duplicate the current folder's contents (except minimized and Notes windows and subfolders): //////////////////////////
pe_mkdir ../duplicated path:=pp$;
doc -ef O {
window -d; //duplicate this
pe_move %H pp$; //move to new folder
}
type -b %(pp$) has been created;
////////////////////////// Hope this helps you.
--Hideo Fujii OriginLab |
Edited by - Hideo Fujii on 07/03/2012 11:38:14 AM |
|
|
Hideo Fujii
USA
1582 Posts |
Posted - 07/03/2012 : 4:33:23 PM
|
Hi Hadrien,
The following procedure is functionally better - copies not only worksheets and graphs, but also Notes, minimized, and subfolder as well:
1) In the Project Explorer, right-click on the folder you want to copy, and choose "Save As Project" flyout. Save it somewhere. 2) Right-click on the parent folder of the saved folder, and choose "Append Project" flyout. Load the saved folder.
Or, run the corresponding script:////////////////////////////
pe_mkdir ../duplicatd path:=pp$; //make dir
pe_save fname:=temp.opj; //save folder
pe_cd pp$; //move to destination
pe_load temp.opj; //load the saved folder
del -f "%Ytemp.opj"; //delete temp file
//////////////////////////// Please note that this save-and-load method creates a whole closed set of data-to-graph associations within. This is the most significant difference from the script in my previous script sample (which preserve the data-to-graph associations - means the duplicated graph points the original worksheet data.
--Hideo Fujii OriginLab
|
Edited by - Hideo Fujii on 07/03/2012 5:32:34 PM |
|
|
thadrien
7 Posts |
Posted - 07/03/2012 : 5:22:07 PM
|
Hi Hideo,
Thanks a lot for your help ! It worked perfectly and will save me a lot of time.
Kind regards, |
Edited by - thadrien on 01/24/2021 08:24:09 AM |
|
|
asp
USA
17 Posts |
Posted - 07/04/2012 : 11:02:39 AM
|
I would suggest to include this option into next release of Origin. It is very usefull in term of routines automation. It is so natural I wonder why this feature is still missing |
|
|
thadrien
7 Posts |
Posted - 07/05/2012 : 06:10:14 AM
|
I guess there is two reasons for this feature to not be present in Origin :
First, it is no evident to manage the dependencies in an intuitive way, during the copying process. For example, if we copy a graph which uses a table, should the original table be used or should it be copied ?
Second, I guess this feature is missing because there is a better alternative to copy folders, but which one ? Maybe the power users of Origin could give us an answer.
But this is still clearly a missing feature.
This leads me to another question : is there any way for the end user to add itself this functionality to Origin ? I know Origin is closed-source, but there is a scripting language, so maybe this is possible ?
King regards, Hadrien
OriginPro 8.6.0G (64-bit) b70 (Home Use) Windows 7 Professional - Service Pack 1 |
|
|
Hideo Fujii
USA
1582 Posts |
|
thadrien
7 Posts |
Posted - 07/12/2012 : 04:40:26 AM
|
Hi,
Thanks a lot for your indications. I will try this on the next time.
Kind regards,
OriginPro 8.6.0G (64-bit) b70 (Home Use) Windows 7 Professional - Service Pack 1 |
Edited by - thadrien on 01/24/2021 08:24:18 AM |
|
|
|
Topic |
|