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
 Forum for Origin C
 page and layer objects fron datapolt
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rlewis

Canada
253 Posts

Posted - 08/03/2005 :  2:51:27 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Origin-Pro 7.5-SR5):
Operating System:Win-XP Pro

How does one access the layer and page objects associated with an origin Dataplot object ??

cpyang

USA
1406 Posts

Posted - 08/03/2005 :  6:13:51 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

void some_func(DataPlot& dp)
{
GraphLayer gl;
dp.GetParent(gl);
if(gl)
{
GraphPage gp = gl.GetPage();
if(gp)
printf("DataPlot %s is in layer %d of page %s\n", dp.GetName(), gl.GetIndex()+1, gp.GetName());
}
}

void ddd()
{
GraphLayer gl = Project.ActiveLayer();

DataPlot dp = gl.DataPlots();

some_func(dp);
}







CP


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