FullCRCValidation プロパティ(ActiveX)

オブジェクトが図面に読み込まれるたびに巡回冗長検査(CRC)を実行するかどうかを指定します。

サポートされているプラットフォーム: Windows のみ

構文と要素

VBA:

object.FullCRCValidation
object

タイプ: PreferencesOpenSave

このプロパティが適用されるオブジェクト。

プロパティの値

読み込み専用: いいえ

タイプ: ブール型

注意

このプロパティの初期値は False です。

図面がよく壊れるようになり、ハードウェアや AutoCAD に障害の疑いがあるときは、FullCRCValidationTrue に設定してください。

VBA:

Sub Example_FullCRCValidation()
    ' This example returns the current setting of
    ' FullCRCValidation. It then changes the value, and finally
    ' it resets the value back to the original setting.
    
    Dim preferences As AcadPreferences
    Dim currFullCRCValidation As Boolean
    
    Set preferences = ThisDrawing.Application.preferences
    
    ' Retrieve the current FullCRCValidation value
    currFullCRCValidation = preferences.OpenSave.FullCRCValidation
    MsgBox "The current value for FullCRCValidation is " & preferences.OpenSave.FullCRCValidation, vbInformation, "FullCRCValidation Example"
    
    ' Change the value for FullCRCValidation
    preferences.OpenSave.FullCRCValidation = Not (currFullCRCValidation)
    MsgBox "The new value for FullCRCValidation is " & preferences.OpenSave.FullCRCValidation, vbInformation, "FullCRCValidation Example"
    
    ' Reset FullCRCValidation to its original value
    preferences.OpenSave.FullCRCValidation = currFullCRCValidation
    MsgBox "The FullCRCValidation value is reset to " & preferences.OpenSave.FullCRCValidation, vbInformation, "FullCRCValidation Example"
End Sub

Visual LISP:

(vl-load-com)
(defun c:Example_FullCRCValidation()
    ;; This example returns the current setting of
    ;; FullCRCValidation. 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 FullCRCValidation value
    (setq currFullCRCValidation (vla-get-FullCRCValidation (vla-get-OpenSave preferences)))
    (alert (strcat "The current value for FullCRCValidation is " (if (= currFullCRCValidation :vlax-true) "True" "False")))
    
    ;; Change the value for FullCRCValidation
    (setq newFullCRCValidation (if (= currFullCRCValidation :vlax-true) :vlax-false :vlax-true))
    (vla-put-FullCRCValidation (vla-get-OpenSave preferences) newFullCRCValidation)
    (alert (strcat "The new value for FullCRCValidation is " (if (= newFullCRCValidation :vlax-true) "True" "False")))
    
    ;; Reset FullCRCValidation to its original value
    (vla-put-FullCRCValidation (vla-get-OpenSave preferences) currFullCRCValidation)
    (alert (strcat "The FullCRCValidation value is reset to " (if (= currFullCRCValidation :vlax-true) "True" "False")))
)