The Origin Forum
File Exchange
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
 Origin Forum
 How to copy folders in origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

thadrien

7 Posts

Posted - 07/03/2012 :  04:29:55 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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,
Hadrien

OriginPro 8.6.0G (64-bit)
b70 (Home Use)
Windows 7 Professional - Service Pack 1

Hideo Fujii

USA
976 Posts

Posted - 07/03/2012 :  11:27:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Hideo Fujii

USA
976 Posts

Posted - 07/03/2012 :  4:33:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

thadrien

7 Posts

Posted - 07/03/2012 :  5:22:07 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo,

Thanks a lot for your help ! It worked perfectly and will save me a lot of time.

Kind regards,
Hadrien
Go to Top of Page

asp

USA
17 Posts

Posted - 07/04/2012 :  11:02:39 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

thadrien

7 Posts

Posted - 07/05/2012 :  06:10:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Hideo Fujii

USA
976 Posts

Posted - 07/11/2012 :  4:32:06 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hadrien,

> is there any way for the end user to add itself this functionality to Origin ?

You can expand the Origin's functionality by making a custom menu or a user-defined tool button in a tool bar.

For the Custom Menu, look at the Origin help in the section of:
UserGuide> Customization and Automation> Custom Menus> Create Custom Menus
or at:
http://www.originlab.com/www/helponline/Origin/en/UserGuide/Create_Custom_Menus.html

For the custom tool buttons, in Origin help at:
User Guide> Customization and Automation> Customizing Toolbars> User-Defined and Custom Toolbars and Toolbar Buttons
or at:
http://wiki.originlab.com/~originla/ltwiki/index.php?title=Script:From_a_Toolbar_Button

If you only need to use the Custom Ruotine button in the "Standard" toolbar:
http://wiki.originlab.com/~originla/ltwiki/index.php?title=Script:Getting_Started_with_LabTalk#Custom_Routine

So, you can put a script like my above samples in the menu or in the button.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 07/12/2012 09:52:14 AM
Go to Top of Page

thadrien

7 Posts

Posted - 07/12/2012 :  04:40:26 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Thanks a lot for your indications. I will try this on the next time.

Kind regards,
Hadrien

OriginPro 8.6.0G (64-bit)
b70 (Home Use)
Windows 7 Professional - Service Pack 1
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 © 2008 Originlab Corporation Go To Top Of Page
Snitz Forums 2000