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