Currently, Ruby and Python prevent calling this function when the target layout is in editable mode. There is no reason why this shouldn't work in non-editable mode too. And it's good to have for merging big OASIS layouts.