Setting scales depending on vport scale

Discussion in 'AutoCAD' started by Chris Boyd, May 20, 2004.

  1. Chris Boyd

    Chris Boyd Guest

    Does anyone know how to set the dimscale variable according to the scale of an active viewport. i.e. making a viewport active which has a scale of 1:50 sets dimscale to 50. If I then select a different viewport with a different scale factor it will again change the dimscale variable?

    (Or does anyone have any code to do it...grovel..grovel..)
     
    Chris Boyd, May 20, 2004
    #1
  2. Chris Boyd

    Yves Guest

    I rarely work with Dimensions, but here is I can get you!

    make the viewport selection here, here there is only one.
    Set objView = collViews.Add("TEST")
    objPVP.Display (True)
    doc.mSpace = True
    Dim tmpdim As AcadDimension
    tmpdim.ScaleFactor = objPVP.CustomScale




    of an active viewport. i.e. making a viewport active which has a scale of
    1:50 sets dimscale to 50. If I then select a different viewport with a
    different scale factor it will again change the dimscale variable?
     
    Yves, May 20, 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.