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
 Origin Forum
 Get X value of "addline" (solved)

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
Cracker Posted - 10/06/2022 : 1:34:27 PM
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
3   L A T E S T    R E P L I E S    (Newest First)
snowli Posted - 10/06/2022 : 4:50:34 PM
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
Cracker Posted - 10/06/2022 : 2:59:18 PM
Thank you for the solution and for the link!
snowli Posted - 10/06/2022 : 2:15:38 PM
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

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