Viewres (Arc and circle smoothness)

Discussion in 'AutoCAD' started by Lambertus Oosterveen, Sep 14, 2004.

  1. How can I set the VIEWRES automatically direct after open (with the
    acad.dvb) in drawings that are saved in a layout?
    For drawings saved in modelspace this works fine.

    For drawings saved in Paperspace I got a run-time error '-2145320879
    (802100510':
    No active viewport in paperspace

    This is the VB statement I use:

    If Thisdrawing.ActiveViewport.ArcSmoothness <> 2000 Then
    Thisdrawing.ActiveViewport.ArcSmoothness = 2000
    End If

    Regards,
    Lambertus
     
    Lambertus Oosterveen, Sep 14, 2004
    #1
  2. Lambertus Oosterveen

    Joe Sutphin Guest

    When you create the PViewport are you setting it as the active viewport?

    Joe
     
    Joe Sutphin, Sep 14, 2004
    #2
  3. No
    But is that necessary to set this setting?
    I get this run-time error message in each drawing that is saved in a Layout.

    Lambertus
     
    Lambertus Oosterveen, Sep 14, 2004
    #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.