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
 Rename graphs with the workbook's long name

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
surjpanj Posted - 12/29/2020 : 05:44:23 AM
Origin Ver. and Service Release (Select Help-->About Origin): 2016
Operating System: Windows

Hi,

I need a script that would rename plotted graphs to: "workbook's long name and long name of the column" (e.g. Book01_LongName_of_ColC, Book01_LongName_of_ColD, Book01_LongName_of_ColE...

The bottom script kind a works but changes graphs name to: "workbook's short and long name plus column and long name of the column". Such names are too long I only need "workbook's long name plus long name of the column"

int numPlot = 1;
doc -e LP{
range -w rG = %C;
string strRange$ = %(rG);
page.LONGName$ = strRange$;
}

Thanks,
Matt
2   L A T E S T    R E P L I E S    (Newest First)
surjpanj Posted - 12/30/2020 : 04:01:12 AM
Perfect! It works.
Thank you!
Chris D Posted - 12/29/2020 : 10:30:44 AM
Try this:

doc -e LP{
page.longname$ = "%(1Y,@WL) %(1Y,@LL)";
}


Thanks,
Chris Drozdowski
Originlab Technical Support

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