According to the documentation, you need to be using ISldWorks::GetFirstDocument as the first ModelDoc2 object.
There are some examples on the linked page as well on proper use of the method.
That did the trick. Oddly this code has worked for several years. Oh well, good to know. Thanks for the help.