$did(11,$did(2).sel) is fine. If line 2 was selected in ID 2, then it should find line 2 in ID 11.
The problem is that he's using /did with no switches, I'm guessing.
I'm not 100% sure I understood the question but I'll have a play around with the dialog.