どのオブジェクトも選択されておらず、どのコマンドも実行されていない既定モード時の、作図領域での右クリックの機能を決定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: AcDrawingAreaSCMDefault 列挙型
このプロパティの初期値は acSCM です。
このプロパティは、ShortcutMenuDisplay プロパティが True に設定されている場合にのみ設定できます。
VBA:
Sub Example_SCMDefaultMode() ' This example reads and modifies the SCMDefaultMode ' preference value. ' When finished, this example resets the preference value back to ' its original value. Dim ACADPref As AcadPreferencesUser Dim originalValue As Integer, newValue As Integer ' Get the user preferences object Set ACADPref = ThisDrawing.Application.Preferences.User ' Read and display the original value originalValue = ACADPref.SCMDefaultMode MsgBox "The SCMDefaultMode preference is set to: " & originalValue ' Modify the SCMDefaultMode preference by toggling the value ACADPref.SCMDefaultMode = acRepeatLastCommand MsgBox "The SCMDefaultMode preference has been set to: " & ACADPref.SCMDefaultMode ' Reset the preference back to its original value ACADPref.SCMDefaultMode = originalValue MsgBox "The SCMDefaultMode preference was reset back to: " & originalValue End Sub
Visual LISP:
(vl-load-com) (defun c:Example_SCMDefaultMode() ;; This example reads and modifies the SCMDefaultMode ;; preference value. ;; When finished, this example resets the preference value back to ;; its original value. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Read and display the original value (setq originalValue (vla-get-SCMDefaultMode (vla-get-User preferences))) (alert (strcat "The SCMDefaultMode preference is set to: " (itoa originalValue))) ;; Modify the SCMDefaultMode preference by toggling the value (vla-put-SCMDefaultMode (vla-get-User preferences) acRepeatLastCommand) (alert (strcat "The SCMDefaultMode preference has been set to: " (itoa (vla-get-SCMDefaultMode (vla-get-User preferences))))) ;; Reset the preference back to its original value (vla-put-SCMDefaultMode (vla-get-User preferences) originalValue) (alert (strcat "The SCMDefaultMode preference was reset back to: " (itoa originalValue))) )