I have setup an event procedure which is activated when the user enters a floating modelspace window (command MSPACE). What I want is for the program to return the properties of the viewport the user has entered (ie. CustomScale, Height, Width etc) The following code does not appear to work, as the ActivePViewport returned is that of the actual Paperspace layout. Is there a way to set the active pviewport to the viewport the user enters on the MSPACE command? Public Sub Floating_Modelspace_DwgScale(X) ' declare variables Dim oPViewport As AcadPViewport Dim Scl, Width, Height As Single Set oPViewport = ThisDrawing.ActivePViewport oPViewport.Display (True) Scl = oPViewport.CustomScale Width = oPViewport.Width Height = oPViewport.Height End Sub Thanks in advance AM