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
 Origin Forum
 Get X value of "addline" (solved)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Cracker

6 Posts

Posted - 10/06/2022 :  1:34:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release: OriginPro 2021 (64-bit), 9.8.0.200
Operating System: Windows 10 Home, 64-Bit-Betriebssystem

Dear forum members,
to analyze some data I need two lines within a coordination system, which I can be moved manually (drag and drop)from left to right. Once put in position I need the current X-position of both lines.

My current solution is using the "addline" function, move them and insert the x-value manually.

Because those lines have "names" I assume, it should be possible to reference them and automatically insert the x-value into a data sheet!?

In short: How can I reference the x value of an inserted line?



Thanks in advance,
Cracker

Edited by - Cracker on 10/06/2022 2:58:00 PM

snowli

USA
1429 Posts

Posted - 10/06/2022 :  2:15:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The following will put x value of VLine of 1st layer of graph1 to cell

var://[graph1]1!VLINE.X

https://www.originlab.com/doc/en/Origin-Help/InsLink-to-WksCell#Links_to_LabTalk_Variables
Thanks, Snow
Go to Top of Page

Cracker

6 Posts

Posted - 10/06/2022 :  2:59:18 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for the solution and for the link!
Go to Top of Page

snowli

USA
1429 Posts

Posted - 10/06/2022 :  4:50:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Great.

To set decimal places for such object property.
right click the cell or range and choose Format cells. Set decimal place, date, etc.

Or my colleague said u can enter cell formula in the cell
=$([graph1]1!VLINE.X, .2)
which accepts decimal places settings.

Thanks, Snow
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