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 Python
 How to copy folder from one project to another?

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
ChemistryGuy Posted - 05/22/2023 : 07:30:51 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2023b (64-bit) Beta2
Operating System: Windows 11

I have two Origin projects, which both contain several folders. Each folder contains graphs and worksheets.

Is it possible to use Python code to copy all folders from one project into the other, thereby combining the two projects? If any could advise me how to do this, I would greatly appreciate it.

2   L A T E S T    R E P L I E S    (Newest First)
ChemistryGuy Posted - 06/14/2023 : 8:41:53 PM
Thank you for this advice, I gave it a try and it worked nicely! :)
ChaoC Posted - 05/22/2023 : 10:04:14 AM
Hello,

You could use the originpro function lt_exec() to run the LabTalk command for appending project folder.

e.g.

op.lt_exec('doc -afa "C:\Documents\ProjectfileName.opju" "folderName"')

The option -afa: "Appends the contents of the specified folder in another Origin project or all contents in another Origin project to the current folder."

https://docs.originlab.com/originpro/namespaceoriginpro_1_1utils.html#a32f4ba8d0e3bc42d938e25c8be5ec749
https://www.originlab.com/doc/LabTalk/ref/Document_Options_to_Append

Best,
Chao

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