How to make current a layout?

Discussion in 'AutoCAD' started by Stefano, Mar 21, 2005.

  1. Stefano

    Stefano Guest

    Sorry, i am a beginner.....
    I have a draw with 3-4 layouts and i want to save it with first layout
    active: how can i make it?

    thank!!!!!
     
    Stefano, Mar 21, 2005
    #1
  2. Stefano

    Joe Sutphin Guest

    ThisDrawing.ActiveLayout = ThisDrawing.Layouts("Layout2")

    Then save the drawing.

    Joe
     
    Joe Sutphin, Mar 21, 2005
    #2
  3. This will account for the layouts having been reordered

    Dim curLayout As AcadLayout
    For Each curLayout In ThisDrawing.Layouts
    If curLayout.TabOrder = 1 Then
    ThisDrawing.ActiveLayout = curLayout
    Exit For
    End If
    Next 'curLayout
     
    James Belshan, Mar 21, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.