指定是否应在每次将对象读入图形时执行循环冗余校验 (CRC)。 支持的平台:仅窗口 属性值只读:不 类型:布尔
言论此属性的初始值为。False 如果图形已损坏,并且怀疑存在硬件问题或 AutoCAD 错误,请设置为 。FullCRCValidationTrue 例子工 务 局: 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"))) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:38
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.