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
 LabTalk Forum
 Project Filename and Path

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
LabTalk user Posted - 11/10/2010 : 6:39:16 PM
Origin Ver. and Service Release (Select Help-->About Origin): 8.1 SR3
Operating System: Windows XP

I am trying to make a custom export button which automatically displays the project filename and path of where the project is saved on the graph. I am wondering how to access the project path and filename automatically without having to make the user re-enter it. Is there a variable that information is always stored in?

Thanks!
6   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 12/20/2010 : 5:16:23 PM
expGraph -d;

... brings up the Export Graph dialog.

Script will not continue unless and until the user clicks OK and the export finishes.
LabTalk user Posted - 12/15/2010 : 3:26:49 PM
Thanks Greg, that is extremely helpful for exporting files in a script. I should have been a little more specific regarding what I am looking for. I want to just bring up the export graph dialog box in the middle of the script. I want to allow the user to alter things within the dialog box and then once they hit 'OK' it returns to running the script.

How would I go about implementing this?

Thanks for the advice!
greg Posted - 12/14/2010 : 11:18:42 AM
We never recommend using the menu id since we do not guarantee the id will persist between versions - thus breaking your code.

The export graph X-Function (expGraph) is easily programmed, especially in 8.1SR3.

With a graph active, open the export graph dialog.
Choose "Specified" as the 'Export'.
Enter 'File Name(s)' as "My File".
Choose "Auto Rename" for 'Overwrite Existing'.
Set any other properties as you wish.
Now click the flyout button to the right of 'Dialog Theme' and choose the 'Generate Script' option.

You can complete the export as a test of your settings, but you now have a script that does the job. Edit the
pages:=value
filename:="value"
path:="value"
as needed.
LabTalk user Posted - 11/16/2010 : 10:01:30 AM
Thank you. This is exactly what I'm looking for. I also have one more question, the menu -e command is good for executing options like print within a script. Is there a 5 digit code for the export graph? So far when I hit the control + shift and click on the menu button it brings up the x-function code.

Thanks!
larry_lan Posted - 11/15/2010 : 03:26:41 AM
Hi:

Maybe you can look at the Example 5 about Label command.

Thanks
Larry
OriginLab
cpyang Posted - 11/10/2010 : 11:07:26 PM
Sytem String Registers, %X and %G,

http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:String_registers

CP

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