コマンド ラインにプロンプトを表示します。
サポートされているプラットフォーム: Windows のみ
VBA:
object.Prompt Message
タイプ: Utility
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: 文字列
表示するプロンプト。
戻り値はありません。
追加の注意はありません。
VBA:
Sub Example_Prompt()
' This example will use the Utility object to display a prompt to the
' AutoCAD command line. To see the results after running the example,
' switch to AutoCAD and look at the command line.
ThisDrawing.Utility.Prompt "Press any key..."
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_Prompt()
;; This example will use the Utility object to display a prompt to the
;; AutoCAD command line. To see the results after running the example,
;; switch to AutoCAD and look at the command line.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(vla-Prompt (vla-get-Utility doc) "Press any key...")
)