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
 Code for Pre-scaled In Axis From and To Values

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
cdrozdowski111 Posted - 03/20/2015 : 07:49:59 AM
In LabTalk (or Origin C), how can I get the original/base From and To values for an axis before a user uses the Scale In tool? After the user scales in, those value change but I'd like the unscaled in values while they are scaled in.
2   L A T E S T    R E P L I E S    (Newest First)
cdrozdowski111 Posted - 03/21/2015 : 08:36:06 AM
Thanks Hideo,

It gets the values I need but when you scale out to restore, it breaks the "scaled in" status.

I was just hoping there were some variables/properties I could retrieve that I had overlooked but I don't want to spend any more time on it as its not crucial, so we can let it go.
Hideo Fujii Posted - 03/20/2015 : 2:46:49 PM
Hi cdrozdowski111,

I know this is really a crude way, but this may do your task, if I didn't misunderstand:
Menu -e 34107; //copy scale format
Menu -e 35008; //scale out to restore
originalxFrom=layer1.x.from; originalxTo=layer1.x.to;
originalyFrom=layer1.y.from; originalyTo=layer1.y.to;
Menu -e 34102; //paste format
type -a original X From:$(originalxFrom) To:$(originalxTo);
type -a original Y From:$(originalyFrom) To:$(originalyTo);
Hope this does your job.

--Hideo Fujii
OriginLab

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