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
 Layer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

lucio_marianna

Germany
Posts

Posted - 01/19/2006 :  09:51:42 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.5
Operating System: XP

Hi,

I would like to know how to retrieve the dataset from the layer, and copy it in a new one.

Thanks in advance

Mike Buess

USA
3037 Posts

Posted - 01/19/2006 :  10:39:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use %(n, @D) to get the name of the nth dataset in the active layer...

n = 2;
%A = %(n, @D); // get name of 2nd dataset in layer
%A=;
Data1_C

Once you know the dataset's name you can add it to another layer in the same graph window like this...

page.active = layerNumber; // activate layer
lay -i %A;

The string variable %C always holds the name of the active dataset checked at the bottom of the Data menu.

Mike Buess
Origin WebRing Member
Go to Top of Page

lucio_marianna

Germany
Posts

Posted - 01/20/2006 :  04:34:25 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Mike, exactly what I was looking for!



Marianna
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