How to make a Layout active

Discussion in 'AutoCAD' started by Paul de Boer, Jun 22, 2004.

  1. Paul de Boer

    Paul de Boer Guest

    Hi all, can someone tell me how to make a layout the active layout many thanks Paul
     
    Paul de Boer, Jun 22, 2004
    #1
  2. Use the ActiveLayout property.

    --
    R. Robert Bell


    Hi all, can someone tell me how to make a layout the active layout many
    thanks Paul
     
    R. Robert Bell, Jun 22, 2004
    #2
  3. Paul de Boer

    Paul de Boer Guest

    I tried that, but for some reason this is not working. I tried the following;

    ThisDrawing.ActiveLayout.Name = "Layout2"

    It gives me an error like, name already exists.

    Paul
     
    Paul de Boer, Jun 22, 2004
    #3
  4. The docs show that you need a Layout object, not a string.

    Sub Test()
    ThisDrawing.ActiveLayout = ThisDrawing.Layouts.Item("Layout1")
    End Sub


    --
    R. Robert Bell


    I tried that, but for some reason this is not working. I tried the
    following;

    ThisDrawing.ActiveLayout.Name = "Layout2"

    It gives me an error like, name already exists.

    Paul
     
    R. Robert Bell, Jun 22, 2004
    #4
  5. ThisDrawing.ActiveLayout = <layoutObject>
     
    Frank Oquendo, Jun 22, 2004
    #5
  6. Paul de Boer

    Paul de Boer Guest

    Frank, many thanks works great
     
    Paul de Boer, Jun 22, 2004
    #6
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.