Create NAMED VIEW in Paperspace??

Discussion in 'AutoCAD' started by Matt W, Feb 17, 2004.

  1. Matt W

    Matt W Guest

    Is it possible to create a NAMED VIEW in paperspace??
    It looks like the ability to define whether it's MS or PS was "left out".
    Is there a work-around available (without using SendCommand)???
     
    Matt W, Feb 17, 2004
    #1
  2. Here you go...just activate a Layout and use this code:

    Sub testit()
    Dim viewObj As IAcadView2
    Dim dCPt(1) As Double
    dCPt(0) = 6
    dCPt(1) = 6
    Set viewObj = ThisDrawing.Views.Add("TEST")
    With viewObj
    .LayoutId = ThisDrawing.ActiveLayout.ObjectID
    .Center = dCPt
    .Height = 4.5
    .Width = 4.5
    End With
    End Sub

    Using the IAcadView2 object, you can set the LayoutID to assign the view
    to a layout other than model space :)
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Feb 18, 2004
    #2
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.