Specifies if the viewport borders are to be plotted.
Supported platforms: Windows only
VBA:
object.PlotViewportBorders
Type: Layout, PlotConfiguration
The objects this property applies to.
Read-only: No
Type: Boolean
No additional remarks.
VBA:
Sub Example_PlotViewportBorders() ' This example reads and modifies the PlotViewportBorders ' Layout value. ' When finished, this example resets the value back to ' its original value. Dim ACADLayout As ACADLayout Dim originalValue As Boolean ' Get the layout object Set ACADLayout = ThisDrawing.ActiveLayout ' Read and display the original value originalValue = ACADLayout.PlotViewportBorders MsgBox "The PlotViewportBorders value is set to: " & originalValue ' Modify the PlotViewportBorders preference by toggling the value ACADLayout.PlotViewportBorders = Not ACADLayout.PlotViewportBorders MsgBox "The PlotViewportBorders preference has been set to: " & ACADLayout.PlotViewportBorders ' Reset the preference back to its original value ACADLayout.PlotViewportBorders = originalValue MsgBox "The PlotViewportBorders preference was reset back to: " & originalValue End Sub
Visual LISP:
(vl-load-com) (defun c:Example_PlotViewportBorders() ;; This example reads and modifies the PlotViewportBorders ;; Layout value. ;; When finished, this example resets the value back to ;; its original value. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Get the layout object (setq ACADLayout (vla-get-ActiveLayout doc)) ;; Read and display the original value (setq originalValue (vla-get-PlotViewportBorders ACADLayout)) (alert (strcat "The PlotViewportBorders value is set to: " (if (= originalValue :vlax-true) "True" "False"))) ;; Modify the PlotViewportBorders preference by toggling the value (vla-put-PlotViewportBorders ACADLayout (if (= originalValue :vlax-true) :vlax-false :vlax-true)) (setq newValue (vla-get-PlotViewportBorders ACADLayout)) (alert (strcat "The PlotViewportBorders preference has been set to: " (if (= newValue :vlax-true) "True" "False"))) ;; Reset the preference back to its original value (vla-put-PlotViewportBorders ACADLayout originalValue) (alert (strcat "The PlotViewportBorders preference was reset back to: " (if (= originalValue :vlax-true) "True" "False"))) )