Viewports toolbar update.

Discussion in 'AutoCAD' started by Matthew, Jul 27, 2004.

  1. Matthew

    Matthew Guest

    I have been programming a reactor to update the dimscale to whatever the
    viewport is scaled to. when switching from viewport to viewport. How do I
    get the viewport toolbar to update itself to show something off of the list
    rather than just the decimal that is the scale factor? It seems to update
    when going into a viewport but when returning to paper space the toolbar
    dose not update. ??

    This is what I have been doing.
    dsc being equivelent to the dimscale
    (VLA-SETVARIABLE acaddoc "PSVPSCALE" (/ 1.0 dsc))
    (vlax-put-property
    (vlax-get-property acaddoc 'ActivePViewport) 'customScale (/ 1.0 dsc))

    Thanks
    Matthew
     
    Matthew, Jul 27, 2004
    #1
  2. Matthew

    dblaha Guest

    I may be missing the point of your routine, but wouldn't setting the DIMSCALE sysvar to 0 take care of what you're trying to accomplish with your reactor?
     
    dblaha, Jul 27, 2004
    #2
  3. Matthew

    Matthew Guest

    If the view port was zoomed to a scale the toolbar will update. however when
    I change the dim scale (thus the reactor will update the zoom scale of the
    view port) the view port tool bar is not updated. or when I switch back to
    the paper space view port (Cvport = 1) the toolbar does not update itself.
    the guys at the office here like to have a style for each dimscale.

    Is there something I have to set the StandardScale, or CustomScale property
    to do this?

    Matthew

    DIMSCALE sysvar to 0 take care of what you're trying to accomplish with your
    reactor?
     
    Matthew, Jul 27, 2004
    #3
  4. Matthew

    jclaidler Guest

    I agree... set DIMSCALE to zero, and be done with it.
     
    jclaidler, Jul 27, 2004
    #4
  5. Matthew

    jclaidler Guest

    Create one (1) dimstyle, set dimscale to zero (0).
    There should be 'little' need, if any at all, of having more than one (1) dimstyle.
     
    jclaidler, Jul 27, 2004
    #5
  6. Matthew

    Matthew Guest

    I would agree with that too but the guys here don't want to have to do a dim
    update on their block library inserted details.

    I would still like it to update properly, though.

    Thanks for the input.
    Matthew
     
    Matthew, Jul 27, 2004
    #6
  7. Matthew

    jclaidler Guest

    How do you insert blocks ??

    I have a lisp program here, it will read the viewport scale then scale the blocks accordingly upon insert.
     
    jclaidler, Jul 28, 2004
    #7
  8. Matthew

    Matthew Guest

    What I'm trying to say is that most of out master details library has dims
    in them. if you have your dims scale set to 96 for working in the plan.
    then you insert a detail that has the dim scale set to 8 the inserted dims
    will take the dim style props of the file it was inserted into. if the dim
    style name is the same. Thus the dims will have gigantic text & ticks. if
    you have a dim style with a name for each scale this will not happen.

    Matthew

    blocks accordingly upon insert.

    It would not be about inserting a typical block into a plan for use we have
    whole details set up for re-use.
     
    Matthew, Jul 28, 2004
    #8
  9. Matthew

    jclaidler Guest

    Sorry. But this sounds like you're creating more work than is needed.


    Message was edited by: jclaidler
     
    jclaidler, Jul 28, 2004
    #9
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.