Jump to content

Recommended Posts

Posted

 

 

I recently found a drawing where some objects were visible in Model Space but did not show up in the PDF.

 

The issue happened because the Plot setting was turned off for that layer.

 

Turning the Plot option on in Layer Properties fixed the issue right away.

 

It is easy to miss this detail because the objects stay visible on the screen even though they will not appear on paper or, in a PDF.

 

Have you experienced a plotting problem? What setting did you change to fix it?

Posted

That is a feature. Usually I use that to show Design notes that I don't want to plot. Usually I would just use Defpoints or magenta color. You could make a lisp that checks all layers.

This checks if a layer is not plotted, not frozen and turned on. will display a warning listing them, asking if you want to continue plotting or not. 

 

(defun c:PlotCheck ( / doc layers lay noplot msg ans)
  (vl-load-com)
  (setq doc (vla-get-ActiveDocument (vlax-get-acad-object))
        layers (vla-get-Layers doc)
        noplot '()
  )
  (vlax-for lay layers
    (if (and
      (= :vlax-false (vla-get-Plottable lay))
      (= :vlax-false (vla-get-Freeze lay))
      (= :vlax-true  (vla-get-LayerOn lay))
    )
    (setq noplot (cons (vla-get-Name lay) noplot))
  )
  (if noplot
    (progn
      (setq msg
        (strcat
          "The following layers are set NOT to plot:\n\n"
          (apply 'strcat
            (mapcar '(lambda (x) (strcat x "\n"))
                    (reverse noplot)))
          "\nContinue with plotting?"
        )
      )
      (setq ans (alert msg))
      (initget "Yes No")
      (setq ans (getkword "\nContinue plotting? [Yes/No] <No>: "))
      (if (= ans "Yes")
        (command "_.PLOT")
        (princ "\nPlot cancelled.")
      )
    )
    (command "_.PLOT")
  )
  (princ)
)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...