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
 LabTalk Forum
 Code for Pre-scaled In Axis From and To Values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

cdrozdowski111

USA
247 Posts

Posted - 03/20/2015 :  07:49:59 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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.

Hideo Fujii

USA
1582 Posts

Posted - 03/20/2015 :  2:46:49 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

cdrozdowski111

USA
247 Posts

Posted - 03/21/2015 :  08:36:06 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
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