スクリーン サイズに対するパーセンテージで、クロスヘアのサイズを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 整数型
クロスヘア カーソルのサイズを設定する、画面全体の領域に対するパーセンテージを表す 1~100 の正の整数。
このプロパティの初期値は 5 パーセントです。
指定できる範囲は画面全体の 1~100 パーセントです。100 パーセントの場合、クロスヘア カーソルの端は表示されません。サイズが 99 パーセント以下に下がると、クロスヘア カーソルは有限のサイズを持ち、図面領域のエッジに移動するとその端が表示されます。
VBA:
Sub Example_CursorSize()
' This example returns the current setting of
' CursorSize. It then changes the value, and finally
' it resets the value back to the original setting.
Dim preferences As AcadPreferences
Dim currCursorSize As Integer
Dim newCursorSize As Integer
Set preferences = ThisDrawing.Application.preferences
' Retrieve the current CursorSize value
currCursorSize = preferences.DISPLAY.CursorSize
MsgBox "The current value for CursorSize is " & currCursorSize, vbInformation, "CursorSize Example"
' Change the value for CursorSize
newCursorSize = 10
preferences.DISPLAY.CursorSize = newCursorSize
MsgBox "The new value for CursorSize is " & newCursorSize, vbInformation, "CursorSize Example"
' Reset CursorSize to its original value
preferences.DISPLAY.CursorSize = currCursorSize
MsgBox "The CursorSize value is reset to " & currCursorSize, vbInformation, "CursorSize Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_CursorSize()
;; This example returns the current setting of
;; CursorSize. It then changes the value, and finally
;; it resets the value back to the original setting.
(setq acadObj (vlax-get-acad-object))
(setq preferences (vla-get-Preferences acadObj))
;; Retrieve the current CursorSize value
(setq currCursorSize (vla-get-CursorSize (vla-get-Display preferences)))
(alert (strcat "The current value for CursorSize is " (itoa currCursorSize)))
;; Change the value for CursorSize
(setq newCursorSize 10)
(vla-put-CursorSize (vla-get-Display preferences) newCursorSize)
(alert (strcat "The new value for CursorSize is " (itoa newCursorSize)))
;; Reset CursorSize to its original value
(vla-put-CursorSize (vla-get-Display preferences) currCursorSize)
(alert (strcat "The CursorSize value is reset to " (itoa currCursorSize)))
)