シェーディング、レンダリング、および隠線処理されたオブジェクトの滑らかさを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 倍精度浮動小数点数型
有効範囲は 0.01~10.0 です。
このプロパティの初期値は 0.5 です。パフォーマンスを改善するには、作図時にこの値を 1 以下に設定します。
VBA:
Sub Example_RenderSmoothness()
' This example returns the current setting of
' RenderSmoothness. It then changes the value, and finally
' it resets the value back to the original setting.
Dim currRenderSmoothness As Double
Dim newRenderSmoothness As Double
' Retrieve the current RenderSmoothness value
currRenderSmoothness = ThisDrawing.preferences.RenderSmoothness
MsgBox "The current value for RenderSmoothness is " & currRenderSmoothness, vbInformation, "RenderSmoothness Example"
' Change the value for RenderSmoothness
newRenderSmoothness = 2.5
ThisDrawing.preferences.RenderSmoothness = newRenderSmoothness
MsgBox "The new value for RenderSmoothness is " & newRenderSmoothness, vbInformation, "RenderSmoothness Example"
' Reset RenderSmoothness to its original value
ThisDrawing.preferences.RenderSmoothness = currRenderSmoothness
MsgBox "The RenderSmoothness value is reset to " & currRenderSmoothness, vbInformation, "RenderSmoothness Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_RenderSmoothness()
;; This example returns the current setting of
;; RenderSmoothness. It then changes the value, and finally
;; it resets the value back to the original setting.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq preferences (vla-get-Preferences doc))
;; Retrieve the current RenderSmoothness value
(setq currRenderSmoothness (vla-get-RenderSmoothness preferences))
(alert (strcat "The current value for RenderSmoothness is " (rtos currRenderSmoothness 2)))
;; Change the value for RenderSmoothness
(setq newRenderSmoothness 2.5)
(vla-put-RenderSmoothness preferences newRenderSmoothness)
(alert (strcat "The new value for RenderSmoothness is " (rtos newRenderSmoothness 2)))
;; Reset RenderSmoothness to its original value
(vla-put-RenderSmoothness preferences currRenderSmoothness)
(alert (strcat "The RenderSmoothness value is reset to " (rtos currRenderSmoothness 2)))
)