Hi. I think we can use Labtalk.
I guess layAktuell is a graph layer, right? If so, we can change the code like this:
if (iLayer>= 5)
{
layAktuell.LT_execute("LAYER.LINK = 4"); //link the layer to Layer 4
layAktuell.LT_execute("LAYER.Y.LINK = 1"); //One-to-one link
layAktuell.LT_execute("layer.Y.from = layer1.y.from");
};
Hope this will help :)
Deanna
OriginLab Technical Services