Vla-get-timeserver
- 構文
- (vla-get-timeserver vla-object ' ' )
- 機能
- デジタル署名に使用するタイム サーバの名前を指定する。
- 引数
-
- vla-object … SecurityParamsのVLAオブジェクト
- 戻り値
- デジタル署名に使用されるタイム サーバの名前
- MEMO:このプロパティを設定しない場合は、デジタル署名のタイム スタンプとしてローカル マシンの時刻が使用される。
- サンプル
(vl-load-com)
(defun c:Example_TimeServer()
;; 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 "AutoCAD.SecurityParams.20"))
(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)")
;; To set the TimeServer property, use a description followed by the Internet address in parentheses
(alert (strcat "使用するタイム サーバは " (vla-get-TimeServer sp)))
(setq doc (vla-get-ActiveDocument acadObj))
(vla-SaveAs doc "C:\\MyDrawing.dwg" acNative sp)
(vlax-release-object sp)
)
関連事項