| T O P I C R E V I E W |
| OndrejMM |
Posted - 10/20/2008 : 08:33:59 AM Hi Guys,
Can you please help me with the following problem,... I’m importing “unknown” number of ASCII files with names book1, book2, book3 .... bookX (the number of books varies and I cannot predict how many of them I imported),... they all have only two columns A(X), B(Y),... and I have in the project one Graph and what I need to do is to plot all those "books" (book1, book2,...) two this graph window,... I was trying the following but doesn’t work:
doc -e W // loop over all worksheets { if( "%[%H,5]"=="book" ) // if worksheet name starts with Data { Graph!page.active=1; Layer.include(%H_B, 200); }; };
Thanks Ondrej
|
| 2 L A T E S T R E P L I E S (Newest First) |
| OndrejMM |
Posted - 10/20/2008 : 6:44:05 PM Hi Laurie, cool! it works,... thanks, Ondrej |
| Laurie |
Posted - 10/20/2008 : 09:47:32 AM range layer1 = [Graph1]1!; // use range notation to define a layer range // loop over all worksheets doc -e W { if( "%[%H,5]"=="book" ) // if worksheet name starts with Book { layer1.include(%H_B, 200); } }
Try the above code. Using range notation, it doesn't matter if the graph is active or not.
OriginLab Technical Support |
|
|