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
 dotool 3: get dataset of a point

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
G.Bartsch Posted - 09/18/2006 : 04:27:24 AM
hello,
i want to use dotool 3 to get the dataset of a point selected. i thought i could adress this by %c but this doesnt work.
hope you know something about that.
thanks a lot.
5   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 09/18/2006 : 12:54:18 PM
Not sure what you are doing wrong but when I double-click it prints the name of the dataset containing the data point. Of course you need to do something different if you want to make use of that name when you close the tool...

def pointproc {%A=%C; %A=};
dotool 3; // open data reader
// select a few data points then run following scripts
dotool 0; // quit data reader
%C=; // return active dataset (usually 1st column)
%A=; // return the last selected dataset (not necessarily active)

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 09/18/2006 12:58:08 PM

Edited by - Mike Buess on 09/18/2006 1:41:20 PM
G.Bartsch Posted - 09/18/2006 : 12:03:22 PM
I tried that, but when I use the code as you recommend pointproc returns always the first y column. What am I doing wrong? Any ideas?
Mike Buess Posted - 09/18/2006 : 08:28:00 AM
Use the pointproc macro...

def pointproc {%C=};
dotool 3;

Mike Buess
Origin WebRing Member
G.Bartsch Posted - 09/18/2006 : 06:21:45 AM
yes, thats weird. but unfortunately it is the truth. data display shows me the dataset correctly but %c is always the first y dataset in the worksheet and not the one the point corresponds to. with dotool 4 %c is correct but i want to use dotool 3.
Deanna Posted - 09/18/2006 : 05:03:43 AM
That's weird. Please make sure that you have selected a point on the graph after you run "dotool 3". If a point is selected, the Data Display tool should read the dataset name, as well as the x and y values. In this case, %c should work, which means using "%c=" in the script window will display the dataset name.

Deanna
OriginLab GZ Office

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