I have a code snippet that creates a pline and a dimension in model space, then switches to paperspace. It then uses the CHSPACE command to bring the dimension through the paperspace viewport into paperspace. It works fine in AutoCAD 2004 and 2010, but does not work in 2015. In 2015 it seems to hit an endless loop prompting the user to active the viewport. Help?