PlotWithLineweights プロパティ(ActiveX)

印刷ファイルで割り当てられている線の太さを使用してオブジェクトを印刷するか、図面ファイル内の線の太さを使用して印刷するかを指定します。

サポートされているプラットフォーム: Windows のみ

構文と要素

VBA:

object.PlotWithLineweights
object

タイプ: LayoutPlotConfiguration

このプロパティが適用されるオブジェクト。

プロパティの値

読み込み専用: いいえ

タイプ: ブール型

注意

追加の注意はありません。

VBA:

Sub Example_PlotWithLineweights()
    ' This example reads and modifies the PlotWithLineweights
    ' 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.PlotWithLineweights
    MsgBox "The PlotWithLineweights value is set to: " & originalValue

    ' Modify the PlotWithLineweights preference by toggling the value
    ACADLayout.PlotWithLineweights = Not ACADLayout.PlotWithLineweights
    MsgBox "The PlotWithLineweights preference has been set to: " & ACADLayout.PlotWithLineweights

    ' Reset the preference back to its original value
    ACADLayout.PlotWithLineweights = originalValue
    MsgBox "The PlotWithLineweights preference was reset back to: " & originalValue
End Sub

Visual LISP:

(vl-load-com)
(defun c:Example_PlotWithLineweights()
    ;; This example reads and modifies the PlotWithLineweights
    ;; 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-PlotWithLineweights ACADLayout))
    (alert (strcat "The PlotWithLineweights value is set to: " (if (= originalValue :vlax-true) "True" "False")))

    ;; Modify the PlotWithLineweights preference by toggling the value
    (vla-put-PlotWithLineweights ACADLayout (if (= originalValue :vlax-true) :vlax-false :vlax-true))
    (setq newValue (vla-get-PlotWithLineweights ACADLayout))
    (alert (strcat "The PlotWithLineweights preference has been set to: " (if (= newValue :vlax-true) "True" "False")))

    ;; Reset the preference back to its original value
    (vla-put-PlotWithLineweights ACADLayout originalValue)
    (alert (strcat "The PlotWithLineweights preference was reset back to: " (if (= originalValue :vlax-true) "True" "False")))
)