Re: error passing to PaperSpace

#2
Please use "IntelliCAD.ActiveDocument.ActiveLayout" to switch to the defined layout in paper space.
Refer this:

Code: Select all

Private Sub ChangeLayout()
    ' change to layout name:  layout2 
    For Each Layout In IntelliCAD.ActiveDocument.Layouts
        If UCase(Layout.Name) = "LAYOUT2" Then
            IntelliCAD.ActiveDocument.ActiveLayout = Layout
            Exit For
        End If
    Next
End Sub