acet-ui-progress (AutoLISP/Express Tools)

進行状況メータを表示します。

サポートされるプラットフォーム: Windows 版 AutoCAD のみ、Windows 版 AutoCAD LT、Mac OS および Web では使用できません

ライブラリ: acetutil.arx

構文と要素

(acet-ui-progress [label [max]])
(acet-ui-progress current)
(acet-ui-progress)
label

タイプ: 文字列

指定した場合は、進行状況メータのラベルとして表示されるテキスト文字列。

max

タイプ: 整数

指定した場合は、表示される範囲の最大値(開始は 0)。

current

タイプ: 整数

指定した場合は、現在の値になります。これは max 未満である必要があります。正の値は絶対値で、負の値は現在の位置がインクリメントされます。

注: 引数を指定しない場合、進行状況メータは削除されます。

戻り値

タイプ: 整数、T、または nil

戻り値は、実行されたアクションによって異なります。

;;  Initialize the meter
(acet-ui-progress "Working:" (length theList))

;;  Process each item
(foreach item theList
  ;;  Perform action
  (doSomethingTo item)

  ;;  Update the meter by one item
  (acet-ui-progress -1)
)

;;  Remove the meter
(acet-ui-progress)