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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Python
 Export data from .OGGU graph file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

hullierThan

2 Posts

Posted - 01/10/2021 :  03:52:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2021
Operating System:win10

Hi,
I have a large number of Graphs saved in a folder as .OGGU files. I would like to export the data of each of these as a .txt file.
I know it is possible to do this manually by right click on the content of one of the layers and then "create worksheet" and then export as ASCII.

Is there a way to do this in code?

Thanks in advance

YimingChen

1621 Posts

Posted - 01/11/2021 :  2:42:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Can you open all graphs in Origin, then run the LT script below?

doc -e LP {	
	menu -e 38051;
}

doc -e LB {
	expASC type:=0 path:="E:\%H_$(page.active)" separator:=TAB;
}


Yiming
Go to Top of Page

hullierThan

2 Posts

Posted - 01/23/2021 :  05:02:45 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

thank you this was really helpful.

May I ask how you found the menu ID (38051)?

All the best
Go to Top of Page

YimingChen

1621 Posts

Posted - 01/25/2021 :  2:47:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please check this page on finding menu command ID:
https://www.originlab.com/doc/LabTalk/ref/Menu-cmd#Finding_a_menu_command_ID

James
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 © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000