Hate to be a party pooper, but I don't think Alan's work correctly. I dl'ed Steve's drawing. Turned off one of the viewports in tab 2, switched to tab 1, saved the drawing, exited, and reopened it. Ran Alan's code, and it still says that there are three vp's in tab 2 when there should only be two.