図面のモデル空間で、線の太さを表示するかどうかを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: ブール型
このプロパティの初期値は True です。
1 ピクセルを超えるピクセルで表される線の太さを使用していると、AutoCAD の再作図にかかる時間が増えます。太い線を使用して作業していて AutoCAD の処理速度が低下する場合には、このプロパティを False に設定します。
VBA:
Sub Example_LineweightDisplay()
' This example reads and modifies the preference value that controls
' whether symbol names may include extended character sets, or more
' than 31 characters.
'
' When finished, this example resets the preference value back to
' its original value.
Dim ACADPref As AcadDatabasePreferences
Dim originalValue As Variant, newValue As Variant
' Get the user preferences object
Set ACADPref = ThisDrawing.preferences
' Read and display the original value
originalValue = ACADPref.LineWeightDisplay
MsgBox "The LineweightDisplay preference is set to: " & originalValue
' Modify the LineweightDisplay preference by toggling the value
ACADPref.LineWeightDisplay = Not (ACADPref.LineWeightDisplay)
newValue = ACADPref.LineWeightDisplay
MsgBox "The LineweightDisplay preference has been set to: " & newValue
' Reset the preference back to its original value
'
' * Note: Comment out this last section to leave the change to
' this preference in effect
ACADPref.LineWeightDisplay = originalValue
MsgBox "The LineweightDisplay preference was reset back to: " & originalValue
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_LineweightDisplay()
;; This example reads and modifies the preference value that controls
;; the display of lineweights in the drawing window.
;;
;; When finished, this example resets the preference value back to
;; its original value.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq preferences (vla-get-Preferences doc))
;; Read and display the original value
(setq originalValue (vla-get-LineWeightDisplay preferences))
(alert (strcat "The LineweightDisplay preference is set to: " (if (= originalValue :vlax-true) "True" "False")))
;; Modify the LineweightDisplay preference by toggling the value
(vla-put-LineWeightDisplay preferences (if (= originalValue :vlax-true) :vlax-false :vlax-true))
(setq newValue (vla-get-LineWeightDisplay preferences))
(alert (strcat "The LineweightDisplay preference has been set to: " (if (= newValue :vlax-true) "True" "False")))
;; Reset the preference back to its original value
;;
;; * Note: Comment out this last section to leave the change to
;; this preference in effect
(vla-put-LineWeightDisplay preferences originalValue)
(alert (strcat "The LineweightDisplay preference was reset back to: " (if (= originalValue :vlax-true) "True" "False")))
)