円、円弧、楕円の滑らかさをコントロールします。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 整数型
1~20,000 の正整数
このプロパティの初期値は 100 です。
値が大きいほど滑らかなオブジェクトを作成しますが、AutoCAD は再作図に時間を要します。このプロパティの値を作図中は小さくして、レンダリング時に大きくすると、パフォーマンスが向上します。有効範囲は 1~20,000 です。
VBA:
Sub Example_ArcSmoothness()
' This example returns the current setting of
' ArcSmoothness. It then changes the value, and finally
' it resets the value back to the original setting.
Dim currArcSmoothness As Integer
Dim newArcSmoothness As Integer
' Retrieve the current ArcSmoothness value
currArcSmoothness = ThisDrawing.ActiveViewport.ArcSmoothness
MsgBox "The current value for ArcSmoothness is " & currArcSmoothness, vbInformation, "ArcSmoothness Example"
' Change the value for ArcSmoothness
newArcSmoothness = 2001
ThisDrawing.ActiveViewport.ArcSmoothness = newArcSmoothness
MsgBox "The new value for ArcSmoothness is " & newArcSmoothness, vbInformation, "ArcSmoothness Example"
' Reset ArcSmoothness to its original value
ThisDrawing.ActiveViewport.ArcSmoothness = currArcSmoothness
MsgBox "The ArcSmoothness value is reset to " & currArcSmoothness, vbInformation, "ArcSmoothness Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_ArcSmoothness()
;; This example returns the current setting of
;; ArcSmoothness. 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))
;; Retrieve the current ArcSmoothness value
(setq currArcSmoothness (vla-get-ArcSmoothness (vla-get-ActiveViewport doc)))
(alert (strcat "The current value for ArcSmoothness is " (itoa currArcSmoothness)))
;; Change the value for ArcSmoothness
(setq newArcSmoothness 2001)
(vla-put-ArcSmoothness (vla-get-ActiveViewport doc) newArcSmoothness)
(alert (strcat "The new value for ArcSmoothness is " (itoa newArcSmoothness)))
;; Reset ArcSmoothness to its original value
(vla-put-ArcSmoothness (vla-get-ActiveViewport doc) currArcSmoothness)
(alert (strcat "The ArcSmoothness value is reset to " (itoa currArcSmoothness)))
)