程序代码: |
<CommandMethod("AuditTest")> _
Private Function AuditTest() As publicvoid
' This method can have any name
Dim doc As Document = Application.DocumentManager.MdiActiveDocument
Dim ed As Editor = doc.Editor
Try
'to fix the error or not
Dim bFixErrors As Boolean = True
'to show the message in commandline or not
Dim becho As Boolean = True
'call audit API
doc.Database.Audit(bFixErrors, becho)
Catch
ed.WriteMessage("Unable to audit the drawing" & vbLf)
End Try
End Function
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |