Yes, you explain correctly why Translate X works for grouped data but Translate Y does not. Origin's analysis features act on the active dataset, which is why only the active dataset gets translated when you select Translate Y. However because Translate X modifies the X dataset, any associated Y dataset will become translated.
I have written a script that modifies the sections of code in the Granaly.ogs file that get executed when you select this menu item.
1. Open GRANALY.OGS in Notepad. (This file can be found in your Origin directory.)
2. Search for '[TransY]'.
3. Modify the script so that it looks like the following:
#Pick one pt as ref and move curve to a new pt vertically
// JMP for v5.0 05/29/97 USE_EXCHAGEXY_PROPERTY
%Z="";
count=0;
doc -e DY {
%Z=%Z %C;
count++;
}
if (layer.ExchangeXY)
run.section(,TransXAction);
else
run.section(,TransYAction);
return 0;
4. Modify the next section to look as follows:
[TransYAction]
def EndToolbox
{
y_last=y;;
def EndToolbox {
y-y_last;
loop(ii,1,count){
undo %[%Z,#ii];
%[%Z,#ii]+y;
}
};
GetPts -Y 1 (Move cursor to new location, hit ENTER)
};
Pick1pt;
This will now act on all datasets in the layer.
-----------
Laurie Shea
Microcal Technical Support
[This message has been edited by Laurie (edited 03-02-2000).]