AuditInfo 方法 (ActiveX) 
评估图形的完整性。 支持的平台:仅限 Windows 签名VBA: object.AuditInfo FixError 
 返回值 (RetVal)无返回值。 言论对于检测到的每个错误,AutoCAD 都会提供错误说明并建议纠正措施。 如果指定 FixError = ,AutoCAD 将尝试修复遇到的任何错误。True 例子VBA: Sub Example_AuditInfo()
    ' This example has AutoCAD audit
    ' and fix any problems found
    
    ThisDrawing.AuditInfo True
    
    MsgBox "Auditing has been requested." & vbCrLf & _
           "The fix error flag is set to True", , "AuditInfo Example"
End Sub
可视化 LISP: (vl-load-com)
(defun c:Example_AuditInfo()
    ;; This example has AutoCAD audit
    ;; and fix any problems found
    (setq acadObj (vlax-get-acad-object))
    (setq doc (vla-get-ActiveDocument acadObj))
    (vla-AuditInfo doc :vlax-true)
    
    (alert (strcat "Auditing has been requested."
                   "\nThe fix error flag is set to True."))
)
 | 
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
GMT+8, 2025-11-4 14:04
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.