指定要包含在数字签名中的注释。 支持的平台:仅窗口 属性值只读:不 类型:字符串 要包含在数字签名中的注释。 言论没有额外的评论。 例子工 务 局: Sub Example_Comment()
' This example attaches a digital signature and accompanying data to a file,
' and saves the file.
Dim sp As AcadSecurityParams
Set sp = GetInterfaceObject("AutoCAD.SecurityParams." & Left(AcadApplication.Version, 2))
' Attach a digital signature and timestamp it
sp.Action = AcadSecurityParamsType.ACADSECURITYPARAMS_SIGN_DATA + _
AcadSecurityParamsType.ACADSECURITYPARAMS_ADD_TIMESTAMP
' Certificate details follow
sp.Subject = "Thawte Freemail Member"
sp.Issuer = "Personal Freemail RSA 2000.8.30"
sp.SerialNumber = "073848"
sp.Comment = "This is now signed"
sp.TimeServer = "NIST(time.nist.gov)"
ThisDrawing.SaveAs "C:\MyDrawing.dwg", , sp
End Sub
Visual LISP: (vl-load-com)
(defun c:Example_Comment()
;; This example attaches a digital signature and accompanying data to a file,
;; and saves the file.
(setq acadObj (vlax-get-acad-object))
(setq sp (vlax-create-object (strcat "AutoCAD.SecurityParams." (substr (getvar "ACADVER") 1 2))))
(vla-put-Visible acadObj :vlax-true)
;; Attach a digital signature and timestamp it
(vla-put-Action sp (+ ACADSECURITYPARAMS_SIGN_DATA ACADSECURITYPARAMS_ADD_TIMESTAMP))
;; Certificate details follow
(vla-put-Subject sp "Thawte Freemail Member")
(vla-put-Issuer sp "Personal Freemail RSA 2000.8.30")
(vla-put-SerialNumber sp "073848")
(vla-put-Comment sp "This is now signed")
(vla-put-TimeServer sp "NIST(time.nist.gov)")
(setq doc (vla-get-ActiveDocument acadObj))
(vla-SaveAs doc "C:\\MyDrawing.dwg" acNative sp)
(vlax-release-object sp)
)
|
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-10-29 06:05
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.