Viewres and PDF Export

Years ago, we often played with the VIEWRES variable to reduce the load on graphics cards, but nowadays even a very high setting for VIEWRES viable. I just realized that the default value of 100 is affecting the PDF exports and making some unacceptable output. I also just realized that each viewport has its own VIEWRES setting. My current drawing has over 25 pages, with many views.

Is there an easy way to set all the viewports to a higher VIEWRES?

-Joe

Comments

  • No answer on this?

    I discovered this issue too, VieRes is supposed to be VIEW only, absolutely should not be controlling or have any affect on PDF renders full stop! But it does.


    Also helps to have FaceTres at 10 otherwise 3D faces look like polygons.

  • ALANH
    edited September 2

    The value for viewres appears to be in the extended data as a 1070 value, the only issue I could see is that there are multiple 1070 values.

    Thinking more about it for single mviews could be as simple as this. If you have multiple mviews need to go to each one and do a Mspace then set, more code needed.

    (defun c:vres ( / lay lays)

    (setq lays (layoutlist))
    (foreach lay lays
    (setvar 'ctab lay)
    (command "mspace")
    (command "viewres" "n" 1200) ; change number and maybe "N" to "Y" not sure
    )

    (princ)

    )

  • Very old thread. But, thanks for the example of lisp that pages through the layouts.