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

millot.marius

USA
38 Posts

Posted - 11/01/2012 :  11:59:09 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):8.5.1
Operating System:win7 64

Hi I'd like to know how to easily transfer the content of a layer from a graph to another

Is there a hidden menu option to do this ?

Or using Labtalk ?

greg

USA
1378 Posts

Posted - 11/01/2012 :  1:12:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can copy and paste a Layer and all its content from one Graph to another (adding a new Layer) by just selecting the layer and using Ctrl+C to copy and selecting the new Graph and Ctrl+V to paste.

For copying just content you can use script:

win -a Graph1; // Make your source graph active
page.active = 2; // If multiple layers, make source layer active
layer -c; // Puts count of plots in 'count' and names in '%Z'
win -a Graph2; Make your target graph active
page.active = 3; // If multiple layers, make target layer active
layer -i %Z; // Includes all datasets using existing plot styles
or
layer-i201 %Z; // Includes all datasets as Scatter plots

See
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:Worksheet_%28command%29#-p.3B_Plot_the_current_worksheet_selection_in_the_nth_graph_type_into_the_template
for PlotIDs and note that they must be appropriate to the data being copied and the layer targeted.
Go to Top of Page

millot.marius

USA
38 Posts

Posted - 11/01/2012 :  1:27:43 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you Greg!
Go to Top of Page

millot.marius

USA
38 Posts

Posted - 06/19/2013 :  12:08:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Actually i tried today in 8.5.1 without success...
Could you be more specific on how to copy and paste ?
Should it be from layer management window ?
Go to Top of Page

greg

USA
1378 Posts

Posted - 06/19/2013 :  11:53:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The key is to make sure you have selected the source layer when you do the copy. You will know you have selected it when you see the rectangle and 8 selection handles (in 4 corners and 4 edges) around your graph.
In case you have trouble getting the selection (e.g. your data is very dense or you have a contour graph) try holding down the Alt key and then clicking on the graph.

Once you have the selection, press Ctrl+C.
In the new graph window, click where you want the upper left of the copied layer to appear and press Ctrl+V.

Note that OpenGL supports only one layer.
Go to Top of Page

millot.marius

USA
38 Posts

Posted - 06/19/2013 :  1:13:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
ok, but it seems that the layer does not appear in the layer management menu afterwards (in the new graph)

also how to do this with multiple layers ?
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